:root {
    --primary: #FF8BA7; /* Soft pink */
    --primary-dark: #FF5C8A;
    --secondary: #FFC2BB; /* Peach */
    --accent-1: #A7C5EB; /* Gentle blue */
    --accent-2: #B5E5CF; /* Soft green */
    --accent-3: #FDF6F0; /* Cream */
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    
    --bg-gradient: linear-gradient(135deg, #FFC2BB 0%, #A7C5EB 50%, #B5E5CF 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(255, 139, 167, 0.4);
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #f7f9fc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Dynamic Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #fdfbfb;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--secondary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-1);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background-color: var(--accent-2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Container & Glass Card */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

/* Progress Bar */
.progress-container {
    height: 6px;
    background: #eaeaea;
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
    display: none; /* Hidden on intro */
}

.progress-bar {
    height: 100%;
    background: var(--bg-gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 3px;
}

/* Steps */
.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.step.active {
    display: block;
    animation: slideUpFadeIn 0.5s ease forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

p.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

p.step-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.icon-header {
    text-align: center;
    font-size: 4rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Form Elements */
.input-group {
    margin-bottom: 25px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-group.half {
    flex: 1;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: var(--radius-md);
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 139, 167, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.custom-checkbox:hover {
    border-color: var(--accent-1);
    background: #f8fbff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox:has(input:checked) {
    border-color: var(--primary);
    background-color: #fff5f7;
}

/* Toggle Radio (Yes/No) */
.toggle-group {
    display: flex;
    flex-direction: column;
}

.radio-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-toggle label {
    padding: 10px 24px;
    margin-bottom: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.radio-toggle input[type="radio"]:checked + label {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* File Upload */
.file-upload {
    width: 100%;
    margin-top: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary);
    background: #fff5f7;
    color: var(--primary-dark);
}

.file-label i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-1);
}

.file-label span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
}

.file-label small {
    margin-top: 5px;
    color: var(--text-light);
}

.file-upload.small .file-label {
    padding: 20px;
}

.file-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Social Inputs */
.social-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-input {
    display: flex;
    align-items: center;
    position: relative;
}

.social-input i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-input input {
    padding-left: 45px;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #edf2f7;
    padding-top: 30px;
}

#step-intro .btn-group {
    justify-content: center;
    border-top: none;
}

#step-outro .btn-group {
    display: none;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary, .btn-submit {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 139, 167, 0.3);
}

.btn-primary:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 139, 167, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

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

/* Initial start button */
#step-intro .btn-next {
    margin: 0 auto;
    font-size: 1.2rem;
    padding: 16px 40px;
}

/* Success Animation */
.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
}

.checkmark-circle-inner {
    stroke: var(--accent-2);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--accent-2);
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .glass-card {
        padding: 30px;
        margin: 20px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    
    .btn-group {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}
