* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "system-ui", sans-serif;
}

body1 {
    color: #333;
    display: flex;
    flex-direction: column;
    background-image: url('../image/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.header-section {
    height: 432px;
}

.hero-section {
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.footer-section {
    height: 350px;
}

.alert-success{
    width: 80%;
    text-align: center;
    background-color: #fff;
    padding: 12px 25px;
    margin: 10px auto;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;

}

/* --- قسم النموذج --- */
.form-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin-left: 144px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInRight 1s ease-out;
	float:left;
    margin-top: 100px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #6b46c1, #7dd3fc);
    margin-bottom: 15px;
    border-radius: 1px;
}

label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 8px 16px;
    font-size: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #6b46c1;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background-color: #e2e8f0;
}

.checkbox-group input[type="radio"] {
    margin-left: 12px;
    accent-color: #6b46c1;
    transform: scale(1.3);
    cursor: pointer;
}

button, .btn-link {
    margin-top: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #553c9a, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

button:active {
    transform: translateY(0);
}

/* تجاوب الموبايل */
@media (max-width : 788px) {

    .hero-section {
        flex: 1;
    }

    body {
        background-attachment: fixed;
    }

    .form-section {
        padding: 20px;
        margin: auto;
         margin-top: 177px;
        margin-bottom: 66px;
    }



}