/* ==========================================================================
   VADI CS요청 - 독립형 다크 테마 (miraeboim.com/cs 기준 이식)
   ========================================================================== */
:root {
    --bg: #060b14;
    --text: #eef4ff;
    --muted: #93a3bd;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --panel: rgba(255, 255, 255, 0.03);
    --panel-strong: rgba(255, 255, 255, 0.05);
    --cyan: #4fb8ff;
    --amber: #ffb648;
    --brand: #2388ed;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 500px at 85% -10%, rgba(35, 136, 237, 0.18), transparent 60%),
        radial-gradient(700px 400px at 0% 0%, rgba(79, 184, 255, 0.10), transparent 55%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eyebrow {
    margin: 0;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* --- 상단 네비게이션 --- */
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: min(1214px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

.nav-cta {
    border: 1px solid var(--line-strong);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    transition: 0.2s;
}

.nav-cta:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* --- 버튼 --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    padding: 13px 26px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: 0.2s;
}

.button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.button.primary:hover {
    border-color: var(--cyan);
    background: var(--cyan);
    color: #04121f;
}

.button.secondary {
    background: var(--panel-strong);
}

/* ==========================================================================
   CS 폼 (miraeboim.com/cs 이식)
   ========================================================================== */
.cs-shell {
    min-height: 100vh;
    padding-bottom: 80px;
}

.cs-wrap {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 90px;
}

.cs-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
}

.cs-intro h1,
.cs-success h1 {
    max-width: none;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1;
}

.cs-intro p:not(.eyebrow),
.cs-success > p:not(.eyebrow) {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.cs-status {
    display: grid;
    border-left: 1px solid var(--line-strong);
    padding-left: 20px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 2;
}

.cs-intro-side {
    display: grid;
    gap: 18px;
    justify-items: end;
}

.cs-intro-side .cs-status {
    width: 100%;
}

.cs-alert {
    border: 1px solid rgba(240, 93, 94, 0.65);
    background: rgba(240, 93, 94, 0.1);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.cs-alert ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.cs-form {
    display: grid;
    gap: 18px;
}

.cs-form fieldset {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    padding: 24px;
}

.cs-form legend {
    padding: 0 12px 0 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.cs-form legend span {
    color: var(--cyan);
    margin-right: 8px;
}

.cs-grid {
    display: grid;
    gap: 18px;
}

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

.cs-request-description {
    margin-top: 18px;
}

.cs-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cs-form em {
    color: var(--amber);
    font-size: 11px;
    font-style: normal;
}

.cs-form small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.cs-form input,
.cs-form select,
.cs-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
    font-weight: 400;
}

.cs-date-picker {
    position: relative;
    display: block;
}

.cs-date-picker:focus-within .cs-date-native {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(79, 184, 255, 0.12);
}

.cs-date-native {
    cursor: pointer;
    color-scheme: dark;
}

.cs-date-native::-webkit-datetime-edit {
    opacity: 0;
}

.cs-date-picker.has-value .cs-date-native::-webkit-datetime-edit {
    opacity: 1;
}

.cs-date-placeholder {
    position: absolute;
    left: 14px;
    top: 50%;
    pointer-events: none;
    color: var(--muted);
    font-weight: 400;
    opacity: 0.72;
    transform: translateY(-50%);
}

.cs-date-picker.has-value .cs-date-placeholder {
    display: none;
}

.cs-form select option {
    color: #08182f;
    background: #ffffff;
}

.cs-form input:focus,
.cs-form select:focus,
.cs-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(79, 184, 255, 0.12);
}

.cs-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.cs-form input::placeholder,
.cs-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.72;
}

.consent-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 18px 20px;
    line-height: 1.6;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--cyan);
}

.cs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cs-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cs-success-wrap {
    min-height: calc(100vh - 100px);
    display: grid;
    place-items: center;
}

.cs-success {
    width: min(720px, 100%);
    border: 1px solid var(--line);
    background: var(--panel-strong);
    padding: clamp(28px, 6vw, 64px);
}

.cs-success-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    color: var(--cyan);
    font-size: 28px;
    margin-bottom: 26px;
}

.cs-ticket {
    display: grid;
    gap: 8px;
    margin: 30px 0;
    border-left: 2px solid var(--cyan);
    padding: 14px 18px;
    background: rgba(79, 184, 255, 0.08);
}

.cs-ticket span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.cs-ticket strong {
    font-size: 22px;
    letter-spacing: 0;
}

@media (max-width: 760px) {
    .cs-wrap {
        width: min(100% - 28px, 1040px);
        padding-top: 34px;
    }

    .cs-intro,
    .cs-grid.two-columns,
    .cs-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .cs-intro {
        gap: 22px;
    }

    .cs-intro-side {
        justify-items: stretch;
    }

    .cs-intro h1,
    .cs-success h1 {
        font-size: 42px;
    }

    .cs-form fieldset {
        padding: 18px;
    }

    .cs-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cs-form-actions .button {
        width: 100%;
        justify-content: center;
    }
}
