* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: #2e2430;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at top left, rgba(255, 205, 87, 0.32), transparent 30rem),
        radial-gradient(circle at 90% 10%, rgba(255, 130, 170, 0.22), transparent 24rem),
        linear-gradient(135deg, #fff9ef 0%, #fff6fb 46%, #f4fbff 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 56px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 70px rgba(111, 70, 38, 0.12);
}

.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 12deg, #ffcf60 0 10deg, #ff8fb3 10deg 20deg, #89d8ff 20deg 30deg);
    opacity: 0.32;
}

.eyebrow {
    margin: 0 0 10px;
    color: #bb5d20;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: clamp(34px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 4px;
    font-size: clamp(22px, 3vw, 31px);
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: #6a5968;
    font-size: 18px;
}

.poll-card,
.question,
.notice,
.result-card,
.summary-card,
.responses-table {
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 48px rgba(105, 66, 45, 0.1);
}

.poll-card {
    padding: clamp(18px, 4vw, 34px);
    border-radius: 30px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 8px;
    color: #5f4d5f;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #eadfe6;
    border-radius: 16px;
    padding: 14px 16px;
    color: #322533;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #ff9f43;
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.18);
}

.question {
    margin-top: 18px;
    padding: clamp(18px, 4vw, 30px);
    border-radius: 26px;
}

.question-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.question-title p {
    margin-bottom: 0;
    color: #7a6878;
}

.step {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #7c3d00;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe08a, #ffb167);
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.options.compact {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    margin-bottom: 0;
}

.option,
.chips label {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #f0e4ea;
    border-radius: 16px;
    color: #3a2d3b;
    font-weight: 750;
    background: #fff;
    cursor: pointer;
}

.option input,
.chips input {
    width: 18px;
    height: 18px;
    accent-color: #ff8a3d;
}

.inline-detail {
    max-width: 420px;
    margin-bottom: 16px;
}

.champagne-detail {
    max-width: 100%;
    margin: -4px 0 16px;
    padding: 14px;
    border: 1px solid #ffe1b9;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 246, 214, 0.9), rgba(255, 255, 255, 0.92));
}

.champagne-detail[hidden] {
    display: none;
}

.champagne-detail select {
    max-width: 380px;
}

.juice-detail {
    margin: -4px 0 16px;
    padding: 14px;
    border: 1px solid #d7edf8;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(236, 250, 255, 0.92), rgba(255, 255, 255, 0.94));
}

.juice-detail[hidden] {
    display: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.chips legend {
    width: 100%;
    margin-bottom: 8px;
    color: #5f4d5f;
    font-weight: 800;
}

.chips.juice-detail {
    margin: -4px 0 16px;
    padding: 14px;
    border: 1px solid #d7edf8;
}

.detail-title {
    width: 100%;
    margin-bottom: 8px;
    color: #5f4d5f;
    font-weight: 800;
}

.submit {
    width: 100%;
    margin-top: 20px;
    border: 0;
    border-radius: 20px;
    padding: 17px 22px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #ff7b35, #e84d8a);
    box-shadow: 0 16px 34px rgba(232, 77, 138, 0.25);
}

.submit:hover {
    filter: brightness(1.03);
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.success {
    color: #1b5a38;
    background: rgba(218, 255, 234, 0.88);
}

.error {
    color: #8e2440;
    background: rgba(255, 232, 238, 0.92);
}

.admin-page {
    width: min(1280px, calc(100% - 32px));
}

.summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 26px;
}

.summary-card p {
    margin-bottom: 0;
    color: #735f70;
    font-weight: 800;
}

.big-number {
    display: block;
    font-size: 46px;
    line-height: 1;
    font-weight: 950;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.result-card,
.responses-table {
    border-radius: 24px;
    padding: 22px;
}

.stat-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #fff8f2;
}

.stat-list strong {
    color: #e65d3d;
}

.muted {
    color: #7c6d7a;
}

.responses-table {
    margin-top: 18px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #f1e6ec;
    text-align: left;
    vertical-align: top;
}

th {
    color: #6d526a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    background: rgba(255, 255, 255, 0.55);
}

em {
    color: #7d6478;
}

@media (max-width: 720px) {
    .page,
    .admin-page {
        width: min(100% - 20px, 1080px);
        padding-top: 18px;
    }

    .grid.two,
    .summary-card {
        grid-template-columns: 1fr;
    }

    .hero,
    .poll-card,
    .question,
    .result-card,
    .responses-table {
        border-radius: 22px;
    }

    .hero p {
        font-size: 16px;
    }

    .question-title {
        display: block;
    }

    .step {
        margin-bottom: 12px;
    }
}
