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

:root {
    --nav-teal:      #008C95;
    --nav-teal-dark: #006E75;
    --nav-orange:    #F47B20;
    --nav-gold:      #D19F2A;
    --nav-brown:     #4B3621;
    --nav-blue:      #228DC1;
    --nav-purple:    #7F4182;
    --text-dark:     #1A1A1A;
    --text-muted:    #666666;
    --bg-light:      #F7F7F5;
    --field-bg:      #FFFFFF;
    --border:        #D4D4D4;
    --radius:        8px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

/* Skip link — visible only when focused (WCAG 2.1 AA) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: white;
    color: var(--nav-teal-dark);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 100;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
}

/* Honeypot — off-screen, not display:none (bots skip display:none) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Header */
.header {
    background: var(--nav-teal);
    padding: 24px 20px 28px;
    text-align: center;
    position: relative;
}
.header::after {
    content: '';
    display: block;
    height: 4px;
    background: var(--nav-gold);
    position: absolute;
    bottom: 0; left: 0; right: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.logo-img {
    height: 75px;
    width: auto;
    display: block;
}

.header h1 {
    color: white;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.header p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
}

/* Event badge */
.event-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* Card */
.card {
    max-width: 440px;
    margin: -16px auto 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 28px 24px 32px;
    position: relative;
    z-index: 1;
}

.intro {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.intro strong { color: var(--text-dark); }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-group label,
.form-group .toggle-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--text-dark);
    transition: border-color 0.2s;
    font-family: inherit;
}
input:focus, textarea:focus, .toggle-btn:focus-visible, .submit-btn:focus-visible {
    outline: none;
    border-color: var(--nav-teal);
    box-shadow: 0 0 0 3px rgba(0,140,149,0.35);
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* Divider */
.divider {
    height: 1px;
    background: #E8E8E8;
    margin: 24px 0;
}

/* Section headers */
.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-label .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.section-label.teal   { color: var(--nav-teal); }
.section-label.teal   .dot { background: var(--nav-teal); }
.section-label.blue   { color: var(--nav-blue); }
.section-label.blue   .dot { background: var(--nav-blue); }
.section-label.purple { color: var(--nav-purple); }
.section-label.purple .dot { background: var(--nav-purple); }

/* Yes/No toggle (real <button> elements) */
.toggle-group {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.toggle-btn {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.toggle-btn.selected {
    background: var(--nav-teal);
    border-color: var(--nav-teal);
    color: white;
}
.toggle-btn:hover:not(.selected) {
    border-color: var(--nav-teal);
    color: var(--nav-teal);
}

/* Conditional story section */
.story-section {
    background: #F9FAFB;
    border-radius: var(--radius);
    padding: 18px 16px;
    border-left: 3px solid var(--nav-blue);
    margin-top: 8px;
}
.story-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-blue);
    margin-bottom: 8px;
    display: block;
}
.story-section[hidden] { display: none; }

/* Privacy note */
.privacy-note {
    background: #F5F5F0;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.privacy-note .icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 1px;
}
.privacy-note a {
    color: var(--nav-teal);
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    background: var(--nav-teal);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
    letter-spacing: 0.3px;
    font-family: inherit;
}
.submit-btn:hover:not(:disabled) {
    background: var(--nav-teal-dark);
}
.submit-btn:disabled {
    background: var(--nav-teal-dark);
    opacity: 0.85;
    cursor: not-allowed;
}

/* Thank-you panel */
.thank-you {
    text-align: center;
    padding: 40px 28px;
}
.thank-you h2 {
    font-size: 22px;
    color: var(--nav-teal-dark);
    margin-bottom: 12px;
}
.thank-you p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 16px 20px 32px;
    max-width: 440px;
    margin: 0 auto;
}
.footer-links {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-links a {
    color: var(--nav-teal);
    text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { margin: 0 8px; color: #CCC; }
.footer-copy {
    font-size: 11px;
    color: #AAAAAA;
    margin-top: 8px;
}
