:root {
    --bg: #ece5da;
    --bg-2: #f4efe7;
    --card: rgba(255, 252, 248, 0.88);
    --text: #3d302b;
    --muted: #6d5b54;
    --accent: #9a6a4d;
    --accent-dark: #7a4f39;
    --border: #e2d0c2;
    --success: rgba(243, 233, 222, 0.9);
    --success-strong: rgba(239, 220, 203, 0.95);
    --shadow: 0 14px 38px rgba(82, 55, 43, 0.10);
    --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 245, 230, 0.85), transparent 32%),
        radial-gradient(circle at top right, rgba(232, 199, 168, 0.28), transparent 30%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.22), transparent 18%),
        radial-gradient(circle at 85% 10%, rgba(255,244,230,0.14), transparent 18%);
    z-index: 0;
}

.autumn-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.leaf {
    position: absolute;
    top: -12vh;
    opacity: 0.82;
    filter: drop-shadow(0 4px 6px rgba(95, 61, 36, 0.12));
    animation-name: leafFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.leaf svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes leafFall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(18px, 30vh, 0) rotate(75deg);
    }
    50% {
        transform: translate3d(-12px, 58vh, 0) rotate(140deg);
    }
    75% {
        transform: translate3d(24px, 82vh, 0) rotate(240deg);
    }
    100% {
        transform: translate3d(-18px, 120vh, 0) rotate(320deg);
    }
}

.page,
.admin-wrap {
    position: relative;
    z-index: 2;
}

.page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 30px 18px 44px;
}

.small-page {
    max-width: 720px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.card {
    background: var(--card);
    border: 1px solid rgba(226, 208, 194, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    padding: 28px;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(243, 224, 210, 0.92);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.form-card {
    padding: 24px;
}

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

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

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    color: var(--text);
    background: rgba(255,255,255,0.92);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(154, 106, 77, 0.12);
    background: #fff;
}

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

.notice {
    background: var(--success);
    border: 1px solid rgba(226, 208, 194, 0.95);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.65;
    color: var(--text);
}

.notice.strong {
    background: var(--success-strong);
}

.checkbox-grid,
.radio-group {
    display: grid;
    gap: 10px;
}

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

.check,
.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 208, 194, 0.95);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
}

.check input,
.radio input {
    accent-color: var(--accent);
}

.hint {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
}

.btn-primary,
button.btn-primary {
    display: inline-block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #a56f52 0%, var(--accent-dark) 100%);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(122, 79, 57, 0.24);
}

.thankyou {
    padding: 38px 28px;
    text-align: center;
}

.thankyou h1 {
    margin-top: 0;
}

.admin-wrap {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 24px 18px 42px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

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

.submission-card {
    padding: 20px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.copy-box {
    width: 100%;
    min-height: 260px;
    background: #2e241f;
    color: #f7efe9;
    border: 0;
    border-radius: 14px;
    padding: 16px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.copy-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-secondary {
    border: 1px solid rgba(226, 208, 194, 0.95);
    background: rgba(255,255,255,0.9);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.login-card {
    max-width: 440px;
    margin: 60px auto;
    padding: 24px;
}

.error {
    color: #9a2f2f;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 760px) {
    .grid.two,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

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

    .leaf {
        opacity: 0.68;
    }
}
