@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #fcfbf9;
    --text-color: #2d2d2d;
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #ecfdf5;
    --border-color: #e5e7eb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition-speed: 0.4s;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background elements for depth */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -100px; left: -100px; }

.form-container {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.card.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: #eef2ff;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 10%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-align: right;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #111827;
}

p.description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #374151;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.2s ease;
}

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

/* Choice Buttons (Multiple Choice) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: #f5f3ff;
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #f5f3ff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.1rem;
}

.option-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

/* List Items (Ground Rules) */
.rules-list {
    list-style: none;
    margin-bottom: 2rem;
}

.rule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.rule-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.rule-text strong {
    display: block;
    color: #111827;
}

/* Nav Buttons */
.nav-buttons {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}

button {
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

button.primary {
    background: var(--primary-color);
    color: white;
    flex: 1;
}

button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

button.secondary {
    background: #f3f4f6;
    color: #4b5563;
}

button.secondary:hover {
    background: #e5e7eb;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Success State */
.success-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

/* Footer info */
.footer-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .form-container {
        padding: 1rem;
    }
    .card {
        padding: 2rem;
    }
    h1 {
        font-size: 1.75rem;
    }
}
