/* ==========================================================================
   UNTERRO - CUSTOM CONTACT US HERO PAGE STYLES
   Editorial 100vh Luxury Ambient Atmosphere matching Severin Group aesthetic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Italiana&display=swap');

/* Global Contact Page Container */
.contact-us-page {
  background-color: #000000 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. 100vh Contact Hero Section
   -------------------------------------------------------------------------- */
.contact-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000000;
  box-sizing: border-box;
}

/* Atmospheric Ambient Warm Amber / Cognac Torch Glow Background */
.contact-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-color: #030100;
  background-image: url('../images/contact/contact-bg.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  opacity: 1; /* Pre-rendered and visible immediately on load */
  will-change: transform;
}

/* Subtle Vignette & Header Contrast Overlay */
.contact-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(3, 1, 0, 0.95) 0%,
    rgba(3, 1, 0, 0.5) 18%,
    rgba(3, 1, 0, 0) 40%,
    rgba(3, 1, 0, 0) 75%,
    rgba(3, 1, 0, 0.15) 100%
  );
}

/* Centered Editorial Content */
.contact-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

/* Primary "Contact" Editorial Title */
.contact-hero__title {
  font-family: "Italiana", "Cormorant Garamond", var(--font-family-serif);
  font-size: clamp(4.5rem, 3.2rem + 8.5vw, 11.5rem);
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 15%, #f7ebe1 60%, #eed6c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.015em;
  line-height: 0.96;
  margin: 0;
  opacity: 0; /* Animated into view by GSAP */
  will-change: opacity, transform, filter;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Secondary "LET'S START A CONVERSATION" Subtitle */
.contact-hero__subtitle {
  display: inline-block;
  font-family: var(--font-family-sans);
  font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: clamp(8px, 6px + 0.4vw, 14px);
  margin-bottom: 0;
  opacity: 0; /* Animated into view by GSAP */
  will-change: opacity, transform, clip-path;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Responsive Proportional Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .contact-hero__title {
    font-size: clamp(3.8rem, 2.8rem + 6.5vw, 5.2rem);
  }

  .contact-hero__subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    margin-top: 8px;
    padding: 0 16px;
  }

  .contact-faq__trigger {
    padding: 18px 0;
  }

  .contact-faq__question {
    font-size: 0.88rem; /* ~14px - compact and well-proportioned */
    line-height: 1.35;
  }

  .contact-faq__icon {
    width: 30px;
    height: 30px;
  }

  .contact-faq__icon svg {
    width: 15px;
    height: 15px;
  }

  .contact-faq__inner p {
    font-size: 0.72rem; /* ~11.5px - delicate and subtle */
    line-height: 1.55;
  }
}

/* ==========================================================================
   3. Section 2: Questions You May Have (Accordion FAQ)
   ========================================================================== */
.contact-faq {
  position: relative;
  background-color: #ededed; /* Clean architectural light gray from reference */
  padding: 100px 0 130px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .contact-faq {
    padding: 60px 0 80px;
  }
}

/* Base Unified Container for Section 2 (FAQ) and Section 3 (Plans Form) */
.contact-faq__container,
.contact-plans__container {
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header with Vertical Accent Bar (Matching FAQ page Kitchen heading) */
.contact-faq__header {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 54px;
}

.contact-faq__accent-bar {
  display: block;
  width: 8px; /* Exactly 8px matching FAQ page Kitchen heading border-left */
  background-color: var(--color-accent, #AD622F);
  border-radius: 0;
  flex-shrink: 0;
  will-change: transform, opacity;
}

.contact-faq__title {
  display: inline-block;
  font-family: var(--font-family-sans);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
  line-height: 1.15;
  will-change: opacity, transform, clip-path;
}

/* Accordion Container */
.contact-faq__accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Desktop alignment: Align question and answer text exactly with "QUESTIONS YOU MAY HAVE" */
@media (min-width: 1024px) {
  .contact-faq__accordion {
    padding-left: 26px; /* Exactly matches 8px bar + 18px gap */
  }
}

/* Individual Accordion Item (No default divider between questions) */
.contact-faq__item {
  width: 100%;
  border-bottom: none;
  box-sizing: border-box;
}

/* Trigger Row */
.contact-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  gap: 20px;
}

/* Question Text */
.contact-faq__question {
  font-family: var(--font-family-sans);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Question turns warm amber on hover or active */
.contact-faq__trigger:hover .contact-faq__question,
.contact-faq__item.is-active .contact-faq__question {
  color: var(--color-accent, #AD622F);
}

/* Circular Icon Button with Chevron */
.contact-faq__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #222222;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s ease, 
              color 0.3s ease;
}

.contact-faq__icon svg {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active State: Chevron rotates up and turns orange */
.contact-faq__item.is-active .contact-faq__icon {
  border-color: var(--color-accent, #AD622F);
  color: var(--color-accent, #AD622F);
}

.contact-faq__item.is-active .contact-faq__icon svg {
  transform: rotate(180deg);
}

/* Collapsible Content Area */
.contact-faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-faq__inner {
  padding-bottom: 24px;
  padding-top: 2px;
}

.contact-faq__inner p {
  font-family: var(--font-family-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: #2e2e2e;
  margin: 0;
}

.contact-faq__inner p:last-child {
  margin-bottom: 0;
}

/* Divider Line: Draws Left to Right only when question is open */
.contact-faq__divider {
  width: 100%;
  height: 1px;
  background-color: #858585; /* Clearly visible medium-gray from reference */
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   4. Section 3: We Look Forward To Seeing Your Plans (Contact Form)
   ========================================================================== */
.contact-plans {
  position: relative;
  background-color: #ffffff; /* Clean white background */
  padding: 100px 0 130px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .contact-plans {
    padding: 60px 0 80px;
  }
}

/* Header with Vertical Accent Bar */
.contact-plans__header {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 54px;
}

.contact-plans__accent-bar {
  display: block;
  width: 8px; /* 8px solid accent bar */
  background-color: var(--color-accent, #AD622F);
  border-radius: 0;
  flex-shrink: 0;
  will-change: transform, opacity;
}

.contact-plans__title {
  display: inline-block;
  font-family: var(--font-family-sans);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
  line-height: 1.15;
  will-change: opacity, transform, clip-path;
}

/* Form Wrapper Desktop Alignment */
.contact-plans__form-wrapper {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .contact-plans__form-wrapper {
    padding-left: 26px; /* Exactly matches 8px bar + 18px gap */
  }
}

/* Group Labels */
.contact-plans__label {
  font-family: var(--font-family-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.1vw, 1.05rem);
  font-weight: 400;
  color: var(--color-accent, #AD622F);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

/* 1. Services Grid */
.contact-plans__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .contact-plans__services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Service Card / Option Box */
.contact-plans__service-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 24px;
  border: 1px solid #d1ccc7;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.25s ease, 
              border-color 0.25s ease, 
              box-shadow 0.25s ease,
              transform 0.18s ease;
  user-select: none;
}

.contact-plans__service-card:hover {
  border-color: var(--color-accent, #AD622F);
  box-shadow: 0 2px 10px rgba(173, 98, 47, 0.08);
}

.contact-plans__service-card:hover .contact-plans__service-text {
  color: var(--color-accent, #AD622F);
}

/* Screen-reader only checkbox */
.contact-plans__service-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.contact-plans__service-text {
  font-family: var(--font-family-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 400;
  color: #111111;
  line-height: 1.3;
  text-align: center;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Active / Selected State - primary color highlighted border & primary color text */
.contact-plans__service-card.is-selected,
.contact-plans__service-card:has(.contact-plans__service-checkbox:checked) {
  background-color: #ffffff !important;
  border-color: var(--color-accent, #AD622F) !important;
  box-shadow: 0 0 0 1px var(--color-accent, #AD622F), 0 2px 8px rgba(173, 98, 47, 0.15) !important;
}

.contact-plans__service-card.is-selected .contact-plans__service-text,
.contact-plans__service-card:has(.contact-plans__service-checkbox:checked) .contact-plans__service-text {
  color: var(--color-accent, #AD622F) !important;
  font-weight: 500;
}

/* 2. Personal Details Group */
.contact-plans__details-group {
  margin-top: 42px;
}

@media (max-width: 767px) {
  .contact-plans__details-group {
    margin-top: 32px;
  }
}

.contact-plans__inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .contact-plans__inputs-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
}

.contact-plans__field {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.2s ease;
}

/* Required Field Labels with Asterisk */
.contact-plans__field-label {
  display: block;
  font-family: var(--font-family-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.contact-plans__required-star {
  color: var(--color-accent, #AD622F);
  font-weight: 700;
  font-size: 14px;
  margin-left: 2px;
  line-height: 1;
}

.contact-plans__input,
.contact-plans__textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Reduced border thickness to a subtle, delicate hairline */
  border-width: 0.5px;
  border-radius: 4px;
  padding: 18px 22px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  color: #111111;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-plans__input::placeholder,
.contact-plans__textarea::placeholder {
  color: #767676;
  opacity: 0.85;
  font-weight: 400;
}

.contact-plans__input:focus,
.contact-plans__textarea:focus {
  outline: none;
  border-color: var(--color-accent, #AD622F);
  box-shadow: 0 0 0 1px var(--color-accent, #AD622F);
}

/* Missing Field Error Highlighting */
.contact-plans__field.has-error .contact-plans__input,
.contact-plans__field.has-error .contact-plans__textarea,
.contact-plans__input.is-invalid,
.contact-plans__textarea.is-invalid {
  border-color: #c53030 !important;
  background-color: #fffaf9 !important;
  box-shadow: 0 0 0 1px #c53030, 0 2px 8px rgba(197, 48, 48, 0.08) !important;
}

.contact-plans__field.has-error .contact-plans__field-label {
  color: #c53030;
}

.contact-plans__field.has-error .contact-plans__required-star {
  color: #c53030;
}

.contact-plans__field-error {
  display: none;
  font-family: var(--font-family-sans);
  font-size: 12px;
  font-weight: 500;
  color: #c53030;
  margin-top: 6px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.contact-plans__field.has-error .contact-plans__field-error {
  display: block;
  animation: contactFieldFadeIn 0.25s ease;
}

@keyframes contactFieldFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contactFieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.contact-plans__field.has-error {
  animation: contactFieldShake 0.35s ease;
}

.contact-plans__field--textarea {
  margin-bottom: 24px;
}

.contact-plans__textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* 3. Submit Button */
.contact-plans__submit-wrapper {
  width: 100%;
}

.contact-plans__submit-btn {
  width: 100%;
  background-color: var(--color-accent, #AD622F);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 22px 28px;
  min-height: 58px;
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, 
              color 0.3s ease,
              transform 0.2s ease, 
              box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

@media (min-width: 768px) {
  .contact-plans__submit-btn {
    padding: 26px 36px;
    min-height: 72px;
    font-size: 14px;
  }
}

.contact-plans__submit-btn:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

/* Feedback messages */
.contact-plans__feedback {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--font-family-sans);
  font-size: 14px;
  display: none;
  text-align: center;
}

.contact-plans__feedback.is-success {
  display: block;
  background-color: #edf7ed;
  color: #1e4620;
  border: 1px solid #c8e6c9;
}

.contact-plans__feedback.is-error {
  display: block;
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

/* ==========================================================================
   5. Unified Large & Ultra-Large Desktop Refinements
   ========================================================================== */
@media (min-width: 1440px) {
  .contact-hero__title {
    font-size: clamp(9.5rem, 8.5rem + 3vw, 13rem);
  }

  .contact-hero__subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    margin-top: 14px;
  }

  /* Both Section 2 (FAQ) and Section 3 (Plans Form) Containers Locked at 1420px */
  .contact-faq__container,
  .contact-plans__container {
    max-width: 1420px;
  }

  /* Both Headings share identical scale */
  .contact-faq__title,
  .contact-plans__title {
    font-size: clamp(2.8rem, 2.4rem + 0.8vw, 3.5rem);
  }

  .contact-faq__question {
    font-size: clamp(1.18rem, 1.1rem + 0.2vw, 1.35rem);
  }

  .contact-faq__inner p {
    font-size: clamp(1.02rem, 0.98rem + 0.1vw, 1.12rem);
    line-height: 1.8;
  }

  .contact-faq__icon {
    width: 40px;
    height: 40px;
  }

  .contact-plans__submit-btn {
    padding: 28px 40px;
    min-height: 76px;
    font-size: 14.5px;
  }
}

@media (min-width: 1920px) {
  .contact-hero__title {
    font-size: clamp(12rem, 11rem + 3.5vw, 15rem);
  }

  .contact-hero__subtitle {
    font-size: 1.18rem;
    letter-spacing: 0.32em;
    margin-top: 16px;
  }

  /* Both Section 2 (FAQ) and Section 3 (Plans Form) Containers Locked at 1620px */
  .contact-faq__container,
  .contact-plans__container {
    max-width: 1620px;
  }

  .contact-faq__header,
  .contact-plans__header {
    gap: 18px;
    margin-bottom: 64px;
  }

  /* Both Headings share identical scale */
  .contact-faq__title,
  .contact-plans__title {
    font-size: clamp(3.4rem, 3rem + 0.8vw, 4.2rem);
  }

  .contact-faq__trigger {
    padding: 28px 0;
  }

  .contact-faq__question {
    font-size: clamp(1.32rem, 1.25rem + 0.2vw, 1.52rem);
  }

  .contact-faq__inner {
    padding-bottom: 28px;
  }

  .contact-faq__inner p {
    font-size: clamp(1.12rem, 1.06rem + 0.12vw, 1.24rem);
    line-height: 1.85;
  }

  .contact-faq__icon {
    width: 44px;
    height: 44px;
  }

  .contact-faq__icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-plans__submit-btn {
    padding: 30px 44px;
    min-height: 82px;
    font-size: 15.5px;
  }
}



