/* =========================================================
   Pudica.net/wishlist — 신발 요청 페이지
   Theme: Sky Blue / Light Mode  (track 페이지와 동일 테마)
   ========================================================= */

:root {
    --sky-50:  #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;

    --ink:      #0f2438;
    --ink-soft: #475c70;
    --white:    #ffffff;
    --border:   rgba(14, 165, 233, 0.18);
    --shadow:   0 12px 36px -16px rgba(2, 132, 199, 0.4);
    --danger:   #ef4444;
    --success:  #16a34a;

    --font-display: "Outfit", "Noto Sans KR", sans-serif;
    --font-body:    "Noto Sans KR", "Outfit", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: linear-gradient(160deg, var(--sky-100) 0%, var(--sky-50) 50%, #fff 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background orbs */
.sky-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.sky-orb-1 {
    width: 400px; height: 400px;
    top: -110px; right: -100px;
    background: radial-gradient(circle, var(--sky-300), transparent 70%);
}
.sky-orb-2 {
    width: 340px; height: 340px;
    bottom: -120px; left: -110px;
    background: radial-gradient(circle, var(--sky-200), transparent 70%);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px 48px;
}

/* ===================== Back nav ===================== */
.back-nav { margin-bottom: 20px; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sky-700);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 14px -8px rgba(2,132,199,0.4);
    transition: background 0.2s, transform 0.2s;
}
.btn-back:hover { background: var(--sky-50); transform: translateX(-2px); }
.btn-back svg { width: 17px; height: 17px; }

/* ===================== Header ===================== */
header { text-align: center; margin-bottom: 26px; }

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    color: var(--sky-800);
}
.logo-dot { color: var(--sky-400); font-weight: 600; }
.service-badge {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
    padding: 4px 10px;
    border-radius: 7px;
}

header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    color: var(--sky-900);
    margin-bottom: 8px;
}
.tagline {
    font-size: 0.91rem;
    color: var(--ink-soft);
    max-width: 420px;
    margin: 0 auto;
}

/* ===================== Card ===================== */
.search-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

/* ===================== Form fields ===================== */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--sky-800);
    margin-bottom: 8px;
}
.field label .req { color: var(--danger); font-weight: 700; }
.field label .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.78rem; }

.field input[type="text"],
.field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    background: var(--sky-50);
    padding: 13px 15px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 70px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #a0b4c4; font-weight: 300; }
.field input:focus,
.field textarea:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
    background: #fff;
}
.field.invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }

.field-hint {
    display: block;
    font-size: 0.76rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

/* 두 칸 나란히 (사이즈 · 색상) */
.field-row {
    display: flex;
    gap: 14px;
}
.field-row .field { flex: 1; min-width: 0; }

.error-msg {
    display: none;
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 6px;
}
.field.invalid .error-msg { display: block; }

/* ===================== 신발 블록 (여러 개 요청) ===================== */
.shoe-list { display: flex; flex-direction: column; gap: 14px; }

.shoe-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--sky-50);
    padding: 16px 16px 2px;
    animation: fadeUp 0.25s ease;
}
.shoe-item .field:last-child,
.shoe-item .field-row:last-child { margin-bottom: 16px; }
.shoe-item .field input { background: #fff; }

.shoe-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.shoe-item-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sky-700);
}
.btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: #fff;
    color: var(--danger);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-remove:hover { background: #fef2f2; transform: translateY(-1px); }
.btn-remove[hidden] { display: none; }
.btn-remove svg { width: 14px; height: 14px; }

/* 신발 추가 버튼 */
.btn-add-shoe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 14px;
    border: 1.5px dashed var(--sky-300);
    background: #fff;
    color: var(--sky-700);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-add-shoe:hover { background: var(--sky-50); border-color: var(--sky-400); transform: translateY(-1px); }
.btn-add-shoe svg { width: 18px; height: 18px; }

/* 구분선 */
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0 20px;
}

/* 허니팟 — 화면 밖으로 숨김 (봇만 채움) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================== Captcha ===================== */
.captcha-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 13px;
    padding: 15px 16px;
    margin-bottom: 18px;
}
.captcha-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    color: #c2410c;
    margin-bottom: 6px;
}
.captcha-head svg { width: 17px; height: 17px; }
.captcha-desc { font-size: 0.8rem; color: #9a3412; margin-bottom: 12px; line-height: 1.5; }
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-question {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sky-900);
    letter-spacing: 0.04em;
    white-space: nowrap;
    user-select: none;
}
#captcha-answer {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #fed7aa;
    border-radius: 11px;
    background: #fff;
    padding: 11px 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#captcha-answer:focus { border-color: #fb923c; box-shadow: 0 0 0 4px rgba(251,146,60,0.16); }
.captcha-box .error-msg { margin-top: 8px; }
.captcha-box.invalid .error-msg { display: block; }
.captcha-box.invalid #captcha-answer { border-color: var(--danger); }

/* ===================== Submit button ===================== */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: var(--white);
    border: none;
    border-radius: 13px;
    padding: 15px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 12px 26px -12px rgba(2, 132, 199, 0.8);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(2,132,199,0.9); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 19px; height: 19px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.75s linear infinite; }

/* ===================== Notice ===================== */
.demo-notice {
    margin-top: 20px;
    background: var(--sky-50);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 14px 16px;
}
.notice-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--sky-700);
    margin-bottom: 6px;
}
.notice-header svg { width: 17px; height: 17px; }
.demo-notice p {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ===================== Success ===================== */
.success-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 38px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeUp 0.35s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.success-icon { font-size: 3rem; margin-bottom: 14px; }
.success-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sky-900);
    margin-bottom: 9px;
}
.success-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 22px;
}
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.btn-ghost,
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-ghost {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    border: none;
    box-shadow: 0 10px 22px -12px rgba(2,132,199,0.8);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-back-home {
    color: var(--sky-700);
    background: var(--sky-50);
    border: 1px solid var(--border);
}
.btn-back-home:hover { background: var(--sky-100); transform: translateY(-1px); }

/* ===================== Footer ===================== */
footer {
    text-align: center;
    margin-top: 36px;
    font-size: 0.76rem;
    color: var(--ink-soft);
    opacity: 0.8;
}

/* ===================== Responsive ===================== */
@media (max-width: 480px) {
    .container { padding: 22px 15px 36px; }
    .search-card { padding: 22px 16px; }
    .field-row { flex-direction: column; gap: 0; }
    .field-row .field { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
