/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #ffe8c7 0, #fde4cf 18%, #fdf2e9 45%, #f9fafb 100%);
    color: #111827;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: transparent;
    color: #4b5563;
    padding: 1rem 0 0.25rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

.site-header nav a {
    color: #6b7280;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.site-footer {
    margin-top: 3rem;
    padding: 1rem 0 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

main {
    padding: 0 0 2.5rem;
}

.hero {
    text-align: center;
    padding: 1.2rem 0 1.5rem;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111827;
    margin-bottom: 0.3rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.8rem 1.75rem 1.6rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.card.narrow {
    max-width: 420px;
    margin: 0 auto;
}

.card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.hint {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.1rem;
}

.required {
    color: #dc2626;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid #e5e7eb;
    font: inherit;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25);
    background-color: #fff7ed;
}

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

fieldset {
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 0.9rem 1rem 0.85rem;
    background-color: #f9fafb;
}

legend {
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.inline-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.inline-options label {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.inline-options input[type="radio"] {
    accent-color: #f97316;
    width: 1rem;
    height: 1rem;
}

@media (min-width: 720px) {
    .inline-options {
        flex-direction: row;
    }

    .inline-options label {
        flex: 0 0 calc(50% - 0.4rem);
        justify-content: center;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin-top: 0.25rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    background: linear-gradient(135deg, #fb923c, #f97316);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(248, 113, 22, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(248, 113, 22, 0.4);
}

.alert {
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.alert.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.nested-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border: 1px dashed #d1d5db;
    margin-top: 0.2rem;
}

.nested-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.hidden {
    display: none;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.75rem;
}

.submission {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f9fafb;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.submission-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.submission-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.submission-body p {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
}

.guests ul {
    margin-top: 0.15rem;
    margin-left: 1rem;
    list-style: disc;
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header nav a {
        margin-left: 0;
        margin-right: 1rem;
        display: inline-block;
        margin-top: 0.2rem;
    }

    .card {
        padding: 1.2rem 1rem;
    }
}

