/* ==========================================================================
   Modern Contact Page Styling — Pixel-Perfect match to Design Mockup
   ========================================================================== */

/* ---------- Section Container & Dynamic Backgrounds ---------- */
.modern-contact-section {
  position: relative;
  background: linear-gradient(135deg, #04213f 0%, #062b52 50%, #031c36 100%);
  padding: 135px 0 135px;
  overflow: hidden;
  color: #ffffff;
}

/* Subtle architectural overlay on bottom-left */
.modern-contact-section__bg-building {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 85%;
  background-image: url('../images/backgrounds/book-appointment-bg.jpg');
  background-size: cover;
  background-position: left bottom;
  opacity: 0.14;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, transparent 100%),
              linear-gradient(to top, rgba(0,0,0,1) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, transparent 100%),
                      linear-gradient(to top, rgba(0,0,0,1) 40%, transparent 100%);
}

/* Concentric rings on top-left */
.modern-contact-section__rings {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}
.modern-contact-section__rings::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.modern-contact-section__rings::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Organic vibrant lime/apple green flow on the right */
.modern-contact-section__green-glow {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 65% 35%, rgba(107, 203, 18, 0.72) 0%, rgba(85, 178, 12, 0.42) 38%, rgba(85, 178, 12, 0.12) 60%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

.modern-contact-section__green-wave {
  position: absolute;
  right: -5%;
  top: -10%;
  width: 600px;
  height: 120%;
  background: radial-gradient(ellipse at top right, rgba(120, 219, 28, 0.28) 0%, rgba(91, 189, 15, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Dot matrix grid on far right */
.modern-contact-section__dots {
  position: absolute;
  right: 25px;
  bottom: 80px;
  width: 140px;
  height: 250px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.modern-contact-section .container {
  position: relative;
  z-index: 2;
}

/* ---------- Left Column Content ---------- */
.modern-contact-hero {
  padding-right: 20px;
}

.modern-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #06284f;
  font-family: var(--findox-heading, 'Sora', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-transform: uppercase;
}

.modern-contact-badge__slashes {
  color: #6bc916;
  font-weight: 900;
  letter-spacing: -1px;
}

.modern-contact-hero__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.modern-contact-hero__highlight {
  color: #6bc916;
}

.modern-contact-hero__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  max-width: 480px;
}

.modern-contact-hero__divider {
  width: 46px;
  height: 3px;
  background: #6bc916;
  border-radius: 2px;
  margin-bottom: 26px;
}

/* ---------- 4 Info Cards (Pill layout) ---------- */
.modern-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 13px 18px;
  margin-bottom: 13px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.modern-info-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(107, 201, 22, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.modern-info-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.modern-info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6bc916;
  color: #04213f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107, 201, 22, 0.35);
  transition: transform 0.3s ease;
}

.modern-info-card:hover .modern-info-card__icon {
  transform: scale(1.08);
}

.modern-info-card__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modern-info-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.25;
}

.modern-info-card__value {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.4;
  word-break: break-word;
}

.modern-info-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 14px;
  transition: all 0.3s ease;
}

.modern-info-card:hover .modern-info-card__arrow {
  background: #6bc916;
  color: #04213f;
  transform: translateX(3px);
}

/* ---------- Right Column: Form Card + Doodle ---------- */
.modern-contact-form-wrap {
  position: relative;
}


/* White Form Card */
.modern-form-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 38px 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 5;
  color: #2b3542;
}

.modern-form-card__bar {
  width: 42px;
  height: 4px;
  background: #6bc916;
  border-radius: 3px;
  margin-bottom: 12px;
}

.modern-form-card__title {
  font-size: 30px;
  font-weight: 800;
  color: #06284f;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.modern-form-card__highlight {
  color: #6bc916;
}

.modern-form-card__subtitle {
  font-size: 14.5px;
  color: #6c757d;
  margin-bottom: 24px;
}

/* Inputs & Form Controls */
.modern-input-wrap {
  position: relative;
  width: 100%;
}

.modern-input-wrap .modern-input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #06284f;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.25s;
}

.modern-input-wrap .modern-input-icon--textarea {
  top: 18px;
  transform: none;
}

.modern-input {
  width: 100%;
  height: 52px;
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  font-size: 14.5px;
  color: #1a2533;
  padding: 0 16px 0 48px;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.modern-input::placeholder {
  color: #8c9ba8;
  font-size: 14px;
}

.modern-input:focus {
  border-color: #6bc916;
  box-shadow: 0 0 0 3.5px rgba(107, 201, 22, 0.2);
}

.modern-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.modern-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.modern-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #06284f;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

.modern-textarea {
  height: auto;
  min-height: 108px;
  padding-top: 15px;
  resize: vertical;
}

/* Submit Button: Pill Shape, Two-Tone */
.modern-wa-submit {
  width: 100%;
  height: 54px;
  background: #06284f;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px 5px 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(6, 40, 79, 0.28);
  margin-top: 10px;
  margin-bottom: 14px;
}

.modern-wa-submit:hover {
  background: #03182f;
  box-shadow: 0 12px 30px rgba(6, 40, 79, 0.42);
}

.modern-wa-submit__text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.modern-wa-submit__text i {
  font-size: 20px;
  color: #25d366;
}

.modern-wa-submit__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6bc916;
  color: #06284f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.modern-wa-submit:hover .modern-wa-submit__arrow {
  transform: translateX(3px);
  background: #77db1a;
}

/* Trust / Lock Note below button */
.modern-wa-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 0;
  text-align: center;
}

.modern-wa-note i {
  font-size: 13px;
  color: #8c9ba8;
}

/* Result status text */
.modern-form-card .wa-result {
  font-size: 13.5px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  display: none;
}
.modern-form-card .wa-result.is-error {
  display: block;
  background: #fde8e8;
  color: #c81e1e;
  border: 1px solid #f8b4b4;
}
.modern-form-card .wa-result.is-ok {
  display: block;
  background: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

/* ---------- Bottom Trust Ribbon ---------- */
.modern-contact-ribbon {
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  padding: 30px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.modern-trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
}

.modern-trust-badge__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf7df;
  color: #4ba60a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107, 201, 22, 0.15);
}

.modern-trust-badge__info {
  display: flex;
  flex-direction: column;
}

.modern-trust-badge__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #06284f;
  margin-bottom: 2px;
  line-height: 1.25;
}

.modern-trust-badge__desc {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.35;
}

.modern-contact-ribbon__col {
  position: relative;
}

.modern-contact-ribbon__col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e7ecf2;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .modern-form-card {
    padding: 32px 30px;
  }
  .modern-contact-hero__title {
    font-size: 34px;
  }
}

@media (max-width: 991.98px) {
  .modern-contact-section {
    padding: 95px 0 95px;
  }
  .modern-contact-hero {
    margin-bottom: 40px;
    padding-right: 0;
  }
  .modern-contact-ribbon__col:not(:last-child)::after {
    display: none;
  }
  .modern-trust-badge {
    padding: 12px 10px;
  }
}

@media (max-width: 575.98px) {
  .modern-contact-section {
    padding: 70px 0 70px;
  }
  .modern-contact-hero__title {
    font-size: 28px;
  }
  .modern-form-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .modern-form-card__title {
    font-size: 24px;
  }
  .modern-wa-submit {
    padding: 4px 5px 4px 18px;
  }
  .modern-wa-submit__text {
    font-size: 13px;
  }
  .modern-wa-submit__arrow {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* Add vertical gap between breadcrumb and contact hero on Contact page */
.page-header + .modern-contact-section {
  margin-top: 30px;
}

/* Add spacing between Contact hero and Google Map */
.modern-contact-section { 
  margin-bottom: 35px; 
}

/* ==============================================================
   Modern Full-Width Google Map
   ============================================================== */
.google-map__contact {
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  background-color: #e5e9f0 !important;
  border-top: 1px solid #e2e8f0;
}

.google-map__contact iframe,
.google-map iframe {
  width: 100% !important;
  height: 480px !important;
  border: 0 !important;
  display: block !important;
  position: relative !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

@media (max-width: 991.98px) {
  .google-map__contact iframe,
  .google-map iframe {
    height: 380px !important;
  }
}

@media (max-width: 575.98px) {
  .google-map__contact iframe,
  .google-map iframe {
    height: 320px !important;
  }
}

