:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-input: #121212;
    --bg-input-hover: #181818;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #00f5a0;
    --accent-hover: #00db90;
    --accent-soft: rgba(0, 245, 160, 0.12);
    --accent-glow: rgba(0, 245, 160, 0.35);
    --danger: #ff6b6b;
    --success: #00f5a0;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    --max-width: 1120px;
    --page-gutter: 32px;
    --page-gutter-mobile: 40px;
    --sheet-radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 245, 160, 0.08), transparent),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    width: min(100% - var(--page-gutter), var(--max-width));
    margin: 0 auto;
    padding: 40px 0 calc(72px + env(safe-area-inset-bottom));
}

.hero {
    margin-bottom: 36px;
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hero__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

.hero__eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.hero__break {
    display: none;
}

.hero__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(0.92rem, 2.5vw, 1.02rem);
    font-weight: 400;
    line-height: 1.65;
}

.form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
}

.form__main,
.form__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.form__aside {
    position: sticky;
    top: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.field--photo {
    margin-top: 12px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.field__optional {
    color: var(--text-dim);
    font-weight: 500;
}

.field__required {
    color: var(--accent);
    font-weight: 700;
}

.field.is-invalid .field__label {
    color: var(--danger);
}

.field.is-invalid .chips,
.field.is-invalid .picker,
.field.is-invalid .input {
    border-color: rgba(255, 107, 107, 0.5);
}

.field__help {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.5;
}

.input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder {
    color: #475569;
}

.input:focus {
    outline: none;
    border-color: rgba(0, 245, 160, 0.5);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg-input-hover);
}

.input.is-invalid,
.picker.is-invalid {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.input--native-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.input--textarea {
    min-height: 150px;
    resize: vertical;
}

.picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.picker:hover {
    border-color: rgba(0, 245, 160, 0.3);
    background: var(--bg-input-hover);
}

.picker__value.is-placeholder {
    color: #475569;
}

.picker__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-dim);
}

.chips {
    display: flex;
    gap: 8px;
}

.chips--types {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    mask-image: linear-gradient(to right, #000 92%, transparent);
}

.chips--types::-webkit-scrollbar {
    display: none;
}

.chips--types .chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 9px 13px;
}

.chips--compact {
    flex-wrap: wrap;
}

.chips--compact .chip {
    flex: 1;
    min-width: 0;
}

.chip {
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.chip:hover {
    border-color: rgba(0, 245, 160, 0.4);
    color: var(--text);
}

.chip.is-active {
    border-color: var(--accent);
    background: rgba(0, 245, 160, 0.1);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-soft), inset 0 0 0 1px rgba(0, 245, 160, 0.25);
    text-shadow: 0 0 12px var(--accent-glow);
}

.dropzone {
    position: relative;
    min-height: 200px;
    padding: 16px;
    border: 1.5px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: var(--bg-input);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
    outline: none;
    border-color: rgba(0, 245, 160, 0.45);
    box-shadow: 0 0 24px var(--accent-soft);
}

.dropzone.is-dragover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.dropzone__empty,
.dropzone__preview {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.dropzone__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-soft);
}

.dropzone__icon svg {
    width: 26px;
    height: 26px;
}

.dropzone__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.dropzone__hint {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.dropzone__btn {
    margin-top: 4px;
    padding: 9px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.dropzone__preview {
    width: 100%;
}

.dropzone__preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
}

.dropzone__preview-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.dropzone__preview-name {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropzone__remove {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.check__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.check__box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border-strong);
    border-radius: 7px;
    background: var(--bg-input);
    transition: all 0.18s ease;
}

.check__icon {
    width: 14px;
    height: 14px;
    color: #000;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.18s ease;
}

.check__input:checked + .check__box {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.check__input:checked + .check__box .check__icon {
    opacity: 1;
    transform: scale(1);
}

.check__input:focus-visible + .check__box {
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.check__label {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.check.is-invalid .check__box {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.check.is-invalid .check__label {
    color: var(--danger);
}

.submit-btn {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0, 245, 160, 0.35);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.18), rgba(0, 245, 160, 0.06));
    color: var(--accent);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 0 32px var(--accent-soft);
    text-shadow: 0 0 12px var(--accent-glow);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form__footnote {
    margin: 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - var(--page-gutter-mobile)), 420px);
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    z-index: 1100;
}

.toast.is-success {
    border-color: rgba(0, 245, 160, 0.4);
}

.toast.is-error {
    border-color: rgba(255, 107, 107, 0.4);
}

.alert-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.alert-modal:not(.is-hidden) {
    pointer-events: auto;
}

.alert-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.alert-modal.is-open .alert-modal__backdrop {
    opacity: 1;
}

.alert-modal__dialog {
    position: relative;
    width: min(100%, 360px);
    padding: 24px 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 245, 160, 0.2);
    background: #141414;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.alert-modal.is-open .alert-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.alert-modal__dialog.is-error {
    border-color: rgba(255, 107, 107, 0.35);
}

.alert-modal__dialog.is-success {
    border-color: rgba(0, 245, 160, 0.35);
}

.alert-modal__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.alert-modal__message {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-line;
}

.alert-modal__btn {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(0, 245, 160, 0.35);
    border-radius: 12px;
    background: rgba(0, 245, 160, 0.1);
    color: var(--accent);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.alert-modal__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.sheet-root {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.sheet-root:not(.is-hidden) {
    pointer-events: auto;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sheet-root.is-open .sheet-backdrop {
    opacity: 1;
}

.sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(70vh, 420px);
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    background: #141414;
    border-top: 1px solid rgba(0, 245, 160, 0.15);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.sheet-root.is-open .sheet {
    transform: translateY(0);
}

.sheet__handle {
    width: 36px;
    height: 4px;
    margin: 6px auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.sheet__title {
    flex-shrink: 0;
    margin: 0 0 12px;
    padding: 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.sheet__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sheet__scroll::-webkit-scrollbar {
    width: 6px;
}

.sheet__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sheet__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sheet__option:hover,
.sheet__option:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.sheet__option.is-selected {
    color: var(--accent);
    background: var(--accent-soft);
}

.sheet__option-check {
    width: 20px;
    height: 20px;
    color: var(--accent);
    opacity: 0;
}

.sheet__option.is-selected .sheet__option-check {
    opacity: 1;
}

.sheet__cancel {
    flex-shrink: 0;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

@media (min-width: 800px) {
    .sheet-root {
        justify-content: center;
        align-items: center;
        padding: 24px;
    }

    .sheet {
        max-width: 400px;
        border-radius: var(--sheet-radius);
        border: 1px solid rgba(0, 245, 160, 0.15);
        transform: translateY(16px) scale(0.96);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .sheet-root.is-open .sheet {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .sheet__handle {
        display: none;
    }
}

@media (max-width: 960px) {
    .page {
        width: min(100% - var(--page-gutter-mobile), var(--max-width));
        padding-top: 28px;
    }

    .form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form__aside {
        position: static;
        margin-top: 8px;
        padding: 20px 18px 22px;
        border-radius: var(--radius);
    }

    .field--photo {
        margin-top: 28px;
        padding-top: 8px;
    }

    .hero__break {
        display: inline;
    }
}

@media (max-width: 640px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .chips--types .chip {
        font-size: 0.78rem;
        padding: 8px 11px;
    }

    .chips--compact {
        flex-wrap: nowrap;
    }

    .chips--compact .chip {
        flex: 1;
    }

    .dropzone {
        min-height: 180px;
    }

    .hero__title {
        font-size: 1.55rem;
    }
}

@media (max-width: 380px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}
