/* NewSO shared design system — used by all content/form pages.
   The homepage (index.html) carries its own hero styles; everything else
   links this file. Tokens must stay in sync with index.html and nav.js. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
    --pink: #ff6b9d;
    --pink-dark: #ff4f8b;
    --pink-deep: #d6336c;
    --ink: #241b3a;
    --ink-soft: #5b5372;
    --deep: #1a1033;
    --deep-2: #2b1a52;
    --bg: #f7f6fb;
    --card: #ffffff;
    --line: #eceaf3;
    --green: #22c55e;
    --red: #ef4444;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(26, 16, 51, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

/* ---------- Header ---------- */
.header {
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header h1 { display: flex; align-items: center; font-size: 1em; }

.nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

.nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s;
}

.nav a:hover { color: var(--pink); }

/* ---------- Page layout ---------- */
.page-wrap {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
}

.page-hero {
    background: linear-gradient(115deg, var(--deep) 0%, var(--deep-2) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 44px;
    margin-bottom: 28px;
}

.page-hero h2 { font-size: 2em; margin-bottom: 10px; }

.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 72ch; }

.page-hero .hero-meta {
    margin-top: 14px;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.55);
}

.section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px;
    margin-bottom: 24px;
}

.section h2 { font-size: 1.5em; margin-bottom: 14px; }

.section h3 { font-size: 1.12em; color: var(--pink-deep); margin: 22px 0 8px; }

.section h3:first-child, .section h2 + h3 { margin-top: 0; }

.section h4 { font-size: 1em; margin: 18px 0 6px; }

.section p { color: var(--ink-soft); margin-bottom: 14px; }

.section p:last-child { margin-bottom: 0; }

.section ul, .section ol { margin: 0 0 14px 22px; color: var(--ink-soft); }

.section li { margin-bottom: 7px; }

.section a { color: var(--pink-deep); text-decoration: none; font-weight: 600; }

.section a:hover { color: var(--pink); }

.rules-list {
    background: var(--bg);
    border-left: 4px solid var(--pink);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 12px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 22px;
}

.highlight-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pink);
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    color: var(--ink-soft);
    font-size: 0.93em;
    line-height: 1.55;
}

.highlight-card strong {
    display: block;
    color: var(--ink);
    margin-bottom: 5px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.15s, background 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 107, 157, 0.32);
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    color: #fff;
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Forms ---------- */
.form-shell {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

.form-card.wide { max-width: 620px; }

.logo { text-align: center; margin-bottom: 28px; }

.logo h2 { font-size: 1.6em; margin-bottom: 4px; }

.logo p { color: var(--ink-soft); font-size: 0.9em; }

.form-card form > div, .form-card .form-group { margin-bottom: 18px; }

.form-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.88em;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    transition: border-color 0.3s;
    margin-bottom: 0;
}

.form-card form > input {
    margin-bottom: 14px;
}

.form-card input:focus { outline: none; border-color: var(--pink); }

.form-card .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    margin: 14px 0;
    text-align: left;
}

.form-card .checkbox-group input { margin-top: 3px; }

.form-card .checkbox-group label { color: var(--ink-soft); font-weight: 500; margin: 0; }

.form-card button[type="submit"] {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(255, 107, 157, 0.32);
    transition: transform 0.15s, background 0.3s;
}

.form-card button[type="submit"]:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

.form-card .error {
    background: #fdecef;
    color: #b4234f;
    border: 1px solid #f8c9d6;
    padding: 12px;
    border-radius: 10px;
    margin: 14px 0 0;
    font-size: 0.9em;
    text-align: center;
}

.form-card .error:empty { display: none; }

.form-card .success {
    background: #e7f7ee;
    color: #1a7f4b;
    border: 1px solid #bfe8d2;
    padding: 14px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.95em;
    text-align: center;
}

.form-card #responseBox { margin-top: 15px; padding: 12px; border-radius: 10px; text-align: center; display: none; font-size: 0.9em; }

.form-card #responseBox.error { display: block; margin-top: 15px; }

.form-card #responseBox.success { display: block; background: #e7f7ee; color: #1a7f4b; border: 1px solid #bfe8d2; }

.links { margin-top: 20px; text-align: center; font-size: 0.9em; }

.links a { color: var(--pink-deep); text-decoration: none; font-weight: 600; transition: color 0.3s; }

.links a:hover { color: var(--pink); }

.form-note {
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: 0.85em;
    text-align: center;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 40px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.footer-inner a { color: #ffb3cd; text-decoration: none; }

.footer-inner a:hover { color: #fff; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .header { padding: 12px 20px; }
    .page-wrap { padding: 32px 20px; }
    .page-hero { padding: 28px 24px; }
    .section { padding: 26px 22px; }
    .highlight-grid { grid-template-columns: 1fr; }
    .site-footer { padding: 26px 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
