/* ==========================================================
   SMART CYBER CAFE — CONTACT PAGE STYLESHEET (v2 Modern Redesign)
   Palette: Royal Blue (#1a3566), Gold (#d97706), Emerald (#10b981), Slate
   Style: Minimalist, Airy, High-Performance, WCAG AA Accessible
   ========================================================== */

:root {
  --royal: #1a3566;
  --royal-dark: #122549;
  --royal-light: #2563eb;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-bg: #fef3c7;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-bg: #ecfdf5;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
}

/* ── PAGE BASE & AMBIENT DECOR ── */
.contact-page-body {
  background-color: var(--slate-50);
  color: var(--slate-800);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

.contact-bg-decor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.contact-bg-decor .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

.glow-royal {
  top: -10%;
  left: -8%;
  width: 48vw;
  height: 48vw;
  max-width: 580px;
  max-height: 580px;
  background: radial-gradient(circle, rgba(26, 53, 102, 0.28) 0%, rgba(37, 99, 235, 0.08) 60%, transparent 100%);
}

.glow-gold {
  top: 15%;
  right: -8%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.16) 0%, rgba(245, 158, 11, 0.04) 60%, transparent 100%);
}

.glow-emerald {
  bottom: -10%;
  left: 25%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

/* ── TOP BREADCRUMB BAR (Unified Master Header Bar) ── */
.cp-breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 0;
  position: relative;
  z-index: 5;
}

.cp-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  box-sizing: border-box;
}

.cp-breadcrumb-inner a {
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cp-breadcrumb-inner a:hover {
  color: var(--royal);
}

.cp-breadcrumb-sep {
  color: var(--slate-300);
  font-size: 13px;
}

.cp-breadcrumb-inner span:last-child {
  color: var(--royal-dark);
  font-weight: 700;
}

/* ── MAIN CONTAINER ── */
.contact-main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}

/* ── HERO SECTION (Left-Aligned Unified Layout) ── */
.contact-hero {
  text-align: left;
  max-width: 100%;
  margin: 0 0 36px;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 53, 102, 0.08);
  border: 1px solid rgba(26, 53, 102, 0.12);
  color: var(--royal);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-badge-icon {
  color: var(--gold);
}

.contact-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-align: left;
}

.contact-hero-title-highlight {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.68;
  color: var(--slate-600);
  margin: 0 0 20px;
  max-width: 820px;
  text-align: left;
}

/* Live Open / Closed Status Pill */
.contact-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(26, 53, 102, 0.04);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-400);
  position: relative;
}

.status-dot.open {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-green 2s infinite;
}

.status-dot.closed {
  background: var(--slate-400);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── QUICK CONTACT CARDS GRID ── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card-item {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(26, 53, 102, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--slate-300);
  box-shadow: 0 16px 32px -8px rgba(26, 53, 102, 0.08);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.contact-card-item:hover .contact-card-icon {
  transform: scale(1.08);
}

.icon-royal {
  background: rgba(26, 53, 102, 0.08);
  color: var(--royal);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-dark);
}

.icon-gold {
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold);
}

.icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-light);
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 6px;
}

.contact-card-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0 0 16px;
  flex-grow: 1;
}

.contact-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.contact-card-action:hover {
  color: var(--royal-light);
  gap: 10px;
}

/* ── 2-COLUMN MAIN WORKSPACE ── */
.contact-workspace-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}

/* ── INQUIRY FORM CARD ── */
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px -4px rgba(26, 53, 102, 0.05);
}

.form-card-header {
  margin-bottom: 24px;
}

.form-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card-title svg {
  color: var(--royal);
}

.form-card-desc {
  font-size: 0.925rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.55;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field-group {
  margin-bottom: 18px;
  text-align: left;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.field-input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.field-icon-textarea {
  top: 18px;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  font-family: inherit;
  color: var(--slate-900);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  background: var(--white);
  border-color: var(--royal);
  box-shadow: 0 0 0 3.5px rgba(26, 53, 102, 0.12);
}

.field-input:focus + .field-icon,
.field-input:focus ~ .field-icon,
.field-textarea:focus ~ .field-icon {
  color: var(--royal);
}

.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Dual Button Action Group */
.form-actions-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 48px;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-contact-whatsapp {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-contact-whatsapp:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.btn-contact-email {
  background: linear-gradient(135deg, var(--royal) 0%, #1e4080 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 53, 102, 0.25);
}

.btn-contact-email:hover {
  background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 53, 102, 0.35);
}

.form-status-msg {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

/* ── RIGHT COLUMN: MAP & COMMUNITY ── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-map-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px -4px rgba(26, 53, 102, 0.05);
}

.map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.map-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-title svg {
  color: var(--royal);
}

.map-embed-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-footer-coords {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.map-coords-badge {
  font-family: 'DM Mono', monospace, sans-serif;
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--slate-700);
}

/* Community Join Card */
.contact-community-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.community-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #10b981;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.community-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #065f46;
  margin: 0 0 8px;
}

.community-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #047857;
  margin: 0 0 18px;
}

.btn-community-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #059669;
  color: var(--white);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-community-join:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ── FAQ ACCORDION SECTION ── */
.contact-faq-section {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 12px 32px -4px rgba(26, 53, 102, 0.05);
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.faq-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 10px;
}

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin: 0;
}

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

.faq-item {
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  background: var(--slate-50);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(26, 53, 102, 0.06);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
  cursor: pointer;
}

.faq-item.active .faq-question-btn {
  color: var(--royal);
}

.faq-icon-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-size: 0.8rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
  background: var(--royal);
  border-color: var(--royal);
  color: var(--white);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer-panel {
  padding: 0 22px 20px;
}

.faq-answer-content {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--slate-600);
  border-top: 1px dashed var(--slate-200);
  padding-top: 14px;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-workspace-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-main-container {
    padding: 88px 16px 60px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-faq-section {
    padding: 30px 20px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-hero-title {
    font-size: 1.85rem;
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
  }

  .contact-card-item {
    padding: 20px 18px;
  }

  .contact-status-pill {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .faq-title {
    font-size: 1.45rem;
  }

  .faq-question-btn {
    padding: 16px 16px;
    font-size: 0.925rem;
  }

  .faq-answer-panel {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer-panel {
    padding: 0 16px 16px;
  }
}
