:root {
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #ec4899; /* Pink */
    --accent: #8b5cf6; /* Violet */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

/* Background Animations */
.background-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

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

.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation-delay: -5s;
}

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

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Container */
.app-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

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

.header p span {
    color: var(--accent);
    font-weight: 600;
}

/* Progress */
.progress-container {
    padding: 0 10px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 20%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s ease;
    border-radius: 10px;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Glass Panel Form */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

/* Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.icon-header {
    color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group label small {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

input[type="text"],
select,
textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.radio-group.mini {
    grid-template-columns: repeat(3, 1fr);
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.card-content {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-content i {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.card-content span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.radio-card input:checked + .card-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.radio-card input:checked + .card-content i,
.radio-card input:checked + .card-content span {
    color: var(--primary);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.file-upload-wrapper i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload-wrapper p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.file-upload-wrapper p span {
    color: var(--primary);
    text-decoration: underline;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 10px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-finish {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    display: block;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 400px;
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
}

.modal h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Repeatable Inputs */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: stretch;
}
.input-row input {
    flex: 1;
    margin-bottom: 0 !important;
}
.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.btn-remove-row:hover {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 25px 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-group.mini {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
