/* Global Styles */
body {
    font-family: var(--font-aktivgrotesk-regular);
    margin: 0;
    padding: 0;
    background-color: #F1F7FE;
    color: #363636;
    direction: rtl;
}

/* Header Section */
.shark-header {
    /* Use absolute path (relative to /style/) to ensure the banner loads */
    background-image: url('../../images/SharkTank/Shark_Tank-presentation.png');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

    .shark-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(26, 77, 109, 0.7) 0%, rgba(13, 38, 54, 0.85) 100%);
        z-index: 1;
    }

/* Shark Logo */
.shark-logo {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.shark-logo-img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-family: var(--font-aktivgrotesk-black);
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-arabic {
    font-family: var(--font-cairo-semibold);
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

/* Index 1: 40px Bold - Header Title */
.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-aktivgrotesk-bold);
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-cairo-regular);
}

/* More Info Button */
.more-info-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: var(--font-aktivgrotesk-bold);
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font-family: var(--font-cairo-regular);
    flex-direction: row-reverse;
}

    .more-info-btn::after {
        content: "";
        width: 14.51px;
        height: 14.51px;
        display: inline-block;
        background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.51' height='14.51' viewBox='0 0 14.51 14.51'%3E%3Cpath d='M8.6,14.837h7.17L13.58,17.473a.605.605,0,0,0,.931.774l3.023-3.628a.72.72,0,0,0,.054-.091c0-.03.03-.048.042-.079a.593.593,0,0,0,.042-.218h0a.593.593,0,0,0-.042-.218c0-.03-.03-.048-.042-.079a.72.72,0,0,0-.054-.091l-3.023-3.628a.607.607,0,0,0-1.07.333.615.615,0,0,0,.139.441l2.195,2.636H8.6a.6.6,0,1,0,0,1.209Z' transform='translate(-5.582 -6.977)' fill='%23ffffff'/%3E%3Cpath d='M0,0H14.51V14.51H0Z' fill='none'/%3E%3C/svg%3E") no-repeat center center;
        background-size: contain;
        rotate: 180deg;
    }

    .more-info-btn:hover {
        background: #ffffff;
        color: #1A6DF8;
        border-color: #1A6DF8;
    }

        .more-info-btn:hover::after {
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.51' height='14.51' viewBox='0 0 14.51 14.51'%3E%3Cpath d='M8.6,14.837h7.17L13.58,17.473a.605.605,0,0,0,.931.774l3.023-3.628a.72.72,0,0,0,.054-.091c0-.03.03-.048.042-.079a.593.593,0,0,0,.042-.218h0a.593.593,0,0,0-.042-.218c0-.03-.03-.048-.042-.079a.72.72,0,0,0-.054-.091l-3.023-3.628a.607.607,0,0,0-1.07.333.615.615,0,0,0,.139.441l2.195,2.636H8.6a.6.6,0,1,0,0,1.209Z' transform='translate(-5.582 -6.977)' fill='%231A6DF8'/%3E%3Cpath d='M0,0H14.51V14.51H0Z' fill='none'/%3E%3C/svg%3E");
        }

/* Top Right Info */
.top-right-info {
    position: absolute;
    left: 40px;
    top: 40px;
    z-index: 2;
    text-align: right;
}

.location-text {
    color: #ff8c00;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    direction: ltr;
}

.lang-icon {
    width: 20px;
    height: 20px;
}

/* Align MasterLanguages control with current design */
.language-selector .LanguageMainContainer {
    display: flex;
    align-items: center;
}

.language-selector .LangStyle {
    color: #ffffff;
    font-family: var(--font-aktivgrotesk-bold);
    font-size: 14px;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .language-selector .LangStyle:hover {
        color: #1A6DF8;
        background: #ffffff;
        border-color: #1A6DF8;
    }

.lang-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* Eligibility Section */
.eligibility-section {
    background-color: #F1F7FE;
    padding: 40px 0;
    margin-bottom: 40px;
}

.eligibility-content {
    background-color: #F1F7FE;
    padding: 13px 0;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.eligibility-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}

.info-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.eligibility-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A6DF8;
    margin: 0;
    line-height: 1.4;
}


.eligibility-list {
    list-style: none;
    padding-right: 0;
    margin-bottom: 15px;
    padding-right: 0;
}

.eligibility-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #363636;
    margin-bottom: 15px;
    padding-right: 28px;
    padding-left: 0;
    position: relative;
}

    .eligibility-item::before {
        content: '';
        position: absolute;
        right: 0;
        left: auto;
        top: 9px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #1A6DF8;
    }

.read-more-link {
    color: #1A6DF8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 25px;
}

    .read-more-link:hover {
        text-decoration: underline;
    }

.acknowledgment-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 3px solid #E5E7EB;
}

/* Custom Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 15px;
}

    /* Support both direct inputs and ASP.NET-wrapped checkbox markup */
    .custom-checkbox .checkbox-input {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        min-width: 22px;
        margin-left: 15px;
        margin-top: 3px;
    }

        .custom-checkbox .checkbox-input input[type="checkbox"],
        .custom-checkbox input.checkbox-input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            min-width: 22px;
            border: 2px solid #1A6DF8;
            border-radius: 5px;
            background-color: transparent;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
        }

            .custom-checkbox .checkbox-input input[type="checkbox"]:checked,
            .custom-checkbox input.checkbox-input[type="checkbox"]:checked {
                background-color: #1A6DF8;
                border-color: #1A6DF8;
            }

                .custom-checkbox .checkbox-input input[type="checkbox"]:checked::before,
                .custom-checkbox input.checkbox-input[type="checkbox"]:checked::before {
                    content: '';
                    position: absolute;
                    right: 6px;
                    left: auto;
                    top: 2px;
                    width: 6px;
                    height: 11px;
                    border: solid #ffffff;
                    border-width: 0 2px 2px 0;
                    transform: rotate(45deg);
                }

.checkbox-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #363636;
    cursor: pointer;
    flex: 1;
}

.agreement-text {
    font-family: var(--font-aktivgrotesk-regular);
    font-size: 14px;
    color: #363636;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agreement-link {
    color: #1A6DF8;
    text-decoration: underline;
    font-weight: 500;
}

    .agreement-link:hover {
        color: #1557C7;
    }

/* Make all checkbox input use the same color */
input[type="checkbox"] + label {
    color: #363636;
}

/* Form Container */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: right;
}

/* Index 6: 30px Bold - Form Main Title */
.form-main-title {
    font-size: 30px;
    font-weight: 700;
    color: #F42C1C;
    /*margin-bottom: 10px;*/
    text-align: right;
}

/* Index 4: 16px Medium - Form Subtitle */
.form-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 40px;
    text-align: center;
    direction: ltr;
}

/* Form Sections */
.form-section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 33px;
    box-shadow: 0px 3px 6px #00000010;
    text-align: right;
}

    .form-section .mb-3 {
        margin-bottom: 2rem !important;
    }

/* Index 3: 20px Bold - Section Title */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #363636;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1A6DF8;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
}

.section-icon {
    width: 35px;
    height: 35px;
    margin-left: 15px;
    object-fit: contain;
}

.section-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 15px;
    margin-right: 0;
    background-color: #1A6DF8;
    border-radius: 50%;
    flex-shrink: 0;
}

    .section-icon-circle svg {
        width: 20px;
        height: 22px;
        fill: #ffffff;
    }

/* Index 5: 14px Semibold - Form Labels */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #363636;
    margin-bottom: 8px;
    display: block;
    text-align: right;
}

.required {
    color: #F42C1C;
    margin-right: 3px;
}

/* Form Controls */
.form-control,
.form-select {
    font-family: var(--font-cairo-regular);
    font-size: 14px;
    font-weight: 400;
    padding: 0 15px;
    border: 1.5px solid #D1D5DB;
    border-radius: 15px;
    height: 60px;
    width: 100%;
    transition: border-color 0.3s ease;
}

    /* Placeholder font */
    .form-control::placeholder,
    .form-select::placeholder {
        font-family: var(--font-cairo-regular);
        font-size: 14px;
        font-weight: 400;
        color: #9CA3AF;
    }

select.form-select {
    padding: 0 15px 0 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg id='arrow_down_s' data-name='arrow down s' xmlns='http://www.w3.org/2000/svg' width='37.089' height='37.089' viewBox='0 0 37.089 37.089'%3E%3Cpath id='Path_6' data-name='Path 6' d='M21.106,24.09l7.65-7.65,2.187,2.187-9.836,9.836L11.27,18.627l2.187-2.187Z' transform='translate(-2.562 -3.737)' fill='%237c8084'/%3E%3Cpath id='Path_7' data-name='Path 7' d='M0,0H37.089V37.089H0Z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px 20px;
    cursor: pointer;
}

    select.form-select:focus {
        background-color: #ffffff;
    }

    /* Dropdown options styling - limited browser support */
    select.form-select option {
        font-family: var(--font-cairo-regular);
        font-size: 14px;
        font-weight: 400;
        color: #363636;
        background-color: #ffffff;
        padding: 12px 15px;
        line-height: 1.6;
    }

        select.form-select option:hover {
            background-color: #F1F7FE;
            color: #1A6DF8;
        }

        select.form-select option:checked {
            background-color: #F1F7FE;
            color: #1A6DF8;
        }

        select.form-select option:disabled {
            color: #9CA3AF;
            background-color: #F9FAFB;
        }

.form-control:focus,
.form-select:focus {
    border-color: #1A6DF8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 109, 248, 0.1);
}

.form-control::placeholder,
.form-select::placeholder {
    color: #9CA3AF;
}

/* Textarea Override */
.form-control[rows] {
    height: auto;
    padding: 15px;
    min-height: 60px;
}

/* Phone Code Dropdown */
.phone-code {
    max-width: 100px;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    direction: ltr;
    text-align: left;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.phone-code option {
    direction: rtl;
    unicode-bidi: plaintext; /* keep Arabic order while allowing LTR numbers */
}

/* Upload Box */
.upload-box {
    border: 2px dashed #D1D5DB; /* gray by default */
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 120px;
    flex-direction: column;
}

    .upload-box:hover {
        background-color: #F8FAFC;
        border-color: #1557C7; /* blue on hover */
    }

.upload-icon-image {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.upload-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: #1A6DF8;
    font-size: 14px;
    font-weight: 500;
}

.upload-loader .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #E5E7EB;
    border-top-color: #1A6DF8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-filename {
    margin-top: 10px;
    font-size: 14px;
    color: #16A34A;
    font-weight: 500;
}

/* Date inputs calendar icon */
input[type="date"].form-control,
.form-control[type="date"] {
    background: #fff url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27.5' height='27.5' viewBox='0 0 27.5 27.5'%3E%3Cpath d='M8.164,3.438H15.9V1.289a1.289,1.289,0,1,1,2.578,0V3.438h2.148a3.44,3.44,0,0,1,3.438,3.438V24.063A3.44,3.44,0,0,1,20.625,27.5H3.438A3.44,3.44,0,0,1,0,24.063V6.875A3.44,3.44,0,0,1,3.438,3.438H5.586V1.289a1.289,1.289,0,0,1,2.578,0ZM2.578,24.063a.858.858,0,0,0,.859.859H20.625a.858.858,0,0,0,.859-.859V10.313H2.578Z' fill='%237c8084'/%3E%3Cpath d='M0,0H27.5V27.5H0Z' fill='none'/%3E%3C/svg%3E") no-repeat left 14px center;
    background-size: 20px 20px;
    padding-left: 42px;
    -webkit-appearance: none;
    appearance: none;
    text-align:right;
}

    /* Hide native date picker icon while keeping click area */
    input[type="date"].form-control::-webkit-calendar-picker-indicator,
    .form-control[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        right: 0;
        left: auto;
        top: 0;
        cursor: pointer;
    }

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* Index 8: 16px Bold - Upload Text */
.upload-text {
    font-size: 16px;
    font-weight: 700;
    color: #6B7280;
    margin: 0;
    pointer-events: none;
}

/* Index 4: 16px Medium - Upload Instructions */
.upload-instructions {
    font-size: 14px;
    font-weight: 600;
    color: #363636;
    margin-top: 15px;
    line-height: 1.8;
}


/* Submit Button */
.btn-submit {
    background-color: #1A6DF8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 50px;
    border: 1px solid #1A6DF8;
    border-radius: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 109, 248, 0.3);
}

    .btn-submit:hover {
        background-color: transparent;
        color: #1A6DF8;
        border-color: #1A6DF8;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(26, 109, 248, 0.4);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

/* Validation Errors */
.text-danger {
    color: #F42C1C;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
    .shark-header {
        min-height: 300px;
        padding: 40px 20px;
    }

    .shark-logo {
        right: 20px;
    }

    .logo-text {
        font-size: 36px;
    }

    .logo-arabic {
        font-size: 18px;
    }

    .header-title {
        font-size: 28px;
    }

    .top-right-info {
        left: 20px;
        top: 20px;
    }

    .form-main-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .eligibility-text {
        font-size: 16px;
    }

    .form-section {
        padding: 20px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 30px;
    }

    .eligibility-header-container {
        border: none;
        padding: 0;
    }

    .eligibility-content {
        padding-left: 0;
        border-left: none !important;
    }
}

@media (max-width: 576px) {
    .shark-header {
        min-height: 300px;
        aspect-ratio: 1 / 1;
        flex-direction: column;
        background-size: cover;
        background-position: center;
        position: relative;
        background-image: url('../../images/SharkTank/mobile-header-img.png');
    }

    .shark-logo-img {
        width: 75px;
    }

    .shark-logo {
        position: absolute;
        top: 16px;
        right: 16px;
        transform: none;
        margin: 0;
    }

    .logo-text {
        font-size: 32px;
    }

    .header-title {
        font-size: 22px;
        text-align: center;
        margin-top: 40px;
    }

    .more-info-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .form-main-title {
        font-size: 20px;
    }

    .section-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .top-right-info {
        position: absolute;
        top: 16px;
        left: 16px;
        text-align: left;
        margin: 0;
    }

    .language-selector {
        justify-content: center;
        direction: rtl;
    }
}


.eligibility-header-container {
    padding-right: 40px;
    border-right: 4px solid #1A6DF8;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}

.ruFileInput {
    display: none;
}

#video-upload-box .file-upload-input {
    display: none;
}
