﻿:root {
    --primary-color: #BB1B26;
}

body {
    direction: rtl;
    background: #F2F4F7;
    font-family: "Noto Kufi Arabic", Tahoma, Arial !important;
    color: #1F2A44;
}
body, .wizard-container, .tab-content {
    direction: rtl;
    text-align: right;
}


table {
    direction: rtl;
    text-align: right;
}


@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('../static/NotoKufiArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('../static/NotoKufiArabic-Regular.ttf') format('truetype');
    font-weight: 400; 
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('../static/NotoKufiArabic-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}


/* Top banner */
.gov-header {
    background: #0F3959;
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Card wrapper */
.app-form-wrapper {
    max-width: 1150px;
    margin: 35px auto;
    background: white;
    border-radius: 14px;
    padding: 30px 35px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* Section title */
.app-title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #0F3959;
}

label {
    font-size: 15px;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 6px;
}
input{
    font-size: 15px !important;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.form-control {
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
}

/* Button styling */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    background: #C9A227;
    border: 0;
    color: #0F3959;
    transition: .2s;
}

    .submit-btn:hover {
        background: #b49422;
    }

/* Spacing between rows */
.row > div {
    margin-bottom: 12px;
}
.id-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fafafa;
}
.required-label::after {
    content: " *";
    color: #d9534f; /* Bootstrap danger red */
    font-weight: bold;
}
.table th,
.table td {
    text-align: center;
    vertical-align: middle;
}
label small,
.text-muted,
input[type="email"],
input[type="text"],
input[type="date"],
input[type="number"] {
    direction: ltr;
    text-align: left;
}
.success-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* fills wizard area */
    background: #f8f9fa;
}

.success-card {
    background: #fff;
    padding: 50px 70px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

    .success-card h2 {
        color: #28a745;
        font-size: 32px;
        margin-bottom: 30px;
    }

.ref-label {
    font-size: 16px;
    color: #777;
    margin-bottom: 6px;
}

.ref-number {
    font-size: 40px;
    font-weight: bold;
    color: #222;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.note {
    font-size: 16px;
    color: #555;
}
#applyCaptcha {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}


.wizard-card[data-color="orange"] .progress-bar {
    background-color: var(--primary-color) !important;
}




.btn-warning {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.wizard-card[data-color="orange"] .nav-pills .icon-circle.checked {
    border-color: var(--primary-color) !important;
}

.wizard-card[data-color="orange"] .nav-pills > li.active > a {
    color: var(--primary-color) !important;
}
    .wizard-card[data-color="orange"] .nav-pills > li.active > a:after {
        background-color: var(--primary-color) !important;
    }

.wizard-card[data-color="orange"] .picture:hover {
    border-color: var(--primary-color) !important;
}
.wizard-logo {
    width: 100px;
    margin-bottom: 15px;
}
.wizard-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tab-pane.step-submitted input.ng-invalid,
.tab-pane.step-submitted select.ng-invalid,
.tab-pane.step-submitted textarea.ng-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}


.id-box {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    background: #fafafa;
}


.picture-container .picture {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    border: 2px solid #eee;
}

    .picture-container .picture .picture-src {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .picture-container .picture input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }
.validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

.tab-pane.step-submitted .validation-error {
    display: block;
}
.picture-container .picture {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    border: 2px solid #eee;
    background: #f8f8f8;
}

    .picture-container .picture .picture-src {
        width: 100%;
        height: 100%;
        object-fit: contain; 
    }

.wizard-container, .wizard-card {
    max-width: 100%;
}

.wizard-card {
    margin: 12px auto;
    padding: 12px;
}

/* fix huge padding on small screens */
@media (max-width: 576px) {
    .wizard-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .wizard-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .category {
        font-size: 14px !important;
    }
}
@media (max-width: 576px) {
    .btn, button.btn {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}
/* Mobile: make steps scrollable horizontally */
@media (max-width: 576px) {
    .wizard-navigation .nav-pills,
    .wizard-navigation .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 8px;
    }

        .wizard-navigation .nav-pills > li,
        .wizard-navigation .nav > li {
            float: none !important;
            flex: 0 0 auto !important;
            width: auto !important;
        }

            .wizard-navigation .nav-pills > li > a,
            .wizard-navigation .nav > li > a {
                display: flex !important;
                align-items: center !important;
                gap: 8px;
                white-space: nowrap !important; 
                padding: 8px 10px !important;
                border-radius: 12px;
            }

    .wizard-navigation .icon-circle {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        flex: 0 0 34px !important;
    }

    
    .wizard-navigation .nav-pills::-webkit-scrollbar,
    .wizard-navigation .nav::-webkit-scrollbar {
        height: 6px;
    }
}

@media (max-width: 576px) {

    body, html {
        height: 100%;
    }

    .wizard-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wizard-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important; 
        min-height: 100vh; 
        box-shadow: none !important; 
    }

 
}

.education-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.education-table {
    min-width: 900px; 
}


@media (max-width: 768px) {
    .education-table th,
    .education-table td {
        padding: 6px !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }

    .education-table .form-control {
        min-width: 140px !important; 
        font-size: 13px !important;
        height: 34px !important;
    }

    .education-table input[type="date"] {
        min-width: 160px !important;
    }

  
    .education-table .btn {
        padding: 4px 8px !important;
    }
}
.wizard-navigation .nav {
    flex-direction: row-reverse !important;
}
    .wizard-navigation .nav li {
        float: right !important;
    }
.progress-with-circle {
    direction: ltr; 
}
.progress-bar {
    float: right !important;
}
@media (min-width: 768px) {
    .name-row {
        display: flex !important;
        flex-wrap: wrap !important;
        direction: ltr !important;
    }

        .name-row > div {
            float: none !important;
        }

        .name-row .last-col {
            order: 1 !important;
        }

        .name-row .third-col {
            order: 2 !important;
        }

        .name-row .second-col {
            order: 3 !important;
        }

        .name-row .first-col {
            order: 4 !important;
        }
}
input,
textarea,
select {
    direction: rtl !important;
    text-align: right;
}
@media (max-width: 576px) {
    .wizard-navigation .progress-with-circle {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (max-width: 576px) {
    .wizard-navigation {
        padding-top: 0 !important;
        margin-top: 0 !important;
        border-top: 0 !important;
        display:none !important;
    }

    .tab-content{
        padding-top: 50px !important;
    }
}