*, [hidden] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
}

/* ── Card ─────────────────────────────────── */
.card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.40),
        0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 48px 42px 40px;
    width: 100%;
    max-width: 530px;
    position: relative;
    overflow: hidden;
}

/* top accent stripe */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1b5e20, #43a047, #a5d6a7, #43a047, #1b5e20);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Logos ────────────────────────────────── */
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #edf0f5;
    position: relative;
}

.logos::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    border-radius: 2px;
}

.logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

/* ── Card headings ────────────────────────── */
.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1b5e20;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.card-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 28px;
    font-style: italic;
}

/* ── Survey section banner ────────────────── */
.survey-section {
    margin: 28px 0 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-radius: 12px;
    color: #fff;
}

.survey-section span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.survey-section p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Survey question labels ───────────────── */
.survey-question label {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #1e293b;
    line-height: 1.55;
}

/* ── Select dropdowns ─────────────────────── */
.form-group select {
    padding: 12px 40px 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.93rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    cursor: pointer;
    line-height: 1.5;
}

.form-group select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    background-color: #fff;
}

.form-group select.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.form-group select option {
    color: #1e293b;
    background: #fff;
    padding: 8px;
}

/* ── Form ─────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: #cbd5e1;
}

.form-group input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    background: #fff;
}

.form-group input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.field-error {
    font-size: 0.76rem;
    color: #ef4444;
    margin-top: 5px;
    min-height: 16px;
    display: block;
    font-weight: 500;
}

.form-error {
    font-size: 0.84rem;
    color: #ef4444;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
    font-weight: 500;
}

/* ── Privacy notice ──────────────────────── */
.privacy-notice {
    margin: 24px 0 18px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
}

.privacy-notice-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-notice-text svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

.privacy-notice-text a {
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-notice-text a:hover {
    color: #92400e;
}

.privacy-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #2e7d32;
    cursor: pointer;
}

.privacy-checkbox-group label {
    font-size: 0.84rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
}

.privacy-checkbox-group a {
    color: #2e7d32;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-checkbox-group a:hover {
    color: #1b5e20;
}

/* ── Submit button ────────────────────────── */
.submit-btn {
    flex: 1.8;
    padding: 12px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.24);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.32);
    transform: translateY(-1.5px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.28);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ──────────────────────────────── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── About This Form expandable panel ───────── */
.about-panel {
    margin-top: 28px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.about-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
    background: #f8fafc;
    list-style: none;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

.about-panel-header::-webkit-details-marker { display: none; }
.about-panel-header::marker { display: none; }

.about-panel-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s;
}

.about-panel[open] > .about-panel-header {
    background: #f0faf1;
    color: #1b5e20;
    border-bottom: 1.5px solid #e2e8f0;
}

.about-panel[open] > .about-panel-header .about-panel-chevron {
    transform: rotate(180deg);
    color: #2e7d32;
}

.about-panel-body {
    padding: 16px 18px 4px;
    background: #fff;
    overflow: hidden;
    transition: height 0.35s ease, opacity 0.3s ease;
}

/* ── Purpose cards ────────────────────────── */
.card-purpose {
    font-size: 0.855rem;
    color: #475569;
    line-height: 1.7;
    background: linear-gradient(135deg, #f0faf1, #e8f5e9);
    border-left: 4px solid #2e7d32;
    padding: 14px 16px 14px 18px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 12px;
    position: relative;
}

.card-purpose strong {
    display: block;
    color: #1b5e20;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* ── Thank You section ────────────────────── */
#thankYouSection {
    text-align: center;
    padding: 20px 0 12px;
}

#alreadySubmittedSection {
    text-align: center;
    padding: 20px 0 12px;
}

.thankyou-icon {
    font-size: 2.6rem;
    color: #2e7d32;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    width: 84px;
    height: 84px;
    line-height: 84px;
    margin: 0 auto 24px;
    box-shadow: 0 6px 24px rgba(46, 125, 50, 0.22);
}

.thankyou-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.thankyou-message {
    font-size: 0.97rem;
    color: #64748b;
    line-height: 1.65;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 560px) {
    .card {
        padding: 36px 22px 30px;
        border-radius: 18px;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .logo {
        width: 66px;
        height: 66px;
    }

    .logos {
        gap: 24px;
    }
}

/* ── Page-load overlay ────────────────────── */
body:has(.page-load-overlay) {
    overflow: hidden;
}

.page-load-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.page-load-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-load-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Already-submitted icon overrides ─────── */
.already-icon {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.22);
}

.already-title {
    color: #92400e;
}

/* ── Multi-Step Form Controls ──────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px auto 26px;
    max-width: 320px;
}

.step-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-pill.active {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.18);
}

.step-pill.completed {
    background: #e8f5e9;
    border-color: #81c784;
    color: #2e7d32;
}

.step-pill.accomplished {
    cursor: pointer;
}

.step-pill.accomplished:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.step-pill.active.accomplished:hover {
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.28);
}

.step-line {
    flex-grow: 1;
    height: 2.5px;
    background: #e2e8f0;
    margin: 0 8px;
    transition: background-color 0.3s;
}

.step-line.active {
    background: #81c784;
}

.step-title-display {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2e7d32;
    margin-bottom: 24px;
}

.form-step {
    display: flex;
    flex-direction: column;
    animation: fadeInStep 0.45s ease-out;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Nav Buttons Group ─────────────────────── */
.nav-buttons-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-back {
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-next {
    flex: 1.8;
    padding: 12px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.24);
}

.btn-next:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.32);
    transform: translateY(-1.5px);
}

.btn-back:disabled,
.btn-next:disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ── Touch Friendly Select Rows ────────────── */
.choice-list {
    margin-top: 8px;
}

.choice-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 46px;
}

.choice-row:hover {
    background: #f0fdf4;
    border-color: #c6f6d5;
}

.choice-row input[type="checkbox"],
.choice-row input[type="radio"] {
    accent-color: #2e7d32;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.choice-row span {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    font-weight: 500;
    cursor: pointer;
}

.text-others-input {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.text-others-input:focus {
    border-color: #2e7d32;
}

.conditional-container {
    background: #fcfdfe;
    border-left: 3px solid #2e7d32;
    padding: 14px 16px 6px;
    border-radius: 0 12px 12px 0;
    margin-top: 4px;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.conditional-container label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.conditional-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.4;
}
