/* Soroush Ayandeh — shared look for the public site and the survey panel. */

@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn/Vazirmatn-FD-Regular.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(../fonts/vazirmatn/Vazirmatn-FD-Medium.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn/Vazirmatn-FD-Bold.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(../fonts/vazirmatn/Vazirmatn-FD-ExtraBold.woff2) format("woff2"); }

:root {
  --brand: #0f9b8e;
  --brand-600: #0b8276;
  --brand-700: #086b61;
  --brand-50: #ecf8f6;
  --brand-100: #d4f0eb;
  --ink: #1d2939;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e9ef;
  --bg: #f5f8fa;
  --card: #ffffff;
  --purple: #7c5cf0;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --green: #22b573;
  --red: #e5484d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --font: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.8; color: var(--ink); background: var(--bg); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.45; color: var(--ink); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }

/* ---- buttons, fields, cards ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-600); border-color: var(--brand-100); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.input-wrap { position: relative; }
.input { width: 100%; height: 48px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input.error { border-color: var(--red); }
.input-wrap .icon { position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; transform: translateY(-50%); color: #98a2b3; pointer-events: none; }
.input-wrap .toggle { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); padding: 6px; border: 0; background: none; color: #98a2b3; cursor: pointer; }
.input-wrap .toggle svg { display: block; width: 20px; height: 20px; }
input[dir="ltr"] { text-align: left; }
input[dir="ltr"]::placeholder { text-align: right; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #b42318; border: 1px solid #f9d0d0; }
.alert ul { margin: 0; padding-right: 18px; }

/* ---- public header / footer ---- */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; color: var(--brand); flex: none; }
.site-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.site-nav a { position: relative; color: var(--ink-2); font-weight: 500; padding: 6px 0; }
.site-nav a:hover { color: var(--brand-600); }
.header-actions { display: flex; gap: 8px; }
.btn.btn-link { background: none; border-color: transparent; color: var(--brand-700); box-shadow: none; }
.btn.btn-link:hover { text-decoration: underline; }
.site-nav a.active { color: var(--brand-600); }
.site-nav a.active::after { content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--brand); }

.site-footer { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand-600); }

/* ---- home ---- */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 15% 10%, var(--brand-50), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-bottom: 18px; }
.hero h1 .accent { display: block; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art img { display: block; width: 100%; height: auto; }

.features { padding: 24px 0 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px 22px; text-align: center; }
.feature h3 { font-size: 17px; margin: 14px 0 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.tone-purple { background: #f0ebff; color: var(--purple); }
.tone-blue { background: #e8f1ff; color: var(--blue); }
.tone-orange { background: #fff4e0; color: var(--orange); }
.tone-green { background: #e3f7ee; color: var(--green); }

.section { padding: 56px 0 0; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.about-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; padding: 32px; }
.about-band p { color: var(--ink-2); text-align: justify; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-50); font-weight: 500; color: var(--ink-2); }
.service-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---- inner public pages ---- */
.page-head { padding: 48px 0 28px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; font-weight: 800; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-body { padding-top: 32px; }
.prose { padding: 32px; font-size: 16px; line-height: 2.1; color: var(--ink-2); text-align: justify; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 22px; }
.contact-item .feature-icon { flex: none; }
.contact-item h3 { font-size: 15px; margin: 0; color: var(--muted); font-weight: 500; }
.contact-item div > :last-child { font-weight: 700; color: var(--ink); }
.map { margin-top: 18px; overflow: hidden; padding: 0; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

.error-box { max-width: 560px; margin: 0 auto; padding: 48px 32px; text-align: center; }
.error-code { font-size: 64px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 12px; }

/* ---- login ---- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 85% 0%, var(--brand-50), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; }
.auth-art { position: relative; display: flex; flex-direction: column; padding: 44px 40px 0; background: linear-gradient(160deg, #dff4f0 0%, #c9ece6 55%, #b7e3dc 100%); }
.auth-art h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-art p { color: var(--ink-2); margin: 0; }
.auth-art img { display: block; margin-top: auto; width: 100%; height: auto; }
.auth-form { padding: 48px 56px; }
.auth-form .brand { margin-bottom: 4px; }
.auth-tagline { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.auth-form h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-form .lead { color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.captcha { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.captcha-q { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-700); font-weight: 700; white-space: nowrap; }
.captcha .input { padding-right: 14px; }
.auth-back { display: block; margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .hero-inner, .about-band { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { grid-template-columns: 1fr; max-width: 520px; }
  .auth-art { display: none; }
  .auth-form { padding: 36px 28px; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  .header-inner .btn { margin-inline-start: auto; }
  .hero { padding-top: 36px; }
  .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .about-band, .prose { padding: 22px; }
}

/* contact form */
.alert-success { background: #e3f7ee; color: #087443; border: 1px solid #c6f0dc; }
.contact-form { padding: 28px; margin-top: 18px; }
.contact-form h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.9; resize: vertical; }
.contact-form .input { padding-right: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.captcha-field { margin-bottom: 0; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

.login-help { margin: 6px 0 0; font-size: 12.5px; }
.auth-switch { margin: 14px 0 0; text-align: center; font-size: 14px; }
.register-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.register-form fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
.register-form .check { display: block; margin: 4px 0; font-size: 14px; }
.register-form .field-error { display: block; margin-top: 4px; color: #b42318; font-size: 13px; }
@media (max-width: 520px) { .register-form .field-row { grid-template-columns: 1fr; } }
