:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: white;
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow);
    transform: rotate(0deg);
    transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.logo:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
}

h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.application-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.application-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.form-row .form-group {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.alert {
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid transparent;
}

.alert-success {
    border-left-color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.alert-danger {
    border-left-color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
}

.alert-warning {
    border-left-color: var(--warning);
    background: rgba(251, 191, 36, 0.1);
}

.alert i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.75rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.active {
    display: block;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.required-field::after {
    content: " *";
    color: var(--danger);
}

/* Floating label animation */
.form-group.focused label {
    transform: translateY(-120%) scale(0.9);
    color: var(--accent);
}

/* Custom checkbox */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    position: relative;
    top: 3px;
    transition: all 0.2s ease;
}

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

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
}

input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    position: relative;
    top: 3px;
    transition: all 0.2s ease;
}

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

input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .application-container {
        padding: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
    }
}

/* Confirmation animation */
.confirmation-icon {
    animation: float 3s ease-in-out infinite, fadeIn 1s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}