/* =============================================================
   contact.css — AT-EASE Contact Page
   Page-specific styles ONLY.
   Shared styles live in css/styles.css.

   TABLE OF CONTENTS
   1.  Page-level tokens
   2.  Contact page wrapper
   3.  Contact Hero (two-column layout)
   4.  Contact Info (left column)
   5.  Contact Detail items (address, email, phone)
   6.  Google Maps embed
   7.  Contact Form (right column)
   8.  Form groups (label + input + error)
   9.  Submit button + states
   10. Form feedback message
   11. Other Enquiries strip
   12. FAQ Section
   13. FAQ Accordion items
   14. Responsive (≤1100px, ≤860px, ≤480px)
============================================================= */


/* ─────────────────────────────────────────────────────────────
   1. Page-level tokens
───────────────────────────────────────────────────────────── */
:root {
  --contact-padding-x:  80px;
  --contact-padding-y:  96px;
  --contact-max-width: 1280px;

  --form-bg:        rgba(255, 255, 255, 0.03);
  --form-border:    rgba(255, 255, 255, 0.05);
  
  --input-bg:       #1A0A0A;
  --input-border:   rgba(255, 255, 255, 0.10);
  --input-color:    #F1F5F9;
  --placeholder:    #64748B;
  --label-color:    #94A3B8;

}


/* ─────────────────────────────────────────────────────────────
   2. Contact page wrapper
───────────────────────────────────────────────────────────── */
.contact-page {
  width: 100%;
  background: linear-gradient(180deg, #260A0A 0%, #130808 60%);
  margin-top: 80px; /* offset fixed navbar */
}


/* ─────────────────────────────────────────────────────────────
   3. Contact Hero — two-column layout
───────────────────────────────────────────────────────────── */
.contact-hero {
  width: 100%;
  padding: var(--contact-padding-y) var(--contact-padding-x);
  /* Subtle radial red glow behind the section */
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    rgba(236, 19, 19, 0.08) 0%,
    transparent 70%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-hero__inner {
  max-width: var(--contact-max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}


/* ─────────────────────────────────────────────────────────────
   4. Contact Info — left column
───────────────────────────────────────────────────────────── */
.contact-info {
  width: 560px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contact-info__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.contact-info__subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: #94A3B8;
  margin: 16px 0 0;
  max-width: 520px;
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: 48px;
}


/* ─────────────────────────────────────────────────────────────
   5. Contact Detail items (address / email / phone)
───────────────────────────────────────────────────────────── */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Red icon box */
.contact-detail__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(236, 19, 19, 0.10);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(236, 19, 19, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon img {
  object-fit: contain;
}

.contact-detail__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail__label {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.contact-detail__value {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0;
}

.contact-detail__value--link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail__value--link:hover {
  color: #EC1313;
}


/* ─────────────────────────────────────────────────────────────
   6. Google Maps embed
───────────────────────────────────────────────────────────── */
.contact-detail__map {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--form-border);
  background: #0F0707;
  /* Slight desaturation to blend with dark theme */
  filter: grayscale(30%) brightness(0.80);
  transition: filter 0.3s ease;
}

.contact-detail__map:hover {
  filter: grayscale(0%) brightness(1);
}

.contact-detail__map iframe {
  display: block;
  width: 100%;
}


/* ─────────────────────────────────────────────────────────────
   7. Contact Form — right column wrapper
───────────────────────────────────────────────────────────── */
.contact-form-wrap {
  flex: 1;
  position: relative;
  min-width: 0; /* prevents flex overflow */
}

/* Red radial glow behind the card */
.contact-form-wrap__glow {
  position: absolute;
  width: 587px;
  height: 587px;
  top: -16px;
  left: -16px;
  background: rgba(236, 19, 19, 0.10);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.contact-form {
  position: relative;
  z-index: 1;
  background: var(--form-bg);
  border: 1px solid var(--form-border);
  border-radius: 40px;
  padding: 48px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-form__title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ─────────────────────────────────────────────────────────────
   8. Form groups — label + input + error message
───────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group__label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--label-color);
}

.form-group__required {
  color: #FF0000;
  margin-left: 2px;
}

/* Shared input / select / textarea styling */
.form-group__input {
  width: 100%;
  padding: 17px 20px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--input-color);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-group__input::placeholder {
  color: var(--placeholder);
}

.form-group__input:focus {
  border-color: rgba(236, 19, 19, 0.60);
  box-shadow: 0 0 0 3px rgba(236, 19, 19, 0.10);
}

/* Invalid state (set by JS after submit attempt) */
.form-group__input.is-invalid {
  border-color: #EC1313;
  box-shadow: 0 0 0 3px rgba(236, 19, 19, 0.15);
}

/* Textarea */
.form-group__input--textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select wrapper — needed to position the custom arrow */
.form-group__select-wrap {
  position: relative;
}

.form-group__input--select {
  cursor: pointer;
  padding-right: 48px; /* room for the arrow */
}

/* Custom dropdown arrow */
.form-group__select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--placeholder);
  font-size: 14px;
  pointer-events: none;
}

/* Inline error message */
.form-group__error {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #EC1313;
  margin: 0;
  min-height: 16px; /* prevents layout shift */
}


/* ─────────────────────────────────────────────────────────────
   9. Submit button + loading state
───────────────────────────────────────────────────────────── */
.contact-form__submit {
  width: 100%;
  padding: 20px;
  background: #EC1313;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(236, 19, 19, 0.30);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.contact-form__submit:hover:not(:disabled) {
  background: #c90f0f;
  box-shadow: 0 10px 50px rgba(236, 19, 19, 0.50);
  transform: translateY(-2px);
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner — hidden by default, shown during fetch */
.contact-form__submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-form__submit.is-loading .contact-form__submit-spinner {
  display: inline-block;
}

.contact-form__submit.is-loading .contact-form__submit-text {
  opacity: 0.70;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ─────────────────────────────────────────────────────────────
   10. Form feedback message (success / error)
───────────────────────────────────────────────────────────── */
.contact-form__feedback {
  padding: 16px 20px;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.contact-form__feedback[hidden] {
  display: none;
}

.contact-form__feedback--success {
  background: rgba(74, 182, 13, 0.12);
  border: 1px solid rgba(74, 182, 13, 0.30);
  color: #6fdb2e;
}

.contact-form__feedback--error {
  background: rgba(236, 19, 19, 0.10);
  border: 1px solid rgba(236, 19, 19, 0.30);
  color: #ff6b6b;
}


/* ─────────────────────────────────────────────────────────────
   11. Other Enquiries strip
───────────────────────────────────────────────────────────── */
.contact-enquiry {
  width: 100%;
  padding: 48px var(--contact-padding-x);
}

.contact-enquiry__inner {
  max-width: 1232px;
  margin: 0 auto;
  position: relative;
  background: #221010;
  border: 1px solid rgba(236, 19, 19, 0.20);
  border-radius: 40px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

/* Red glow — top-right corner */
.contact-enquiry__glow {
  position: absolute;
  width: 256px;
  height: 256px;
  top: 1px;
  right: 48px;
  background: rgba(236, 19, 19, 0.10);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.contact-enquiry__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.contact-enquiry__title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.contact-enquiry__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
}

.btn--contact-enquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 32px;
  background: #EC1313;
  border-radius: 12px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(236, 19, 19, 0.30);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn--contact-enquiry:hover {
  background: #c90f0f;
  box-shadow: 0 0 36px rgba(236, 19, 19, 0.50);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────
   12. FAQ Section
───────────────────────────────────────────────────────────── */
.contact-faq {
  width: 100%;
  padding: var(--contact-padding-y) var(--contact-padding-x);
  background: linear-gradient(180deg, #270C0C 13%, #130808 52%, #330707 87%);
}

.contact-faq__inner {
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.contact-faq__title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.contact-faq__subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #64748B;
  margin: 0;
}

/* Red underline accent under the heading */
.contact-faq__title::after {
  content: '';
  display: block;
  width: 96px;
  height: 6px;
  background: #EC1313;
  border-radius: 9999px;
  margin: 14px auto 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ─────────────────────────────────────────────────────────────
   13. FAQ Accordion items
───────────────────────────────────────────────────────────── */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: border-color 0.2s ease;
}

/* Highlight the open item */
.faq-item--open {
  border-color: rgba(236, 19, 19, 0.25);
}

/* Trigger button — the clickable question row */
.faq-item__trigger {
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-item__trigger span:first-child {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

/* The chevron icon — CSS-only, rotates when open */
.faq-item__icon {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  background: #64748B;
  top: 3px;
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.25s ease;
}

.faq-item__icon::before {
  left: 0;
  transform: rotate(45deg);
  transform-origin: right center;
}

.faq-item__icon::after {
  right: 0;
  transform: rotate(-45deg);
  transform-origin: left center;
}

/* When item is open: icon turns red and points up */
.faq-item--open .faq-item__icon::before,
.faq-item--open .faq-item__icon::after {
  background: #EC1313;
}

.faq-item--open .faq-item__icon::before {
  transform: rotate(-45deg);
}

.faq-item--open .faq-item__icon::after {
  transform: rotate(45deg);
}

/* Answer panel */
.faq-item__answer {
  padding: 0 24px 24px;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #B2BAC5;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   14. Responsive
───────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1100px) {
  :root {
    --contact-padding-x: 48px;
  }

  .contact-info {
    width: 460px;
  }

  .contact-info__title {
    font-size: 48px;
  }
}

/* Mobile — stack columns */
@media (max-width: 860px) {
  :root {
    --contact-padding-x: 24px;
    --contact-padding-y: 64px;
  }

  .contact-hero__inner {
    flex-direction: column;
  }

  .contact-info {
    width: 100%;
  }

  .contact-info__title {
    font-size: 40px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .contact-enquiry__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px;
  }

  .contact-enquiry__title {
    font-size: 28px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .contact-info__title {
    font-size: 32px;
  }

  .contact-faq__title {
    font-size: 28px;
  }

  .faq-item__trigger span:first-child {
    font-size: 16px;
  }

  :root {
    --contact-padding-x: 16px;
  }
}
