/* =========================================================
   CONTACT PAGE
   Relies on the CSS variables defined in style.css (:root)
   ========================================================= */

/* ---------- Hero header ---------- */
.contact-hero {
  text-align: center;
  padding: 150px 24px 60px;
  background: linear-gradient(180deg, #f8fcff 0%, #eaf6ff 100%);
}

.contact-hero .section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #157dff;
}

.contact-hero .label-underline {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: #157dff;
  margin: 10px auto 22px;
}

.contact-hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #062b63;
  margin-bottom: 14px;
}

.contact-hero h1 .heading-blue {
  color: #157dff;
}

.contact-hero .section-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #5b6b82;
  max-width: 600px;
  margin: 0 auto;
}

.contact-hero-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.contact-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 150px;
}

.contact-hero-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #157dff;
  box-shadow: 0 10px 25px rgba(6, 43, 99, 0.1);
}

.contact-hero-badge span {
  font-size: 13.5px;
  font-weight: 600;
  color: #062b63;
}

/* ---------- Get in touch ---------- */
.contact-main {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  color: #062b63;
  margin-bottom: 10px;
}

.contact-info .label-underline {
  margin: 0 0 18px;
}

.contact-info-intro {
  color: #5b6b82;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5edf6;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-card:hover {
  box-shadow: 0 16px 34px rgba(6, 43, 99, 0.08);
  border-color: transparent;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #157dff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: #5b6b82;
  line-height: 1.6;
}

.contact-info-card a {
  color: #157dff;
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ---------- Form card ---------- */
.contact-form-card {
  background: #f8fcff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  padding: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.contact-form-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #062b63;
  margin-bottom: 22px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.contact-field.full {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: #062b63;
}

.contact-field input,
.contact-field textarea {
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: #222222;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #157dff;
  box-shadow: 0 0 0 3px rgba(21, 125, 255, 0.12);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 32px;
  background: linear-gradient(135deg, #2f7dff, #0d5ef4);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(13, 94, 244, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(13, 94, 244, 0.44);
}

.contact-form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8493a6;
  text-align: center;
}

/* ---------- Our Locations ---------- */
.contact-locations {
  padding: 0 24px 80px;
  background: #ffffff;
}

.contact-locations-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-locations-heading {
  text-align: center;
  margin-bottom: 40px;
}

.contact-locations-heading h2 {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #062b63;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.location-card {
  background: #f8fcff;
  border: 1px solid #e5edf6;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.location-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.location-card:nth-child(1) { transition-delay: 0s; }
.location-card:nth-child(2) { transition-delay: 0.15s; }

.location-card:hover {
  box-shadow: 0 20px 45px rgba(6, 43, 99, 0.14);
  transform: translateY(-4px) scale(1);
}

.location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dbe6f2;
  overflow: hidden;
}

.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.location-map iframe.is-loaded {
  opacity: 1;
}

.location-card:hover .location-map iframe {
  transform: scale(1.08);
}

.location-info {
  padding: 22px 24px 26px;
}

.location-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 12px;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #45597a;
}

.location-line a {
  color: #157dff;
  font-weight: 600;
  text-decoration: none;
}

.location-line a:hover {
  text-decoration: underline;
}

.location-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #157dff;
}

.location-line:first-of-type .location-icon {
  animation: location-pin-bounce 2.4s ease-in-out infinite;
}

@keyframes location-pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .location-line:first-of-type .location-icon {
    animation: none;
  }
}

/* ---------- Why reach out ---------- */
.contact-reasons {
  padding: 70px 24px;
  background: #eaf6ff;
}

.contact-reasons-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-reasons-heading {
  text-align: center;
  margin-bottom: 44px;
}

.contact-reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.reason-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reason-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reason-card:nth-child(1) { transition-delay: 0s; }
.reason-card:nth-child(2) { transition-delay: 0.08s; }
.reason-card:nth-child(3) { transition-delay: 0.16s; }
.reason-card:nth-child(4) { transition-delay: 0.24s; }

.reason-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #dff4ff;
  color: #157dff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 8px;
}

.reason-card p {
  font-size: 13.5px;
  color: #5b6b82;
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.contact-cta {
  padding: 80px 24px;
  margin-bottom: 48px;
  text-align: center;
  background: linear-gradient(200deg, #071c40 0%, #0d3fa8 60%, #157dff 100%);
}

.contact-cta h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.contact-cta p {
  margin: 12px auto 0;
  max-width: 480px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.contact-cta-btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  background: #ffffff;
  color: #062b63;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-cta-btn-filled:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.contact-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-main { grid-template-columns: 1fr; }
  .contact-reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .contact-hero { padding: 130px 20px 50px; }
  .contact-hero h1 { font-size: 32px; }
  .contact-hero-badges { gap: 24px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-reasons-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px 20px; }
  .contact-main { padding: 60px 20px; }
}
