:root {
    --ink: #1e3d45;
    --muted: #5e7e83;
    --teal: #078fb0;
    --teal-dark: #006f91;
    --aqua: #62d0cc;
    --line: rgba(12, 116, 133, 0.28);
    --paper: rgba(248, 255, 254, 0.88);
    --white: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 22% 0%, rgba(0, 155, 154, 0.34), transparent 20rem),
        radial-gradient(circle at 87% 18%, rgba(113, 220, 178, 0.56), transparent 24rem),
        linear-gradient(135deg, #e9fffb 0%, #b5eee7 46%, #e7fff5 100%);
    min-height: 100vh;
}

.survey-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.hero {
    position: relative;
    aspect-ratio: 2481 / 986;
    border-radius: 0 0 34px 34px;
    overflow: hidden;
    background: url('banner-final.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0, 100, 116, 0.17);
}

.hero .pill,
.survey-section h3 {
    display: inline-block;
    min-width: min(470px, 100%);
    margin: 20px 0 16px;
    padding: 9px 28px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--teal), var(--aqua), var(--teal-dark));
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.notice {
    margin: 22px auto 0;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 700;
}

.success {
    color: #095f33;
    background: #dff8e9;
}

.error {
    color: #9f2b2b;
    background: #ffe5e5;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 62, 67, 0.46);
}

.thank-you-modal {
    width: min(440px, 100%);
    border: 1px solid rgba(13, 145, 161, 0.28);
    border-radius: 22px;
    padding: 28px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 22px 70px rgba(0, 61, 73, 0.28);
}

.thank-you-modal h2 {
    margin: 0;
    color: var(--teal-dark);
    font-size: 28px;
}

.thank-you-modal p {
    margin: 12px 0 22px;
    color: var(--ink);
    font-size: 18px;
}

.thank-you-modal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    border-radius: 999px;
    padding: 12px 24px;
    color: var(--white);
    background: linear-gradient(90deg, var(--teal-dark), var(--aqua), var(--teal));
    font-weight: 700;
    text-decoration: none;
}

.survey-form {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.survey-section,
.admin-card,
.stats article,
.login-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(0, 104, 128, 0.12);
}

label span,
.login-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-weight: 700;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid rgba(13, 145, 161, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
}

textarea {
    min-height: 74px;
    resize: vertical;
}

.survey-section {
    padding: 28px;
}

.survey-section h3 {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(20px, 2.5vw, 28px);
}

.rating-table,
.message-block {
    border: 1px solid var(--line);
    border-radius: 27px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.44);
}

.table-head,
.speaker-row,
.org-row {
    display: grid;
    grid-template-columns: 2.35fr repeat(5, 1fr);
}

.table-head {
    color: var(--white);
    background: linear-gradient(90deg, var(--teal-dark), #64cbc4, var(--teal));
    font-weight: 700;
}

.table-head div,
.row-title,
.radio-cell,
.text-row {
    padding: 14px 16px;
}

.table-head div,
.radio-cell,
.row-title {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.table-head span {
    display: block;
    margin-top: 2px;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.speaker-row,
.org-row {
    border-top: 1px solid var(--line);
}

.row-title {
    display: flex;
    align-items: center;
    color: var(--teal);
    font-weight: 700;
}

.org-row .row-title {
    color: var(--ink);
    font-weight: 400;
}

.radio-cell {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-left: 1px solid var(--line);
}

.radio-cell span {
    display: none;
}

input[type="radio"] {
    width: 28px;
    height: 28px;
    margin: 0;
    accent-color: var(--teal);
}

.text-row {
    display: block;
    border-top: 1px solid var(--line);
}

.message-block {
    margin-top: 24px;
}

.message-block h4 {
    margin: 0;
    padding: 14px 24px;
    color: var(--teal);
    font-size: 18px;
}

.yes-no-row {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    align-items: center;
    border-top: 1px solid var(--line);
}

.yes-no-row .row-title {
    padding: 13px 24px;
}

.yes-no-row label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px;
    border-left: 1px solid var(--line);
    color: var(--teal);
    font-weight: 700;
}

.final-note {
    min-height: 138px;
}

.submit-button,
.export-button,
.login-card button {
    justify-self: center;
    border: 0;
    border-radius: 999px;
    padding: 15px 34px;
    color: var(--white);
    background: linear-gradient(90deg, var(--teal-dark), var(--aqua), var(--teal));
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 118, 143, 0.22);
}

.admin-body {
    background: #eef8f7;
}

.admin-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 32px 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-header p {
    margin: 0 0 6px;
    color: var(--teal);
    font-weight: 700;
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0;
}

.stats article {
    padding: 22px;
}

.stats span {
    display: block;
    color: var(--muted);
}

.stats strong {
    display: block;
    margin-top: 8px;
    color: var(--teal-dark);
    font-size: 30px;
}

.admin-card {
    padding: 22px;
}

.result-list {
    display: grid;
    gap: 18px;
}

.result-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.result-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.result-top h2,
.result-top p {
    margin: 0;
}

.result-top p,
.muted {
    color: var(--muted);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.result-grid h3 {
    color: var(--teal);
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.login-card {
    width: min(440px, calc(100% - 28px));
    margin: 10vh auto;
    padding: 28px;
}

.login-card h1 {
    margin-top: 0;
}

.login-card form {
    display: grid;
    gap: 16px;
}

.login-card p {
    color: var(--muted);
}

@media (max-width: 820px) {
    .survey-shell,
    .admin-shell {
        width: min(100% - 18px, 640px);
        padding-top: 10px;
    }

    .hero {
        border-radius: 0 0 24px 24px;
    }

    .stats,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .survey-section {
        padding: 18px 12px;
        border-radius: 22px;
    }

    .rating-table,
    .message-block {
        border-radius: 18px;
    }

    .table-head {
        display: none;
    }

    .speaker-row,
    .org-row {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding-top: 12px;
    }

    .speaker-row .row-title,
    .org-row .row-title {
        grid-column: 1 / -1;
        border-right: 0;
        padding: 12px 14px;
    }

    .radio-cell {
        min-height: 74px;
        padding: 10px 5px 12px;
        border-top: 1px solid var(--line);
        text-align: center;
    }

    .radio-cell span {
        display: block;
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.15;
    }

    input[type="radio"] {
        width: 26px;
        height: 26px;
    }

    .yes-no-row {
        grid-template-columns: 1fr 92px 92px;
    }

    .yes-no-row .row-title {
        padding: 12px;
        font-size: 14px;
    }

    .yes-no-row label {
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
    }

    .admin-header,
    .result-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero .pill,
    .survey-section h3 {
        min-width: 0;
        padding-inline: 18px;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.45);
    }

    .yes-no-row {
        grid-template-columns: 1fr;
    }

    .yes-no-row label {
        flex-direction: row;
        justify-content: flex-start;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 18px;
    }
}
