: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 */
}

.step-counter {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

.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;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 6px solid #fff;
    animation: vivid-float 4s ease-in-out infinite;
    transform-origin: center;
    display: block;
    margin: 0 auto;
}

@keyframes vivid-float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    }
    25% {
        transform: translateY(-15px) scale(1.03) rotate(1deg);
        box-shadow: 0 25px 65px rgba(255, 139, 167, 0.15);
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(0deg);
        box-shadow: 0 35px 80px rgba(255, 139, 167, 0.25);
    }
    75% {
        transform: translateY(-10px) scale(1.02) rotate(-1deg);
        box-shadow: 0 20px 60px rgba(255, 139, 167, 0.15);
    }
}

/* 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"],
input[type="url"],
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: flex;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

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

.radio-toggle label {
    flex: 1;
    display: block;
    padding: 14px 24px;
    margin-bottom: 0;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    background: white;
    text-align: center;
}

.radio-toggle input:checked + label {
    border-color: var(--primary);
    background-color: #fff5f7;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 139, 167, 0.15);
}

.type-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    gap: 15px;
    font-weight: 600;
}

.type-card .card-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    transition: var(--transition);
}

.type-card.checked {
    border-color: var(--primary);
    background-color: #fff5f7;
    color: var(--primary-dark);
}

.type-card.checked .card-icon {
    color: var(--primary);
    transform: scale(1.1);
}

/* 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;
    }
}

/* Outro Step — Centered */
.outro-step {
    text-align: center;
}

.outro-step h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.outro-step .subtitle {
    text-align: center;
}

/* Step Label Pill */
.step-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: #fff0f4;
    border: 1px solid #ffc2d1;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 30px;
}

/* Conditional Upload Reveal */
.conditional-upload {
    animation: slideUpFadeIn 0.35s ease forwards;
    margin-top: 15px;
}

/* Select dropdown styling */
select {
    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);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

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

/* Transition Step */
.transition-step {
    text-align: center;
    padding: 60px 20px;
}

.transition-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 25px 0 10px;
}

.transition-content p {
    color: var(--text-muted);
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Radio Stack (Step 7) */
.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

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

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

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.custom-radio input:checked ~ .radio-mark {
    border-color: var(--primary);
    background-color: white;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

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



/* 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;
    }
}
