/* ==========================================================================
   NEXTGEN CONTACT SECTION STYLES (SEPARATE MOBILE & DESKTOP SECTIONS)
   ========================================================================== */

/* Default Desktop Section (Hidden on Mobile) */
.ng-contact-desktop-wrapper {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  width: min(100% - 2rem, 1170px);
  margin: 0 auto;
}

.ng-contact-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ng-contact-header .ng-caption {
  color: #FEAC97;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 0.4rem;
}

.ng-contact-header .ng-title-section {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Split Grid Layout (Desktop) */
.ng-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Left Section: Video Background */
.ng-contact-video-pane {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  overflow: hidden;
}

.ng-contact-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ng-contact-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 32, 0.9) 0%, rgba(8, 13, 32, 0.4) 60%, transparent 100%);
  z-index: 2;
}

.ng-contact-video-content {
  position: relative;
  z-index: 3;
}

.ng-contact-video-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.ng-contact-video-desc {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* Right Section: Form (Desktop) */
.ng-contact-form-pane {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.ng-modal-close-btn {
  display: none;
}

.ng-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ng-form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ng-form-label {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-form-input,
.ng-form-textarea {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: #000000;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-form-input:focus,
.ng-form-textarea:focus {
  background: #ffffff;
  border-color: #43c0ca;
  box-shadow: 0 0 0 4px rgba(67, 192, 202, 0.15);
}

.ng-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.ng-form-submit {
  background: #080d20;
  color: #ffffff;
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(8, 13, 32, 0.15);
  margin-top: 0.5rem;
}

.ng-form-submit:hover {
  background: #43c0ca;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(67, 192, 202, 0.25);
}


/* ==========================================================================
   DEDICATED MOBILE-ONLY CONTACT SECTION (HIDDEN ON DESKTOP)
   ========================================================================== */
.ng-contact-mobile-wrapper {
  display: none;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MAX-WIDTH: 900PX)
   ========================================================================== */
@media (max-width: 900px) {
  /* Hide Desktop Layout */
  .ng-contact-desktop-wrapper {
    display: none !important;
  }

  /* Show Dedicated Mobile Layout */
  .ng-contact-mobile-wrapper {
    display: block;
    position: relative;
    z-index: 2;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ng-mobile-section-header {
    padding: 2rem 1.25rem 1rem;
    text-align: center;
    background: transparent;
  }

  .ng-mobile-section-header .ng-caption {
    color: #FEAC97;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0.4rem;
  }

  .ng-mobile-section-header .ng-title-section {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.03em;
    margin: 0;
  }

  /* Full-Width Video Card with Zero Margins/Borders */
  .ng-mobile-video-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    overflow: hidden;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .ng-mobile-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .ng-mobile-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 13, 32, 0.9) 0%, rgba(8, 13, 32, 0.4) 20%, transparent 100%);
    z-index: 2;
  }

  .ng-mobile-video-content {
    position: relative;
    z-index: 3;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ng-mobile-video-title {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 !important;
    line-height: 1.25;
  }

  /* Flush Button Banner directly beneath video card with 0px gap */
  .ng-mobile-btn-banner {
    display: block;
    width: 100%;
    background: #FEAC97;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    line-height: 1;
  }

  .ng-mobile-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    color: #000000;
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 1.15rem 1rem;
    border-radius: 0 !important;
    border: none;
    cursor: pointer;
  }

  .ng-mobile-trigger-btn:active {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Mobile Popup Modal Form */
  .ng-mobile-modal-pane {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 13, 32, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }

  .ng-mobile-modal-pane.is-active {
    display: flex;
  }

  .ng-mobile-modal-content {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .ng-mobile-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
  }

  .ng-mobile-modal-top h4 {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
  }

  .ng-mobile-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1.1rem;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ng-mobile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .ng-mobile-form-label {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
  }

  .ng-mobile-form-input,
  .ng-mobile-form-textarea {
    font-family: var(--ng-font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    color: #000000;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    outline: none;
  }

  .ng-mobile-form-textarea {
    resize: vertical;
    min-height: 75px;
  }

  .ng-mobile-form-submit {
    background: #080d20;
    color: #ffffff;
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 0.2rem;
  }
}
/* Mobile Popup Modal Form */
  .ng-mobile-modal-pane {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 13, 32, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .ng-mobile-modal-pane.is-active {
    display: flex;
  }

  .ng-mobile-modal-content {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    max-height: 85vh; /* Prevents overflow off screen */
    overflow-y: auto;  /* Enables smooth internal scrolling if needed */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ng-mobile-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }

  .ng-mobile-modal-top h4 {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
  }

  .ng-mobile-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ng-mobile-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Compact gap for mobile viewports */
  }

  .ng-mobile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .ng-mobile-form-label {
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
  }

  .ng-mobile-form-input,
  .ng-mobile-form-textarea {
    font-family: var(--ng-font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    color: #000000;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    outline: none;
  }

  .ng-mobile-form-textarea {
    resize: vertical;
    min-height: 60px; /* Reduced height to fit mobile screens comfortably */
  }

  .ng-mobile-form-submit {
    background: #080d20;
    color: #ffffff;
    font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 0.2rem;
  }