:root {
    --primary-red: #b21f29;
    --accent-yellow: #FCB900;
    --black: #000000;
    --text: #54595F;
    --white: #ffffff;
    --light-bg: #f7f7f7;
    --border: #e3e3e3;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    min-height: 100vh;
}

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

.container {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.brand-bar {
    width: 80px;
    height: 6px;
    background: var(--accent-yellow);
    border-radius: 99px;
    margin-bottom: 24px;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-red);
}

h1 {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--black);
}

.intro-text {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--black);
    font-size: 15px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
}

input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(178, 31, 41, 0.12);
}

button,
.button-link {
    display: inline-block;
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

button:hover,
.button-link:hover {
    background: var(--black);
}

.message-error {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: bold;
}

.notice-box {
    background: var(--accent-yellow);
    color: var(--black);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .page-wrap {
        padding: 16px;
        align-items: flex-start;
    }

    .container {
        margin-top: 20px;
        padding: 28px 22px;
        border-radius: 14px;
    }

    h1 {
        font-size: 26px;
    }

    .intro-text {
        font-size: 15px;
    }

    input[type="text"],
    input[type="email"],
    button,
    .button-link {
        font-size: 15px;
    }
}
.question-box {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    line-height: 1.7;
    border-left: 4px solid var(--primary-red);
}

.option-card {
    display: block;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.option-card:hover {
    background: #fafafa;
    border-color: var(--primary-red);
}

.option-card input {
    margin-right: 10px;
}
.wide-container {
    max-width: 1100px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.results-table th,
.results-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.results-table th {
    background: var(--primary-red);
    color: var(--white);
}

.results-table tr:nth-child(even) {
    background: #fafafa;
}

.results-table tr:hover {
    background: #fff8dc;
}
.timer-box {
    background: var(--black);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: bold;
    text-align: center;
}

.progress-wrapper {
    width: 100%;
    height: 12px;
    background: #eeeeee;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--accent-yellow);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
}
.secondary-button {
    background: #54595F;
    margin-top: 12px;
}

.danger-button {
    background: #000000;
    margin-top: 12px;
}

.secondary-button:hover,
.danger-button:hover {
    background: #b21f29;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.dashboard-card {
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.dashboard-card strong {
    display: block;
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.dashboard-card span {
    color: var(--text);
    font-weight: bold;
}

.admin-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}