﻿body {
    font-family: 'thesansarabic-plain 3', sans-serif;
    background-color: #e5eeec;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: calc(100vh - 94px);
    max-width: 90%;
    margin-inline: auto;
    margin-bottom: 24px;
}

body::before {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    content: '';
    height: 250px;
    background-color: #005848;
}

header {
    position: relative;
    text-align: center;
    padding: 32px 0;
}

.card-title-header{
    text-align: center;
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #007167;
}

.form-check-input {
    transform: translateY(-2px);
    margin-left: 10px;
    margin-right: 0;
}

.form-check-label {
    text-align: right;
    font-size: 16px;
    padding-right: 30px;
}
.form-check-input:checked {
    background-color: #007167 !important;
    border-color: #007167 !important;
}

.form-control {
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
}

    .form-control:focus {
        border-color: #005848;
        box-shadow: 0 0 5px rgba(68, 122, 95, 0.5);
    }

.form-select {
    color: #333; 
    background-color: #fff; 
    border: 1px solid #007167; 
    border-radius: 4px;
}
    .form-select:focus {
        border-color: #007167;
        box-shadow: 0 0 0 .25rem rgba(0, 113, 103,.25);
    }

/* Card styling */
.card-header {
    background-color: #005848;
    color: white;
}

/* Question styling */
ol {
    padding-left: 20px;
}

li {
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
    margin-bottom: 5%;
}

.page-content {
    position: relative;
    flex: 1;
    height: 100%;
    padding: 60px;
    background-color: #fff;
    border-radius: 20px;
}

/* Button styling */
.btn-primary {
    /*background-color: #005848;
    border-color: #005848;*/
    background-color: #007167;
    border-color: #007167;
    transition: background-color 0.3s ease;
    color: white;
    border-radius: 10px;
    outline: none;
    
}

    .btn-primary:hover {
        /*background-color: #004639;
        border-color: #004639;
        color: white;*/
        background-color: rgba(0, 113, 103, 0.8);
        border-color: #007167;
    }

.btn-secondary {
    background-color: #ceb888;
    border-color: #ceb888;
    color: white;
    border-radius: 10px;
    outline: none;
}

    .btn-secondary:hover {
        background-color: #b5a071;
        border-color: #b5a071;
        color: white;
    }

.btn-success {
    background-color: #B99B7C;
    color: white;
    border-radius: 10px;
    border-color: #B99B7C;
    outline: none;
    transition: background-color 0.3s ease;
    border: 1px solid #B99B7C;
}
    .btn-success:hover {
        background-color: rgba(185, 155, 124, 0.8);
        border-color: #B99B7C;
    }

.survey-btns {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
}

    .survey-btns hr {
        width: 100%;
        border: 0;
        margin-bottom: 1rem;
    }

.non-sec-survey-btns {
    position: absolute;
    bottom: 60px; 
    left: 60px; 
    right: 60px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

    .non-sec-survey-btns hr {
        width: 100%;
        margin: 0 0 1rem; 
    }

img {
    height: 100px;
    width: 100px;
}

footer {
    position: relative;
    text-align: center;
    padding: 24px 0;
    color: #fff;
    background-color: #005848;
}

.is-invalid {
    border-color: red !important;
    box-shadow: 0 0 5px red !important;
}

.other-input {
    margin-inline-start: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
    .other-input input {
        background-color: #e9ecef; 
        pointer-events: none;
    }

    .other-input.enabled {
        opacity: 1;
    }

        .other-input.enabled input {
            background-color: white;
            pointer-events: auto;
        }


.question-block.has-error {
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    padding: 0.75rem;
    border-radius: 0.25rem;
}
.error-message {
    font-weight: bold;
}
.has-error {
    border-right: 4px solid red;
    padding-right: 10px;
}
.invalid-feedback {
    display: none;
    margin-top: .25rem;
}

    .invalid-feedback.d-block {
        display: block;
    }


/* progress bar */
/* 1) Make wrapper full-width & positioned */
.progress-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 45px;
}

/* 2) Float the grey line at the very top of the wrapper */
.progress-bar {
    position: absolute;
    top: 12px; 
    left: 0;
    right: 0;
    height: 4px; /* adjust thickness as desired */
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 1; /* behind circles */
    transform: none; /* remove any translateY */
}

/* 3) Lay out the circles in RTL and drop them below the line */
.step-indicator {
    display: flex !important;
    /*flex-direction: row-reverse !important;*/ /* 1 on the right */
    justify-content: space-between;
    align-items: flex-start; /* bubbles start just below the line */
    margin-top: 12px; /* space between line and bubbles */
    position: relative;
    z-index: 2;
}

/* 4) Ensure each bubble centers in its flex slot */
.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .25rem;
    font-weight: bold;
    color: #666;
}

.step.active .step-number {
    background: #B99B7C;
    color: #fff;
}

.step.completed .step-number {
    background: #007167;
    color: #fff;
}

.step-label {
    font-size: .8rem;
    color: #666;
}

.step.active .step-label {
    color: #B99B7C;
    font-weight: 600;
}

.step.completed .step-label {
    color: #007167;
}
@media screen and (min-width: 1200px) {
    .page-content {
        width: 70%;
        margin: 0 auto;
    }
}