:root {
    --brand-blue: #003087;
    --brand-blue-dark: #001f5c;
    --brand-green: #8bc53f;
    --brand-green-dark: #6fa030;
    --brand-white: #ffffff;
    --brand-glass: rgba(255, 255, 255, 0.12);
    --brand-glass-border: rgba(255, 255, 255, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    overflow: auto;
    direction: rtl;
}

.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #d4ede1 0%, #dceef5 100%);
}

.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.glass-card {
    margin-top:50px;
    background: var(--brand-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--brand-glass-border);
    border-radius: 40px;
    padding: 32px 30px 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 48, 135, 0.18);
}

.logo-container {
    width: 100%;
    margin: 0 auto 28px;
    background: var(--brand-white);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 28px rgba(0, 48, 135, 0.15);
}

.logo {
    margin-top:50%;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-btn {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-blue);
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.08);
    border: 2px solid transparent;
}

.link-btn:hover {
    background: var(--brand-white);
    color: var(--brand-blue-dark);
    transform: translateY(-2px);
    border-color: var(--brand-green);
    box-shadow: 0 8px 20px rgba(139, 197, 63, 0.25);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 92, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 48, 135, 0.25);
    animation: slideUp 0.4s ease;
    border: 2px solid var(--brand-green);
}

.modal-stars {
    font-size: 28px;
    margin-bottom: 10px;
    letter-spacing: 4px;
    animation: starPulse 1.5s ease-in-out infinite alternate;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

@keyframes starPulse {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

.modal-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.review-btn {
    background: var(--brand-green);
    color: var(--brand-blue-dark);
}

.review-btn:hover {
    background: var(--brand-green-dark);
    color: var(--brand-white);
    transform: translateY(-2px);
}

.close-btn {
    background: transparent;
    color: #888;
    font-size: 13px;
    font-weight: 600;
}

.close-btn:hover {
    color: var(--brand-blue);
}

/* Lead Form Styles */
.lead-form-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.lead-form-container h3 {
    color: var(--brand-white);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0, 48, 135, 0.3);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input {
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    color: var(--brand-blue-dark);
    text-align: right;
    direction: rtl;
}

.form-input::placeholder {
    color: rgba(0, 48, 135, 0.45);
}

.form-input:focus {
    background: var(--brand-white);
    border-color: var(--brand-green);
}

.submit-btn {
    background: var(--brand-blue);
    color: var(--brand-white);
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.submit-btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 48, 135, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .glass-card {
        padding: 24px 20px 30px;
        border-radius: 30px;
    }

    .logo-container {
        padding: 12px;
        border-radius: 16px;
        margin-bottom: 22px;
    }

    .link-btn,
    .form-input,
    .submit-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}
