/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    overflow-x: hidden;
}

.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-container {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-top: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: #666;
    margin-bottom: 0.5rem;
}

.registration-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.input-group, .select-group, .textarea-group {
    position: relative;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
}

textarea ~ label {
    top: 1rem;
    transform: none;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label,
select:focus ~ label,
select:not(:placeholder-shown) ~ label,
textarea:focus ~ label,
textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    right: 1rem;
    font-size: 0.875rem;
    background: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-left: 0.5rem;
}

.submit-btn {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.hidden {
    display: none;
}

/* Course Content Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.course-content {
    margin-top: 1rem;
}

.course-section {
    margin-bottom: 2rem;
}

.course-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-list {
    list-style: none;
    padding-right: 1.5rem;
}

.course-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.course-list li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    right: -1.5rem;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.countdown {
    font-size: 2rem;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-form {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
}




/* تنسيق كل عنصر اختيار */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* تنسيق مربعات الاختيار */
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff; /* لون مميز عند التحديد */
    cursor: pointer;
}

/* تنسيق النص */
.checkbox-group label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

/* تأثير عند تمرير الماوس */
.checkbox-group label:hover {
    color: #007bff;
    font-weight: bold;
}
h2 {
    COLOR: #004662;
    TEXT-ALIGN: CENTER;
}

span.btn-text {
    color: #fff;
    text-decoration: none;
}






.form-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #2d3748;
}

.select-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    pointer-events: none;
}

.course-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    color: #4a5568;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.course-select:focus {
    outline: none;
    border-color: #4299e1;
}

.course-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.course-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.course-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.course-section h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.course-section h3 {
    color: #4a5568;
    margin: 1rem 0;
    font-size: 1.25rem;
}

.course-section h4 {
    color: #718096;
    margin: 0.5rem 0;
}

.course-list {
    list-style-position: inside;
    padding-right: 1rem;
}

.course-list li {
    margin: 0.5rem 0;
    color: #4a5568;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E;
}

.course-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.course-description p {
    line-height: 1.6;
    color: #4a5568;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }
}
