/* ============================================================
   PRIVATE PREVIEW ACCESS — CONTACT SECTION
   ============================================================ */

.contact-section {
  position: relative;
  width: 100%;
  min-height: auto; /* Shorter window height to let surrounding sections peek */
  padding: 60px 0; /* Reduced top/bottom padding */
  display: flex;
  align-items: center;
  /* Premium dark charcoal gray overlay */
  background-image:
    linear-gradient(
      rgba(36, 36, 38, 0.82),
      rgba(18, 18, 20, 0.88)
    ),
    url('../assets/images/Terrace - opt 1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Support smooth scrolling on mobile */
  overflow: hidden;
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Info / Form card layout */
  align-items: center;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ── Left Column: Info ── */
.contact__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--color-gold); /* Warm gold/cream */
  margin: 0 0 24px 0;
  line-height: 1.1;
  text-transform: capitalize;
}

/* Gold divider line with diamond in middle */
.contact__divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-bottom: 28px;
}

.contact__divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(196, 158, 80, 0.3);
}

.contact__divider-diamond {
  color: var(--color-gold);
  font-size: 0.6rem;
  line-height: 1;
  margin-left: -1px;
}

.contact__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--color-gold);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ── Right Column: Dark Translucent Glassmorphic Form Card ── */
.contact__form-card {
  background: rgba(13, 3, 5, 0.78); /* Very dark, translucent background matching screenshot theme */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 158, 80, 0.2); /* Subtle golden-tinged border */
  border-radius: 4px;
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.contact__form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Multiple choice checkbox grid */
.contact__checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-bottom: 32px;
}

.contact__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Hide native checkbox input */
.contact__checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkbox box */
.contact__checkbox-custom {
  height: 15px;
  width: 15px;
  border: 1px solid rgba(196, 158, 80, 0.5);
  background-color: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.contact__checkbox-label:hover .contact__checkbox-custom {
  border-color: var(--color-gold-light);
  box-shadow: 0 0 8px rgba(196, 158, 80, 0.3);
}

/* Checked styling */
.contact__checkbox-input:checked ~ .contact__checkbox-custom {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Inner tick mark */
.contact__checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #4A0707;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact__checkbox-input:checked ~ .contact__checkbox-custom::after {
  display: block;
}

.contact__checkbox-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gold); /* Rich gold text to match screenshot */
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.contact__checkbox-label:hover .contact__checkbox-text {
  color: var(--color-gold-light); /* Subtle glow on hover */
}

/* Input Fields */
.contact__input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact__input-wrap {
  width: 100%;
}

.contact__input {
  width: 100%;
  padding: 13px 18px;
  background: rgba(80, 68, 58, 0.45); /* Semi-translucent warm dark-bronze/brown matching screenshot */
  border: 1px solid rgba(196, 158, 80, 0.3); /* Thin gold-tinted border */
  color: #F2E3D3; /* Warm off-white text */
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact__input::placeholder {
  color: rgba(242, 227, 211, 0.55); /* Muted off-white/cream placeholder */
}

.contact__input:focus {
  outline: none;
  border-color: var(--color-gold); /* Gold border on focus */
  background: rgba(80, 68, 58, 0.55);
  box-shadow: 0 0 12px rgba(196, 158, 80, 0.15);
}

.contact__input-full {
  margin-bottom: 32px;
}

/* Submit Button */
.contact__submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 14px 64px;
  background: #E2CFA0; /* Solid light champagne/gold matching screenshot */
  color: #4A0707; /* Dark maroon text color for contrast */
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact__submit-btn:hover {
  background: #ecdcb4; /* Slightly brighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226, 207, 160, 0.3);
}

.contact__submit-btn:active {
  transform: translateY(0);
}

/* Form Tagline footer */
.contact__tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(201, 169, 110, 0.8); /* Warm gold-cream tagline matching screenshot */
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 992px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact__container {
    grid-template-columns: 1fr; /* Stack layout on smaller screens */
    gap: 48px;
  }

  .contact__info {
    align-items: center;
    text-align: center;
  }

  .contact__divider {
    margin-left: auto;
    margin-right: auto;
  }

  .contact__form-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 30px 0;
  }

  .contact__checkbox-grid {
    grid-template-columns: 1fr; /* Single column checks on tablet/mobile */
    gap: 14px;
  }

  .contact__input-row {
    grid-template-columns: 1fr; /* Stack input fields */
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .contact__form-card {
    padding: 24px 20px;
  }
  
  .contact__submit-btn {
    width: 100%;
    padding: 12px 24px;
  }
}

/* ── Form Success Modal ── */
.form-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(13, 3, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.form-success-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.form-success-card {
  background: #4A0707;
  border: 1px solid rgba(196, 158, 80, 0.3);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-overlay.is-active .form-success-card {
  transform: translateY(0) scale(1);
}

.form-success-title {
  font-family: 'ClassyVogue', 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: #F2E3D3;
  line-height: 1.2;
  margin: 0 0 16px;
  text-transform: capitalize;
}

.form-success-name {
  color: var(--color-gold);
}

.form-success-divider {
  color: var(--color-gold);
  font-size: 0.6rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.form-success-message {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(242, 227, 211, 0.8);
  margin: 0 0 32px;
}

.form-success-btn {
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  padding: 10px 48px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-success-btn:hover {
  background: var(--color-gold);
  color: #4A0707;
  box-shadow: 0 6px 20px rgba(196, 158, 80, 0.2);
}

