/* =========================================================
   LUMIVEX — Contact Page
   ========================================================= */

/* ---------- Hero ---------- */
.contact-hero {
  position: relative;
  min-height: 78vh;
  min-height: 78dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.75) 50%, #050505 100%),
    linear-gradient(105deg, rgba(5, 5, 5, 0.8) 0%, transparent 55%);
}

.contact-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 42% at 30% 75%, rgba(212, 175, 55, 0.2), transparent 60%);
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.contact-hero .ch-eyebrow {
  margin-bottom: 1.2rem;
}

.contact-hero-title {
  font-size: clamp(2.7rem, 6vw, 4.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.contact-hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-hero .ch-line {
  display: block;
  overflow: hidden;
}

.contact-hero .ch-line > span {
  display: inline-block;
}

.contact-hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Strip ---------- */
.contact-strip {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  margin-top: -1.5rem;
  position: relative;
  z-index: 3;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.strip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

a.strip-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.strip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.1rem;
}

.strip-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.strip-card span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.strip-card > div span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Main layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.form-column h2 {
  margin-bottom: 0.85rem;
}

.form-intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.contact-form {
  padding: 2rem;
}

.page-contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.page-contact .form-field {
  margin-bottom: 1.15rem;
}

.page-contact .form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.page-contact .form-field input,
.page-contact .form-field select,
.page-contact .form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-contact .form-field input:focus,
.page-contact .form-field select:focus,
.page-contact .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.page-contact .form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.page-contact .form-field select option {
  background: #111;
}

.page-contact .form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.page-contact .form-field.is-error input,
.page-contact .form-field.is-error select,
.page-contact .form-field.is-error textarea {
  border-color: #e87878;
}

.form-submit {
  width: 100%;
}

.page-contact .form-success {
  margin-top: 1rem;
  color: #6dcf8a;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Side cards ---------- */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.live-chat-card,
.hours-card,
.social-card {
  padding: 1.75rem;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #6dcf8a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dcf8a;
  box-shadow: 0 0 0 0 rgba(109, 207, 138, 0.5);
  animation: pulse 2s infinite;
}

.live-chat-card h3,
.hours-card h3,
.social-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.live-chat-card > .chat-header > p,
.social-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.chat-preview {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble {
  padding: 0.85rem 1rem;
  border-radius: 14px 14px 14px 4px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.chat-bubble.user {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 4px 14px;
  margin-left: 1.5rem;
  color: #fff;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
}

.chat-input-row input:focus {
  border-color: var(--gold);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.15rem 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hours-list strong {
  color: #fff;
  font-weight: 600;
}

.hours-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* ---------- Offices ---------- */
.contact-offices {
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.65), transparent);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.office-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.office-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-gold);
}

.office-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.office-card:hover .office-photo img {
  transform: scale(1.06);
}

.office-body {
  padding: 1.5rem;
}

.office-city {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.office-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.office-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

/* ---------- Map ---------- */
.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: min(480px, 60vh);
  padding: 0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.map-overlay-card {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  max-width: 280px;
}

.map-overlay-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.map-overlay-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ---------- FAQ ---------- */
.page-contact .faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-contact .faq-item {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0 1.25rem;
  transition: border-color 0.3s;
}

.page-contact .faq-item[open] {
  border-color: rgba(212, 175, 55, 0.35);
}

.page-contact .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-contact .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-contact .faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 1.35rem;
}

.page-contact .faq-item[open] summary::after {
  content: "−";
}

.page-contact .faq-item p {
  color: var(--text-muted);
  padding: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .office-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .office-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .strip-grid,
  .page-contact .form-row {
    grid-template-columns: 1fr;
  }

  .office-card {
    grid-template-columns: 1fr;
  }

  .office-photo {
    aspect-ratio: 16 / 10;
  }

  .map-frame {
    height: 360px;
  }

  .map-overlay-card {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .contact-hero-ctas,
  .contact-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-hero-ctas .btn,
  .contact-cta-actions .btn {
    width: 100%;
  }
}
