﻿html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Almarai', sans-serif;
    box-sizing: border-box;
}
.navbar-style {
    background: #ffffff;
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 0.21);
    padding: 0 60px;
}
.navbar-brand img {
    width: 116px;
    height: 69px;
}
.date-time {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap:wrap;
    gap: 15px;
    font-size: 18px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #121212;
    font-weight: 500;
}

.img-cambridge img {
    width: 100%; 
    max-width: 345px;
    height: auto; 
    display: block; 
    margin: 0 auto;
}
@media (max-width:480px) {
    .img-cambridge img {
        max-width: 250px;
    }
}

.text-title h2 {
    font-weight: 700;
    color: #201560;
    
    line-height: 1.4;
    text-align: center; 
}
.text-title h1 {
    font-weight: 700;
    color: #201560;
    line-height: 1.4;
    text-align: center;
}


.stepper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    flex-wrap: wrap; 
}

    .stepper-container a {
        text-decoration: none;
    }

.step {
    padding: 12px 5vw; 
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    border: none;
    white-space: nowrap;
    flex-shrink: 1; 
    min-width: 80px; 
    max-width: 100%; 
    box-sizing: border-box;
    text-align: center;
}

    .step.active {
        background-color: #6c9f5d;
        color: white;
    }

    .step.inactive {
        background-color: #6c757d;
        color: white;
    }

.connector-line {
    width: 10vw;
    max-width: 60px;
    min-width: 30px;
    height: 4px;
    background-color: #6c9f5d;
    position: relative;
    z-index: 1;
    flex-shrink: 1;
}
    .connector-line.active {
        background-color: #6c9f5d;
    }
    /*Form*/
.form-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    background: white;
    border-radius: 5px;
    width: 90%;
}

.form-header {
    background: #343a40;
    color: white;
    padding: 15px 25px;
    border-radius: 5px 5px 0 0;
}

    .form-header h4 {
        margin: 0;
        font-size: 18px;
    }

.form-body {
    padding: 25px;
    padding: 25px;
    border: 1px solid #9a9ea3;
}

.text-red {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.form-control {
    font-size: 14px;
    height: 38px;
    border-radius: 2px;
    border: 1px solid #9aa1a9;
    width: 100%;
}

    .form-control:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.upload-box {
    border: 2px dashed #c6c8cb;
    padding: 8px 20px;
    text-align: center;
    cursor: pointer;
    background: white;
    border-radius: 5px;
}

    .upload-box:hover {
        background: #f8f9fa;
    }

.upload-icon i {
    font-size: 35px;
    color: #222324;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.upload-subtext {
    font-size: 15px;
    color: #3b3e40;
    text-align: center;
    font-weight: 400;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 2px solid #6c757d;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-color: white;
}

    .form-check-input[type=radio] {
        border-radius: 20%;
        border: 1px solid #c0c3c7;
    }

    .form-check-input:checked {
        background-color: #EFF4FB;
        border-color: #8090F0;
        background-image: none;
    }

        .form-check-input:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #8090F0;
            font-size: 14px;
            font-weight: bold;
        }

.form-check-label {
    font-size: 14px;
    margin-bottom: 0;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
}
.checkbox-text {
    font-size:14px;
    white-space:nowrap;
}
.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
}

    .btn-back:hover {
        background: #84878A;
        color: white;
    }

.btn-next {
    background: #201560;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
}

    .btn-next:hover {
        background: #1a252f;
        color: white;
    }

.date-input-wrapper {
    position: relative;
}

.calendar-icon {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
    background: #6F747C;
    padding: 7px;
    border-radius: 2px;
}

.card {
    border: 1px solid #919191;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
}

.card-terms {
    border: none;
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
    background: none;
    box-shadow: none;
}

.card-header {
    background-color: #343a40;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    font-size: 15px;
}

table.custom-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #919191;
    margin-bottom: 0;
}

    table.custom-table th,
    table.custom-table td {
        border-left: 1px solid #919191;
        border-right: 1px solid #919191;
        border-top: none;
        border-bottom: none;
        text-align: start;
        vertical-align: middle;
        padding: 12px 8px;
    }

    table.custom-table thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #212529;
    }

    table.custom-table th:first-child,
    table.custom-table td:first-child {
        width: 40px;
        max-width: 40px;
        text-align: center;
    }
    /* Item */
    table.custom-table th:nth-child(2),
    table.custom-table td:nth-child(2) {
        width: 35%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /*Subject ID */
table.custom-table-AddedExams th:nth-child(2),
table.custom-table-AddedExams td:nth-child(2) {
    white-space: nowrap;
    width: 14%;
}

/* Total row styling */
.total-row td {
    background-color: #fff !important;
    border-top: 1px solid #919191 !important;
    font-weight: 500;
    padding: 12px 8px;
}

/* Button styling */
.btn-add {
    background-color: #70B9D1;
    color: white;
    border: none;
    padding: 3px 25px;
    border-radius: 8px;
    font-size: 13px;
}

    .btn-add:hover {
        background-color: #46b8da;
        color: white;
    }

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 4px;
}

.chevron-icon {
    border: none;
}

.page-link-number {
    border: 1px solid #949599;
    border-radius: 5px;
    padding: 5px 12px;
    color: #212529;
}

.page-item .active {
    background: #149DA8;
    color: #212529;
    border: 1px solid #212529;
}

.page-item i {
    color: #212529;
}

.page-link.page-link-number:hover {
    background: #149DA8;
    color: #212529;
    border: 1px solid #212529;
}

.page-link.chevron-icon:hover {
    background: none;
}
/* Search and entries */
.entries-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Price display in Add Exams table */
.price-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0 30px;
}

/* Responsive */
@media (max-width: 768px) {
    table.custom-table th,
    table.custom-table td {
        font-size: 13px;
        padding: 8px 4px;
    }

    .card-header {
        font-size: 14px;
    }

    .price-cell {
        flex-direction: column;
        gap: 5px;
    }
}

/* Checkbox styling */
.form-check-label {
    font-size: 14px;
    color: #495057;
}
/*Amount*/
.amount {
    background: #F1F1F1;
    width: clamp(150px, 50%, 300px); 
    margin: 0 auto;
    padding: clamp(15px, 5vw, 35px); 
    border-radius: 25px;
    font-size: clamp(16px, 2.5vw, 27px); 
    font-weight: bold;
    color: #201560;
    box-sizing: border-box;
    text-align: center; 
}

