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


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



h1 {
    font-family: 'Tajawal', sans-serif;
 
}

input, select, textarea {
    font-family: 'Tajawal', sans-serif;
    
}

button {
    font-family: 'Tajawal', sans-serif;
   
}

:root {
    --primary-purple: #6a1b9a;
    --secondary-purple: #9c27b0;
    --light-purple: #e1bee7;
    --dark-purple: #4a148c;
    --gradient: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
}

body {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--light-purple) 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.8s ease-in;
}

.form-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(120deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.1) 100%),
        radial-gradient(
            circle at 100% 100%,
            rgba(106, 27, 154, 0.1) 0%,
            transparent 50%
        );
    opacity: 0.7;
    z-index: -1;
}

.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(156, 39, 176, 0.05) 0px,
            rgba(156, 39, 176, 0.05) 2px,
            transparent 2px,
            transparent 10px
        );
    z-index: -2;
    animation: patternMove 20s linear infinite;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(106, 27, 154, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.6s ease-out;
}

.logo-container img {
    max-width: 300px;
    height: auto;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

h1 {
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2.2em;
    animation: slideDown 0.6s ease-out;
}

.form-group {
    text-align: right;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    animation: slideUp 0.6s ease-out;
}

input, select, textarea {
    text-align: right;
    background: #f3d5ff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.15);
    transform: translateY(-2px);
}

button {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.3);
}

button:active {
    transform: translateY(0);
}

.radio-group {
    display: flex;
    flex-direction: row;
    justify-content: right;
    gap: 20px;
    align-items: right;
   
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.radio-label {
    align-items: right;
    display: flex;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 35px;
    
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"] {
    position: absolute;
    align-items: right;
    display: flex;
    align-items: center;    
    opacity: 0;
}

.radio-label::before {
    content: '';
    position: absolute;
    right: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.radio-label::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 4px;  /* Added top position */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    transform: scale(0);
    transition: all 0.3s ease;
}

.radio-label:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.2);
}

.radio-label input[type="radio"]:checked + .radio-label::before {
    border-color: var(--secondary-purple);
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.2);
}

.radio-label input[type="radio"]:checked + .radio-label::after {
    transform: scale(1);
    background: var(--gradient);
}

.radio-label:has(input[type="radio"]:checked)::after {
    transform: scale(1);
}

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

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.error-container, .success-message {
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideIn 0.4s ease-out;
    
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .form-container {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}
