/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */

.contact-page {
  width: 100%;
}

/* ==========================================================================
   1. Contact Hero Section
   ========================================================================== */

.contact-hero-section {
  position: relative;
  width: 100%;
  min-height: 290px;
  background-color: var(--primary-navy);
  background-image: 
    linear-gradient(rgba(5, 12, 70, 0.55), rgba(5, 12, 70, 0.55)),
    url("../assets/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 200px; /* Space for overlaid transparent header */
  padding-bottom:5%;
  overflow: hidden;
}

/* Subtle darker/transparent circular decorative shape toward left */
.contact-hero-shape {
  position: absolute;
  bottom: -90px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 40, 0.35) 0%, rgba(0, 0, 40, 0.18) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.contact-hero-title {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 2.75rem; /* ~44px */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.contact-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-main);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   2. Contact Form Section ("Schedule a Consultation" & "Send Us A Message")
   ========================================================================== */

.contact-main-section {
  background-color: var(--page-bg);
  padding: 85px 0 95px;
  width: 100%;
}

.contact-form-wrapper {
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Left Panel: Dark Navy Info */
.contact-left-panel {
  background-color: var(--primary-navy);
  padding: 4.5rem 3.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.contact-panel-tag {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: block;
}

.contact-panel-title {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 2.35rem; /* ~38px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

.contact-panel-desc {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 0;
}

/* Right Panel: Form */
.contact-right-panel {
  background-color: #f8fafc;
  padding: 4.5rem 3.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-heading {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 2.15rem; /* ~34px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}

/* Inputs & Textarea */
.contact-form .contact-input,
.contact-form .contact-textarea {
  width: 100%;
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.85rem 1.15rem;
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .contact-input::placeholder,
.contact-form .contact-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.contact-form .contact-input:focus,
.contact-form .contact-textarea:focus {
  border-color: var(--primary-navy);
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 9, 75, 0.12);
  background-color: var(--white);
}

.contact-form .contact-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Validation Error Messages */
.contact-form .contact-input.is-invalid,
.contact-form .contact-textarea.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12) !important;
}

.contact-error-msg {
  color: #dc2626;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.35rem;
  display: block;
}

/* Submit Button */
.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-navy);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 1px solid transparent;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 9, 75, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-contact-submit:hover {
  background-color: #051478;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 9, 75, 0.26);
}

/* Contact Form Success Confirmation */
.contact-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: transparent;
  animation: fadeInContactSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-success-message .success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.12);
  color: #25D366;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.contact-success-message .success-title {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

.contact-success-message .success-desc {
  color: var(--body-text);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto;
}

@keyframes fadeInContactSuccess {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   3. Call-CTA Section ("We're here to help! Call Us Today!")
   ========================================================================== */

.final-cta-section {
  background-color: var(--page-bg);
  padding: 30px 0 100px;
}

.final-cta-wrapper {
  overflow: hidden;
  background-color: var(--primary-navy);
}

.final-cta-left-pane {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: #e2e8f0;
}

.final-cta-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.final-cta-image:not([src]),
.final-cta-image[src=""] {
  background-color: #e2e8f0;
  min-height: 380px;
}

.final-cta-right-pane {
  background-color: var(--primary-navy);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.final-cta-title {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 2.35rem; /* ~38px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}

/* Phone Button */
.btn-final-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--white);
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-final-cta-phone i {
  font-size: 1.05rem;
  color: var(--primary-navy);
}

.btn-final-cta-phone:hover {
  background-color: #f8f9fc;
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet Landscape (1024px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .contact-left-panel,
  .contact-right-panel,
  .final-cta-right-pane {
    padding: 3.5rem 2.5rem;
  }

  .contact-panel-title {
    font-size: 2rem;
  }

  .contact-form-heading {
    font-size: 1.85rem;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991.98px) {
  .contact-hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height-mobile, 78px) + 2rem);
    padding-bottom: 60px;
  }

  .contact-hero-title {
    font-size: 2.25rem;
  }

  .contact-hero-shape {
    width: 260px;
    height: 260px;
    bottom: -60px;
    left: -60px;
  }

  .contact-main-section {
    padding: 60px 0 70px;
  }

  .contact-left-panel,
  .contact-right-panel {
    padding: 3rem 2.25rem;
  }

  .contact-panel-title {
    font-size: 1.85rem;
  }

  .contact-form-heading {
    font-size: 1.75rem;
  }

  .final-cta-section {
    padding: 20px 0 70px;
  }

  .final-cta-right-pane {
    padding: 3rem 2rem;
  }

  .final-cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .final-cta-left-pane,
  .final-cta-image {
    min-height: 320px;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767.98px) {
  .contact-hero-section {
    padding-top: calc(var(--header-height-mobile, 78px) + 1.25rem);
    padding-bottom: 50px;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .contact-main-section {
    padding: 40px 0 50px;
  }

  .contact-left-panel,
  .contact-right-panel {
    padding: 2.5rem 1.5rem;
  }

  .contact-panel-title {
    font-size: 1.65rem;
  }

  .contact-form-heading {
    font-size: 1.55rem;
    margin-bottom: 1.5rem;
  }

  .btn-contact-submit {
    width: 100%;
    justify-content: center;
  }

  .final-cta-right-pane {
    padding: 2.5rem 1.5rem;
  }

  .final-cta-title {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }

  .btn-final-cta-phone {
    width: 100%;
    justify-content: center;
  }

  .final-cta-left-pane,
  .final-cta-image {
    min-height: 250px;
  }
}

/* Small Mobile (<= 480px / 375px) */
@media (max-width: 480px) {
  .contact-hero-section {
/*    padding-top: 45px;
    padding-bottom: 45px;*/
  }

  .contact-hero-title {
    font-size: 1.85rem;
  }

  .contact-hero-subtitle {
    font-size: 0.9rem;
  }

  .contact-panel-title {
    font-size: 1.45rem;
  }

  .contact-form-heading {
    font-size: 1.35rem;
  }

  .contact-left-panel,
  .contact-right-panel {
    padding: 2rem 1.25rem;
  }

  .final-cta-right-pane {
    padding: 2rem 1.25rem;
  }

  .final-cta-title {
    font-size: 1.45rem;
  }
}
