:root {
    --bg: #f2f4f9;
    --surface: #ffffff;
    --line: rgba(18, 24, 38, 0.12);
    --text: #11192a;
    --muted: #58617a;
    --primary: #1f4ed8;
    --primary-dark: #153ba8;
    --danger: #c01d3f;
    --success: #0f7f46;
    --radius-lg: 24px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Pretendard Variable", Pretendard, sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(31, 78, 216, 0.18), transparent 26%),
        radial-gradient(circle at 92% 8%, rgba(12, 99, 62, 0.1), transparent 28%),
        var(--bg);
    line-height: 1.6;
}

.form-shell {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 36px 0 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #2946a7;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    color: var(--primary-dark);
}

.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 24px 56px rgba(16, 31, 66, 0.12);
    overflow: hidden;
}

.form-header {
    padding: clamp(24px, 4vw, 38px);
    border-bottom: 1px solid rgba(18, 24, 38, 0.08);
    background: linear-gradient(180deg, rgba(233, 239, 255, 0.58), rgba(255, 255, 255, 0.98));
}

.kicker {
    display: inline-flex;
    align-items: center;
    color: #2650bf;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.intro {
    color: var(--muted);
    max-width: 64ch;
}

#survey-form {
    padding: clamp(22px, 4vw, 34px);
    display: grid;
    gap: 24px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.field span {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2b3550;
}

.field-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.field-label small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.field span em {
    color: var(--danger);
    font-style: normal;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(18, 24, 38, 0.16);
    border-radius: var(--radius-md);
    padding: 12px 13px;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(31, 78, 216, 0.62);
    box-shadow: 0 0 0 4px rgba(31, 78, 216, 0.14);
}

.field-help {
    font-size: 0.86rem;
    color: var(--muted);
}

.menu-section {
    gap: 12px;
}

.menu-section-copy {
    display: grid;
    gap: 6px;
}

.menu-textarea {
    min-height: 160px;
}

.file-summary {
    margin-top: 4px;
    font-size: 0.88rem;
    color: #334061;
}

.preview-list {
    list-style: none;
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.preview-list li {
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    background: #f9fbff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.preview-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.preview-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #223050;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.preview-size {
    font-size: 0.82rem;
    color: var(--muted);
}

.preview-remove {
    border: 1px solid rgba(192, 29, 63, 0.35);
    color: var(--danger);
    background: rgba(192, 29, 63, 0.08);
    border-radius: 999px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.preview-remove:hover {
    background: rgba(192, 29, 63, 0.14);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

#submit-btn {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 22px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

#submit-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.submit-status {
    font-size: 0.9rem;
    color: var(--muted);
}

.submit-status.is-error {
    color: var(--danger);
}

.submit-status.is-success {
    color: var(--success);
}

.honeypot {
    display: none;
}

@media (max-width: 780px) {
    .form-shell {
        width: min(100% - 20px, 960px);
        padding-top: 20px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }
}
