/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ───────────────────────────────────────── */
:root {
    --blue: #6699FF;
    --blue-light: #EEF2FF;
    --blue-dark: #4477DD;
    --text: #1C1C2E;
    --text-secondary: #5C5C78;
    --border: #E2E4F0;
    --bg: #F8F9FC;
    --white: #FFFFFF;
    --sidebar-width: 240px;
    --font: 'Trebuchet MS', 'Lucida Grande', sans-serif;
}

/* ── Body ────────────────────────────────────────────── */
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
body.bg-default { background: var(--bg); }
body.bg-blue-light { background: var(--blue-light); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo {
    font-size: 17px;
    font-weight: bold;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}
.header-sep {
    color: var(--border);
    font-size: 22px;
    font-weight: 100;
    line-height: 1;
}
.header-title {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: normal;
}
.header-crumb {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
}
.header-crumb:hover { color: var(--blue); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 20px 24px;
    text-align: center;
    margin-top: 40px;
}
.site-footer a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}
.site-footer a:hover { color: var(--blue); }

/* ── User ID hint pill (shared) ──────────────────────── */
.user-id-hint {
    display: inline-block;
    background: var(--blue-light);
    border: 1px solid #c5d3ff;
    border-radius: 5px;
    padding: 1px 7px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--blue-dark);
    font-weight: bold;
}


/* ════════════════════════════════════════════════════════
   INDEX PAGE (index.html)
   ════════════════════════════════════════════════════════ */

/* ── Mobile topic nav ─────────────────────────────────── */
.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding: 10px 16px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    font-family: var(--font);
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.15s;
}
.mobile-nav a:hover { background: #d8e0ff; }

/* ── Page layout ──────────────────────────────────────── */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 61px;
    max-height: calc(100vh - 61px);
    overflow-y: auto;
    padding: 32px 0;
    border-right: 1px solid var(--border);
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 20px 10px;
}
.sidebar nav a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}
.sidebar nav a:hover {
    color: var(--blue);
    background: var(--blue-light);
}
.sidebar nav a.active {
    color: var(--blue);
    border-left-color: var(--blue);
    background: var(--blue-light);
    font-weight: bold;
}
.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 20px;
}
.sidebar-contact {
    display: block;
    margin: 4px 20px 0;
    padding: 9px 16px;
    background: var(--blue);
    color: white;
    font-family: var(--font);
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}
.sidebar-contact:hover { background: var(--blue-dark); }

/* ── Main content ─────────────────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 40px 0 60px 48px;
}

/* ── Welcome banner ───────────────────────────────────── */
.welcome-banner {
    background: var(--blue-light);
    border: 1px solid #c5d3ff;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
}
.welcome-banner h1 {
    font-size: 20px;
    color: var(--blue-dark);
    margin-bottom: 10px;
}
.welcome-banner p {
    font-size: 14px;
    color: #3355aa;
    line-height: 1.65;
    margin-bottom: 8px;
}
.welcome-banner p:last-of-type { margin-bottom: 0; }
.banner-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}
.banner-contact-btn {
    background: var(--blue);
    color: white;
    font-family: var(--font);
    font-size: 14px;
    font-weight: bold;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.banner-contact-btn:hover { background: var(--blue-dark); }

/* ── Help sections ────────────────────────────────────── */
.help-section {
    padding-top: 44px;
    margin-top: 44px;
    border-top: 1px solid var(--border);
}
.help-section-group > .help-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.section-tag {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}
.help-section-group > h2 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}
.help-section h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.35;
}
.help-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
    max-width: 660px;
}
.help-section p strong { color: var(--text); }

/* ── Steps heading ────────────────────────────────────── */
.steps-heading {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 24px 0 12px;
}

/* ── Platform columns ─────────────────────────────────── */
.platform-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 680px;
}
.platform-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}
.platform-col h3 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--blue);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.platform-col ol {
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.platform-col ol li { margin-bottom: 4px; }
.platform-col ol li:last-child { margin-bottom: 0; }
.platform-col ol li strong { color: var(--text); }

/* ── Please Note callout ──────────────────────────────── */
.please-note {
    margin-top: 36px;
    background: #FFF8EC;
    border: 1px solid #F5D88A;
    border-left: 4px solid #E6A817;
    border-radius: 8px;
    padding: 16px 20px;
    max-width: 660px;
}
.please-note-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9A6500;
    margin-bottom: 6px;
}
.please-note p {
    font-size: 14px;
    color: #6B4700;
    line-height: 1.65;
    max-width: 100%;
}

/* ── Index responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-nav { display: flex; }
    .main-content { padding: 28px 0 48px; }
    .page-wrapper { padding: 0 16px; }
    .platform-cols { grid-template-columns: 1fr; max-width: 100%; }
    .header-title { display: none; }
    .header-sep { display: none; }
    .help-section p { max-width: 100%; }
}


/* ════════════════════════════════════════════════════════
   FORM PAGE (supportform.html)
   ════════════════════════════════════════════════════════ */

/* ── Form page wrapper ────────────────────────────────── */
.form-page-wrapper {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

/* ── Form card ────────────────────────────────────────── */
.form-card {
    background: var(--white);
    border: 1px solid #c5d3ff;
    border-radius: 12px;
    padding: 32px 36px;
}
.form-card h1 {
    font-size: 20px;
    color: var(--blue-dark);
    margin-bottom: 6px;
}
.form-subtitle {
    font-size: 14px;
    color: #3355aa;
    margin-bottom: 28px;
    line-height: 1.55;
}

/* ── Form elements ────────────────────────────────────── */
.form-group { margin-bottom: 22px; }

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 6px;
}
.field-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.15);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
select { cursor: pointer; }

/* ── Radio group ──────────────────────────────────────── */
.radio-group {
    display: flex;
    gap: 24px;
    padding-top: 4px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: normal;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0;
}
input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Form divider ─────────────────────────────────────── */
.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ── Submit button ────────────────────────────────────── */
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: var(--blue);
    color: white;
    font-family: var(--font);
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}
.submit-btn:hover { background: var(--blue-dark); }

/* ── CAPTCHA ──────────────────────────────────────────── */
.captcha-group {
    background: var(--blue-light);
    border: 1px solid #c5d3ff;
    border-radius: 8px;
    padding: 14px 16px 16px;
}
.captcha-group label { color: var(--blue-dark); }

/* ── Form responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .form-page-wrapper { margin-top: 24px; padding: 0 16px 48px; }
    .form-card { padding: 22px 20px; }
    .header-sep, .header-title { display: none; }
}


/* ════════════════════════════════════════════════════════
   RESULT PAGE (support.php)
   ════════════════════════════════════════════════════════ */

.result-card {
    background: var(--white);
    border: 1px solid #c5d3ff;
    border-radius: 12px;
    padding: 32px 36px;
    text-align: center;
}
.result-card h2 {
    font-size: 20px;
    color: var(--blue-dark);
    margin-bottom: 12px;
}
.result-card > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}
.result-summary {
    background: var(--blue-light);
    border: 1px solid #c5d3ff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 28px;
    text-align: left;
}
.result-summary p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.result-summary strong {
    display: inline-block;
    width: 90px;
    color: var(--text);
}
.result-cta {
    display: inline-block;
    background: var(--blue);
    color: white;
    font-family: var(--font);
    font-size: 15px;
    font-weight: bold;
    padding: 11px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.result-cta:hover { background: var(--blue-dark); }
.result-card.error { border-color: #f5c6cb; }
.result-card.error h2 { color: #721c24; }
.result-card.error > p { color: #7a4040; }
.result-error-detail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #721c24;
    text-align: left;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .result-card { padding: 22px 20px; }
}
