@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;700;900&display=swap');

.lang-switcher {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1.5rem;
    z-index: 100;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.lang-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.65;
    font-size: 0.85rem;
    transition: opacity 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lang-link:hover,
.lang-link.active {
    opacity: 1;
}

.lang-sep {
    opacity: 0.35;
    color: #fff;
    font-size: 0.85rem;
}

.required-star {
    color: #e74c3c;
}

.search-select {
    position: relative;
    width: 100%;
}

.search-select-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    direction: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.search-select-input:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 3px rgba(44,95,138,0.2);
}

.search-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.search-select-dropdown.open {
    display: block;
}

.search-select-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.search-select-item:hover,
.search-select-item.active {
    background: #dce6f0;
}

.search-select-item.no-result {
    color: #999;
    cursor: default;
}

.search-select-item.no-result:hover {
    background: transparent;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url('/img/Artboard 8.png');
    background-size: cover;
    background-position: center;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('/img/Untitled-2.png');
        background-size: cover;
        background-position: center;
        opacity: 0.5;
        z-index: 1;
    }
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 40, 80, 0.75) 0%, rgba(30, 80, 140, 0.45) 50%, rgba(10, 20, 50, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-agency {
    margin-bottom: 0.5rem;
}

.logo-agency-img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.event-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    line-height: 1.4;
}

.event-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 2rem;
    direction: ltr;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    background: rgba(26, 58, 107, 0.45);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    min-width: 80px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 0.4rem;
    opacity: 0.85;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 900;
    margin-top: -0.6rem;
    opacity: 0.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.event-date {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #1a3a6b, #2c5f8a);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(26, 58, 107, 0.4);
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 58, 107, 0.6);
}

.event-description {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #333;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1a3a6b;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    direction: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 3px rgba(44,95,138,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #1a3a6b, #2c5f8a);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26,58,107,0.4);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

@media (max-width: 700px) {
    .hero {
        min-height: 100dvh;

        &::before {
            opacity: 0.2;
        }
    }

    .gradient-overlay {
        background: linear-gradient(180deg, rgba(15, 40, 80, 0.85) 0%, rgba(30, 80, 140, 0.55) 60%, rgba(10, 20, 50, 0.85) 100%);
    }

    .event-title {
        font-size: 1.4rem;
    }
    .event-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    .countdown-number {
        font-size: 1.8rem;
        min-width: 45px;
        padding: 0.15rem 0.3rem;
    }
    .countdown-item {
        min-width: 45px;
    }
    .countdown-separator {
        font-size: 1.6rem;
    }
    .countdown {
        gap: 0.15rem;
        margin-bottom: 1.2rem;
    }
    .logo {
        max-width: 180px;
    }
    .logo-agency-img {
        max-width: 70px;
        max-height: 70px;
    }
    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
    .hero-content {
        padding: 1rem;
    }
    .event-description {
        font-size: 0.85rem;
    }
    .event-date {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    .lang-switcher {
        top: 0.5rem;
        inset-inline-end: 0.8rem;
    }
    .lang-link {
        font-size: 0.75rem;
    }
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .search-select-dropdown {
        max-height: 150px;
    }
}
