/* ==========================================
   Educational Road - English Level Test
   Website Styles
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8F66;
    --secondary-color: #2C3E50;
    --accent-color: #27AE60;
    --background-start: #FFF5F0;
    --background-end: #FFE4D6;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #6B7C93;
    --text-light: #95A5B8;
    --border-color: #E8EDF2;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

.circle-3 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: 20%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
}

.circle-4 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 5%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
}

.title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-family: var(--font-arabic);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text span {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    margin: 40px 0;
}

.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4px;
}

.form-subtitle {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--error-color);
}

.optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #FAFBFC;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    background: white;
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7C93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-hint {
    display: block;
    font-family: var(--font-arabic);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    text-align: right;
}

/* Checkbox Styles */
.checkbox-group {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFF5F0 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-text {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.checkbox-hint {
    display: block;
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.ielts-promo {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.promo-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    margin-top: 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}

.form-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Why Us Section */
.why-us {
    margin: 60px 0;
    text-align: center;
}

.why-us h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.why-card {
    background: var(--card-bg);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-location {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Error States */
.form-group.error input,
.form-group.error select {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Success Message */
.success-message {
    background: #D4EDDA;
    color: #155724;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================
   Test Page Styles
   ========================================== */

.test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.test-header {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.question-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.question-counter span {
    color: var(--primary-color);
}

.timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-bar-container {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.question-level-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--background-start);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.question-arabic {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    direction: rtl;
    text-align: right;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #FAFBFC;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: var(--background-start);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DD 100%);
}

.answer-option input {
    display: none;
}

.option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 50%;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.answer-option.selected .option-letter {
    background: var(--primary-color);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Navigation Buttons */
.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.btn-secondary {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next,
.btn-submit {
    flex: 1;
    max-width: 200px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-color) 0%, #219653 100%);
}

.btn-submit:hover {
    box-shadow: 0 6px 24px rgba(39, 174, 96, 0.4);
}

/* ==========================================
   Result Page Styles
   ========================================== */

.result-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: center;
}

.result-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.result-header::before,
.result-header::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.result-header::before {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -30px;
}

.result-header::after {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -20px;
}

.result-congrats {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-name {
    font-size: 1.2rem;
    opacity: 0.9;
}

.level-display {
    margin-top: 30px;
}

.level-badge {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: var(--radius-xl);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.level-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 12px;
    opacity: 0.95;
}

.result-body {
    padding: 40px 30px;
}

.score-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.score-item {
    text-align: center;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Discount Section */
.discount-section {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFEFE6 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    border: 2px dashed var(--primary-color);
}

.discount-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.discount-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.discount-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.coupon-code {
    display: inline-block;
    background: var(--card-bg);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    letter-spacing: 2px;
}

.coupon-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* IELTS Promo */
.ielts-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    border: 2px solid var(--accent-color);
}

.ielts-section h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.ielts-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ielts-discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* CTA Section */
.cta-section {
    margin-top: 30px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

/* ==========================================
   Responsive Styles
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        padding: 30px 16px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .question-card {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .test-header {
        flex-direction: column;
        text-align: center;
    }

    .progress-bar-container {
        width: 100%;
    }

    .test-navigation {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        max-width: none;
    }

    .result-header {
        padding: 30px 20px;
    }

    .level-badge {
        font-size: 2.5rem;
        padding: 16px 32px;
    }

    .score-details {
        gap: 24px;
    }

    .discount-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Skip Test & Modal Styles
   ========================================== */

/* Skip Section in Form */
.skip-section {
    margin-top: 30px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.skip-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.skip-hint {
    font-family: var(--font-arabic);
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
}

.btn-skip {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
    background: transparent;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    background: var(--background-start);
    border-style: solid;
}

/* Skip Bar on Test Page */
.skip-test-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.skip-test-bar p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.btn-skip-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
    background: var(--background-start);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip-small:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background-start);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

/* Quick Contact Options */
.quick-contact-options {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.quick-contact-options p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.contact-btn.phone {
    background: var(--secondary-color);
    color: white;
}

.contact-btn.phone:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* Skip Options in Test Modal */
.skip-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skip-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--background-start);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.skip-option-btn:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
    transform: translateX(4px);
}

.skip-option-btn.ielts-btn {
    border-color: var(--accent-color);
    background: #E8F5E9;
}

.skip-option-btn.ielts-btn:hover {
    background: #C8E6C9;
}

.skip-icon {
    font-size: 1.3rem;
}

/* Success State for Modal */
.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success .success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal-success h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.modal-success p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 24px 20px;
    }

    .skip-test-bar {
        flex-direction: column;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
    }
}
