:root {
  --mint:    #3ECFB2;
  --mint-l:  #D4F5EF;
  --mint-d:  #2aaa92;
  --sky:     #5BC8F5;
  --sun:     #FFD84D;
  --coral:   #FF7C6E;
  --violet:  #C778E0;
  --cream:   #F7FFFE;
  --ink:     #1A2F2A;
  --muted:   #6B8F89;
  --white:   #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.8;
}

/* ── BACKGROUND PATTERN ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(62,207,178,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}


/* ── HERO ────────────────────────────────────────────── */
.contact-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 5rem 6vw 6rem;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 20%, var(--mint-l) 0%, var(--cream) 70%);
  z-index: 0;
}
/* wave bottom */
.contact-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }

.page-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint-d);
  background: rgba(62,207,178,.12);
  border: 1.5px solid rgba(62,207,178,.3);
  padding: .28rem .9rem; border-radius: 50px;
  margin-bottom: 1.3rem;
  animation: popUp .4s ease both;
}

h1 {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.25;
  color: var(--ink); margin-bottom: 1rem;
  animation: popUp .45s ease .08s both;
}
h1 .accent { color: var(--mint-d); }

.hero-sub {
  font-size: clamp(.95rem, 1.7vw, 1.1rem);
  color: var(--muted); margin-bottom: 0;
  animation: popUp .45s ease .16s both;
}

@keyframes popUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.contact-main {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 3rem 5vw 5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

/* ── INFO SIDE ───────────────────────────────────────── */
.info-side { display: flex; flex-direction: column; gap: 1.2rem; }

.info-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  border: 1.5px solid rgba(62,207,178,.18);
  box-shadow: 0 4px 20px rgba(62,207,178,.08);
  display: flex; align-items: flex-start; gap: 1rem;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: var(--ink);
}
.info-card:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 28px rgba(62,207,178,.15);
}
.info-icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.ic-mint   { background: var(--mint-l); }
.ic-sun    { background: rgba(255,216,77,.18); }
.ic-violet { background: rgba(199,120,224,.15); }
.ic-sky    { background: rgba(91,200,245,.15); }

.info-text h3 {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: .15rem;
}
.info-text p {
  font-size: .88rem; color: var(--muted); line-height: 1.6;
}
.info-text a { color: var(--mint-d); text-decoration: none; font-weight: 700; }
.info-text a:hover { text-decoration: underline; }

/* response time badge */
.response-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(62,207,178,.1);
  border: 1px solid rgba(62,207,178,.25);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .78rem; font-weight: 700; color: var(--mint-d);
  margin-top: .4rem;
}
.r-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  animation: blink 1.4s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* social row */
.social-row {
  display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .5rem;
}
.social-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white);
  border: 1.5px solid rgba(62,207,178,.22);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .82rem; font-weight: 700; color: var(--ink);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.social-btn:hover {
  background: var(--mint-l);
  border-color: var(--mint);
  transform: translateY(-2px);
}

/* ── FORM SIDE ───────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: 28px;
  padding: 2.5rem 2.8rem;
  border: 1.5px solid rgba(62,207,178,.2);
  box-shadow: 0 8px 40px rgba(62,207,178,.1);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--violet));
  border-radius: 28px 28px 0 0;
}

.form-title {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1.4rem; font-weight: 800;
  color: var(--ink); margin-bottom: .4rem;
}
.form-subtitle { font-size: .88rem; color: var(--muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }

label {
  display: block;
  font-size: .83rem; font-weight: 700; color: var(--ink);
  margin-bottom: .45rem;
}
label .req { color: var(--coral); margin-right: .2rem; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: 'Tajawal', sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(62,207,178,.22);
  border-radius: 14px;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  direction: rtl;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(62,207,178,.15);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #b0c4c0; }

textarea { resize: vertical; min-height: 120px; }

/* topic chips */
.topic-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-input { display: none; }
.chip-label {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--cream);
  border: 1.5px solid rgba(62,207,178,.22);
  border-radius: 50px;
  padding: .38rem 1rem;
  font-size: .83rem; font-weight: 700; color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.chip-input:checked + .chip-label {
  background: var(--mint-l);
  border-color: var(--mint);
  color: var(--mint-d);
}
.chip-label:hover { border-color: var(--mint); color: var(--mint-d); }

/* submit button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d5e 100%);
  color: #fff;
  border: none; cursor: pointer;
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1.05rem; font-weight: 700;
  padding: .9rem 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(62,207,178,.35);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.6rem;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(62,207,178,.45); }
.btn-submit:active { transform: translateY(0); }

/* success state */
.success-msg {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.success-msg .success-icon {
  font-size: 3.5rem; margin-bottom: 1rem;
  animation: bounceIn .5s ease both;
}
.success-msg h3 {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1.5rem; color: var(--mint-d); margin-bottom: .5rem;
}
.success-msg p { font-size: .95rem; color: var(--muted); }
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── FAQ SECTION ─────────────────────────────────────── */
.faq-section {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 2rem 5vw 5rem;
}
.faq-header {
  text-align: center; margin-bottom: 2.5rem;
}
.faq-label {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint-d); display: block; margin-bottom: .5rem;
}
.faq-header h2 {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

.faq-item {
  background: var(--white);
  border: 1.5px solid rgba(62,207,178,.18);
  border-radius: 18px;
  margin-bottom: .8rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(62,207,178,.1); }

.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-family: 'Tajawal', sans-serif;
  font-size: .97rem; font-weight: 700; color: var(--ink);
  text-align: right; direction: rtl;
  gap: 1rem;
}
.faq-q:hover { color: var(--mint-d); }
.faq-arrow {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 50%; background: var(--mint-l);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--mint-d);
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--mint); color: #fff; }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.5rem;
  font-size: .92rem; color: var(--muted); line-height: 1.85;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 1.5rem 1.2rem; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  .contact-main { grid-template-columns: 1fr; gap: 2rem; }
  .form-card { padding: 2rem 1.5rem; }
}
@media (max-width: 540px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
