/**
 * VECTRO INDUSTRIAL - Contact Hub & Dynamic Accordion FAQ Stylesheet
 * Architectural Standard: Industrial High-Craft Utilitarian, Marketing 5.0
 */

@import url("./tokens.css");

/* -------------------------------------------------------------
   1. HERO SECTION
------------------------------------------------------------- */
.contact-hero-section {
  position: relative;
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
  background: linear-gradient(180deg, #F8EFE0 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.contact-hero-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.contact-hero-lead {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.contact-hotline-ribbon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-page-dark);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-hotline-ribbon strong {
  color: var(--accent-gold);
  font-family: var(--font-family-mono);
}

/* -------------------------------------------------------------
   2. DIRECT COMMUNICATION CHANNELS
------------------------------------------------------------- */
.channels-section {
  background: var(--bg-page-dark);
  border-bottom: 1px solid var(--border-light);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.channel-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-3);
}

.channel-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.channel-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

.channel-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 16px;
  background: #25D366;
  color: #0b2e17;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.channel-btn:hover {
  background: #20ba5a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* -------------------------------------------------------------
   3. SHOWROOMS & INTERACTIVE BOOKING FORM SPLIT
------------------------------------------------------------- */
.showrooms-booking-section {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.showrooms-booking-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: start;
}

/* Showrooms Column */
.showrooms-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.showroom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
}

.showroom-city-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.showroom-city-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showroom-complex {
  font-size: 0.8125rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 2px;
}

.showroom-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.showroom-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.showroom-features-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.showroom-features-list li svg {
  color: var(--accent-green-bright);
  flex-shrink: 0;
}

.showroom-hours-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Interactive Booking Form Card */
.booking-form-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
}

.booking-form-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}

.booking-form-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: block;
}

.booking-form-title {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.booking-form-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.booking-field-group {
  margin-bottom: var(--space-4);
}

.booking-field-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.booking-input, .booking-select, .booking-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  min-height: 46px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.booking-input:focus, .booking-select:focus, .booking-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(255, 138, 61, 0.25);
}

.booking-textarea {
  min-height: 80px;
  resize: vertical;
}

.booking-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 20px;
  background: #25D366;
  color: #0b2e17;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.booking-submit-btn:hover {
  background: #20ba5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   4. DYNAMIC ACCORDION FAQ SECTION
------------------------------------------------------------- */
.faq-knowledge-section {
  background: var(--bg-page-dark);
  border-bottom: 1px solid var(--border-light);
}

.faq-search-filter-box {
  max-width: 860px;
  margin: var(--space-6) auto 0 auto;
}

/* Live FAQ Search Input */
.faq-search-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

.faq-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.faq-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 46px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(247, 192, 45, 0.2);
}

/* FAQ Category Filter Pills */
.faq-pills-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.faq-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-flat);
}

.faq-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.faq-pill-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(49, 92, 76, 0.25);
}

/* Accordion Container & Items */
.faq-accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-accordion-item:hover {
  border-color: var(--accent-gold-border);
}

.faq-accordion-item.open {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-raised);
}

.faq-accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-question-text {
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-accordion-item.open .faq-question-text {
  color: var(--accent-gold);
}

.faq-chevron-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-accordion-item.open .faq-chevron-icon {
  transform: rotate(180deg);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1), padding 300ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 var(--space-5);
  background: var(--bg-surface);
  border-top: 1px solid transparent;
}

.faq-accordion-item.open .faq-accordion-body {
  max-height: 500px;
  padding: var(--space-4) var(--space-5) var(--space-5) var(--space-5);
  border-top-color: var(--border-subtle);
}

.faq-answer-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   5. RESPONSIVENESS
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .channels-grid {
    grid-template-columns: 1fr;
  }
  .showrooms-booking-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-hero-title {
    font-size: 2rem;
  }
  .faq-question-text {
    font-size: 0.98rem;
  }
  .faq-pills-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }
}
