/* ── SHARED REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   CONTACT PAGE STYLES
══════════════════════════════════════ */

/* ── HERO ── */
.contact-hero {
  padding: 130px 40px 80px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.contact-hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding-bottom: 40px;
  
}

.contact-hero-inner h1.reveal{
  transition-delay: 0.25s;
}
.contact-hero-inner p.reveal{
  transition-delay: 0.5s;
}

.contact-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f2;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.contact-hero-tag span {
  width: 6px;
  height: 6px;
  background: var(--accent2);
  border-radius: 50%;
}

.contact-hero h1 {
  line-height: 1.05;
  color: #111;
  max-width: 700px;
  margin-bottom: 20px;
}

.contact-hero h1 em {
  font-style: italic;
  color: var(--accent2);
}

.contact-hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}

/* ── QUICK CHANNELS ── */
.channels-section {
  padding: 0 40px 80px;
  background: var(--bg);
}

.channels-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 195, 142, 0.1);
  stroke: #00c38e;
}

.channel-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.channel-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f0ee;
}

.channel-meta-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.channel-meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}

.channel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f2;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.channel-card:hover .channel-arrow {
  background: #111;
}

.channel-card:hover .channel-arrow svg {
  stroke: #fff;
}

/* ── MAIN FORM + INFO ── */
.contact-main {
  padding: 80px 40px 100px;
  background: var(--bg);
}

.contact-main-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: start;
}

/* Left info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info .section-label{
  text-align: left !important;
}

@media (max-width: 900px){
  .contact-info .section-label{
    text-align: center !important;
  }
  .contact-info .section-title{
    align-self: center;
  }
  .contact-info-body{
    align-items: center;
    align-self: center;
    max-width: 500px;
  }

}

.contact-info-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.2s;
}

.contact-detail:hover {
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: #f5f5f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
}

.contact-availability {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 20px 20px;
}

.contact-availability h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 14px;
}

.availability-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f2;
  font-size: 0.8rem;
}

.availability-row:last-child {
  border-bottom: none;
}

.availability-day {
  color: var(--muted);
}

.availability-hours {
  font-weight: 500;
  color: #111;
}

.availability-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-open {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.badge-chat {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.badge-closed {
  background: rgba(0, 0, 0, 0.06);
  color: #888;
}

/* Right form */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 36px 32px;
  position: sticky;
  top: 80px;
}

.contact-form-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form-card>p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group span{
  color: var(--accent2);
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #ccc;
}

.form-select-wrap {
  position: relative;
}

.form-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.form-topic {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

.form-topic:hover {
  border-color: #111;
  color: #111;
}

.form-topic.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.form-submit {
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.form-submit:hover {
  opacity: 0.85;
  transform: scale(0.99);
}

.eroam-btn.form-submit::before{
  background: #fff;
}

.eroam-btn.form-submit:hover .form-submit-icon{
  background: rgba(0,0,0,0.15);
}

.form-submit-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: color;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 500;
}

.form-success.visible {
  display: flex;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-error {
  border-color: #ef4444 !important;
}

.form-error-msg {
  font-size: 0.72rem;
  color: #ef4444;
  margin-top: -10px;
  margin-bottom: 8px;
  display: none;
}

.form-error-msg.show {
  display: block;
}

/* ── FAQ ── */
.faq-section {
  padding: 80px 40px 100px;
  background: #fff;
  margin-bottom: 100px;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 52px;
}

.faq-header h2 {
  margin-bottom: 12px;
}

.faq-header p {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  justify-content: space-between;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-q {
    width: 100%;
    font-family: inherit;
    padding: 24px 28px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.faq-q:hover {
  color: var(--accent2);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.3s;
}

.faq-item.open .faq-icon {
  background: #111;
  transform: rotate(45deg);
}

.faq-item.open .faq-icon svg {
  stroke: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 4px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 4px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  .contact-hero {
    padding: 110px 24px 60px;
  }

  .contact-hero-inner{
    padding-bottom: 60px;
  }

  .channels-section {
    padding: 0 24px 60px;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .contact-main {
    padding: 60px 24px 80px;
  }

  .contact-main-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-card {
    position: static;
    padding: 24px;
  }

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

  .faq-section {
    padding: 60px 24px 80px;
  }
}

/* ── Stagger & utility extractions ── */
.channels-grid .channel-card:nth-child(2) { transition-delay: 0.1s; }
.channels-grid .channel-card:nth-child(3) { transition-delay: 0.2s; }
.contact-form-card.reveal { transition-delay: 0.15s; }
.form-label-optional { color: var(--muted); font-weight: 400; }