* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff0000, #cc0000, #990000);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* صفحه اسپلش */
#splash-screen {
    background: linear-gradient(135deg, #ff0000, #cc0000, #800000);
}

.logo-container {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.logo-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.logo-shape {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    animation: logoPulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.logo-shape::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid white;
    border-radius: 50%;
    animation: logoRotate 3s linear infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 80px rgba(255, 255, 255, 0.5),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

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

.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.6); }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

/* صفحه فرم */
.form-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8)); }
}

.employment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.input-group label {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    right: 10px;
    font-size: 0.8rem;
    color: #ff6b6b;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 5px;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.input-group input:focus ~ .focus-border {
    width: 100%;
}

.date-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.date-inputs {
    display: flex;
    gap: 10px;
}

.date-inputs select {
    flex: 1;
}

.submit-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
}

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

.btn-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.submit-btn:hover .btn-animation {
    width: 300px;
    height: 300px;
}

/* صفحه تایید */
.confirmation-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: confirmationAppear 1s ease-out;
}

@keyframes confirmationAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.success-animation {
    margin-bottom: 30px;
}

.checkmark {
    font-size: 4rem;
    color: #4CAF50;
    animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.confirmation-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4CAF50;
}

.confirmation-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .logo-animation {
        width: 150px;
        height: 150px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .confirmation-container {
        padding: 30px 20px;
        margin: 20px;
    }
}