/* contactus.css - Custom styles for Contact Us page
   -----------------------------------------------
   This file contains styles for the contact section, cards, and layout.
   Author: TCET NCC Web Team
   Last updated: July 2025
*/

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

/* 
   =========== 1. Layout: Card Row & Columns ===========
   Top-level flex row: three columns/cards side-by-side on desktop, stack on mobile.
*/
.contact-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  flex-wrap: wrap;
}

/* Each card column */
.contact-col {
  flex: 1 1 350px;        /* allows flexibility but keeps min width for mobile */
  max-width: 405px;
  min-width: 240px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* 
   =========== 2. Card Styling =========== 
   Clean card look, subtle gradient, shadow, and subtle hover lift.
*/
.contact-card {
  background: linear-gradient(135deg, #ffffff 70%, #eff0f3 100%);
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.13), 0 1.5px 8px rgba(44,62,80,0.09);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  min-height: 430px;
}

.contact-card:hover {
  box-shadow: 0 12px 48px rgba(44,62,80,0.18), 0 2px 16px rgba(44,62,80,0.13);
  transform: translateY(-10px) scale(1.04);
  z-index: 3;
  border: 2px solid #c62828;
}


/* 
   =========== 3. Heading Styles =========== 
*/
.contact-title, .contact-heading {
  margin-top: 10px;
  margin-bottom: 32px;
  text-align: center;
  font-size: 2.4rem;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 700;
  color: #c62828;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(44,62,80,0.08);
}

.contact-card h2 {
  font-size: 1.35rem;
  color: #c62828;
  font-weight: 700;
  margin-bottom: 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  font-size: 1.2em;
  margin-right: 8px;
  color: #003366;
}

/* 
   =========== 4. Form =========== 
*/
form label {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #c62828;
}

input[type="text"],
input[type="email"],
input[type="no"],
textarea {
  width: 90%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.8px solid #a7a7a7;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
  transition: border-color .3s, box-shadow .3s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #c62828;
  outline: none;
  box-shadow: 0 0 5px #c62828;
}
.btn-submit {
  margin-top: 20px;
  background-color: #c62828;
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.23s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-submit:hover, .btn-submit:focus {
  background-color: #a22121;
  transform: scale(1.05);
}

/* 
   =========== 5. Contact Details & Officials =========== 
   Styles for officials section in middle card
*/
.contact-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.09rem;
  margin-bottom: 14px;
  color: #c62828;
}
.contact-info-link {
  color: #003366;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1.04em;
  transition: color 0.21s;
}
.contact-info-link:hover, .contact-info-link:focus {
  color: #c62828;
}
.contact-officials h3 {
  margin: 1.3em 0 0.7em;
  font-size: 1.07em;
  color: #b22222;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.official-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f7f7fa;
  border-radius: 12px;
  padding: 11px 10px;
  box-shadow: 0 1.5px 8px rgba(44,62,80,0.06);
  margin-bottom: 11px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.official-item:hover, .official-item:focus-within {
  box-shadow: 0 7px 28px rgba(44,62,80,0.13);
  transform: translateY(-3px) scale(1.025);
}
.official-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.official-name-link, .profile-link {
  color: #b22222;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1em;
  transition: color 0.19s;
}
.official-name-link:hover, .profile-link:hover,
.official-name-link:focus, .profile-link:focus {
  color: #c62828;
}
.profile-link {
  font-size: 0.95em;
  margin-top: 3px;
  display: inline-block;
  font-weight: 500;
}

/* 
   =========== 6. Address & Map =========== 
   Styles for the third card (address and embedded map)
*/
.address-card address {
  font-style: normal;
  color: #232323;
  font-size: 1.01rem;
  margin-bottom: 18px;
  line-height: 1.55;
}
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  flex: 1 1 auto;
  box-shadow: 0 3px 18px rgba(44,62,80,0.09);
  background: #eaeaea;
}
.map-embed iframe {
  width: 100%;
  height: 165px;
  min-height: 120px;
  border: 0;
  border-radius: 9px;
  display: block;
}
  
/* 
   =========== 7. Responsive Breakpoints =========== 
   Tweak layout, spacing, card sizing for better mobile/tablet display.
*/
@media (max-width: 1100px) {
  .contact-row {
    gap: 22px;
  }
  .contact-card {
    padding: 22px 10px 18px 14px;
  }
}
@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .contact-col, .contact-card {
    max-width: 97vw;
  }
  .contact-card { min-height: 0; }
}

@media (max-width: 600px) {
  .contact-title, .contact-heading { font-size: 1.32rem; }
  .contact-card { padding: 13px 3vw; }
  .contact-card h2 { font-size: 1.04rem; }
  input, textarea, label { font-size: 0.98em; }
  .official-img { width: 38px; height: 38px; }
  .map-embed iframe { height: 120px; }
}

@media (pointer: fine) {
  .btn-submit:focus:not(:focus-visible),
  .contact-info-link:focus:not(:focus-visible),
  .contact-card:focus:not(:focus-visible),
  .profile-link:focus:not(:focus-visible) {
    outline: none;
  }
}