@import url('https://fonts.googleapis.com/css2?family=Pretendard+Variable:wght@100..900&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #10b981;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.5);
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Pretendard Variable', 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.container {
    max-width: 680px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4f46e5, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
    border: 1px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.question-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
}

.question-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 3px;
    margin-right: 12px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-item:hover {
    border-color: var(--primary-light);
    background: #f8fafc;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.option-item input[type="checkbox"] {
    border-radius: 6px;
}

.option-item input[type="radio"]:checked,
.option-item input[type="checkbox"]:checked {
    border-color: var(--primary);
    background: var(--primary);
}

.option-item input[type="radio"]:checked::after,
.option-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
}

.option-item input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.option-item input[type="checkbox"]:checked::after {
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    border-radius: 0;
    background: none;
}

.option-item.selected {
    border-color: var(--primary);
    background: #f5f3ff;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.text-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.text-input {
    min-height: 120px;
    resize: none;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 50px;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(0);
}

.footer-info {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
}

.footer-info p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mobile optimization */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 24px 20px;
    }

    .question-title {
        font-size: 1.1rem;
    }
}