﻿
:root {
    --primary-color: #004d79;
    --primary-light: #07a7c1;
    --primary-dark: #231f20;
    --secondary-color: ##6fb716;
    --accent-color: #4cc9f0;
    --success-color: #4caf50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}
:root {
    --default-font: 'Tajawal', sans-serif;
    --heading-font: 'Tajawal', sans-serif;
    --nav-font: 'Tajawal', sans-serif; /* Updated to Cairo font */
}
html, body, form {
    /*height: 100%;*/
    margin: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.main-content {
    flex: 1;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal';
    background-image: url('/Assets/Images/logo2.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
        color: var(--text-color);
    line-height: 1.6;
}

.Survey_container {
    max-width: 800px;
    /*margin:25px auto;*/
    margin: 7%  auto;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Header Styles */
header {
    text-align: center;
    /*margin-bottom: 30px;*/
}

.logo {
    /* font-size: 24px;
    font-weight: 700;*/
    color: var(--primary-color);
    margin-bottom: 20px;
   
}

    .logo img {
        width: 17%;
    }

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
h6{
    font-size:small;
}
.subtitle {
    color: var(--text-light);
    font-size: 13px;
    border-bottom: 1px solid #000;
    display: inline-block;
    padding-bottom: 4px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    width: 20%; /* Initial width for first page */
    transition: var(--transition);
}

.progress-text {
    text-align: right;
    font-size: 14px;
    color: var(--text-light);
}

/* Question Blocks */
.question-block {
    margin-bottom: 20px;
}

    .question-block h3 {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 15px;
        color: var(--primary-dark);
    }

.instruction {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

/* Radio & Checkbox Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

    .option:hover {
        background-color: #e9ecef;
    }

    .option input[type="radio"],
    .option input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background-color: var(--white);
        border: 2px solid #ddd;
        border-radius: 50%;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
    }

    .option input[type="checkbox"] {
        border-radius: 4px;
    }

        .option input[type="radio"]:checked,
        .option input[type="checkbox"]:checked {
            border-color: var(--primary-color);
            background-color: var(--primary-color);
        }

            .option input[type="radio"]:checked::before,
            .option input[type="checkbox"]:checked::before {
                content: '';
                width: 10px;
                height: 10px;
                background-color: var(--white);
                border-radius: 50%;
                display: block;
            }

            .option input[type="checkbox"]:checked::before {
                border-radius: 2px;
            }

    .option label {
        cursor: pointer;
        font-size: 13px;
        margin-right: 2%;
    }
/* كل عنصر داخل CheckBoxList */
.checkbox-list span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    max-width: 100%;
}

/* مربع الاختيار */
.checkbox-list input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.checkbox-list label {
    display: inline-block; /* عشان النص جنب checkbox */
    font-size: 14px;
    cursor: pointer;
    line-height: 1.6;
    max-width: 100%;
    word-break: break-word;
    vertical-align: middle; /* يوازن النص مع مربع الاختيار */
    margin-left: 6px; /* مسافة بين checkbox والنص */
}


.checkbox-list span {
    display: flex;
    width:100%;
    align-items: center; /* بدل flex-start */
    gap: 10px;
    margin-bottom: 12px;
    max-width: 100%;
}

/* Rating Scale */
.rating-container {
    /*margin: 10px 40px;*/
}


.rating-scale {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.rating-options {
    /* display: flex;
    justify-content: space-around;*/
    font-size: small;
    justify-content: center;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    direction: rtl; /* لضبط الاتجاه للعربية */
}

    .rating-options input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 25px;
        height: 25px;
        border: 2px solid #ddd;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
        margin-bottom: 5px;
        position: relative;
    }

        .rating-options input[type="radio"]:checked {
            border-color: var(--primary-color);
            background-color: var(--primary-color);
            color: var(--white);
        }

Make label a block and align below radio
.rating-options label {
    display: flex;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    margin: 0 5px 0 5px;
    user-select: none;
    width: 60px;
}

.rating-options input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        font-size: 16px;
    }

input[type="text"],
input[type="email"], input[type="tel"], input[type="date"], input[type="datetime"],
select,
textarea {
    width: 100%;
    font-size: small;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal';
    font-size: 16px;
    transition: var(--transition);
}

    input[type="text"]:focus,
    input[type="email"]:focus, input[type="tel"],
    select:focus,
    textarea:focus {
        outline: none;
        font-size: small;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    }

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.button-group {
    display: flex;
    /*justify-content: end;*/
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal';
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-secondary {
    background-color: #e9ecef;
    color: var(--text-color);
}

    .btn-secondary:hover {
        background-color: #dee2e6;
    }

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

    .btn-success:hover {
        background-color: #43a047;
    }

/* Page Navigation */


    .survey-page.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thank You Message */
.thank-you-container {
    text-align: center;
   
}

    .thank-you-container.active {
        display: block;
        animation: scaleIn 0.5s ease;
    }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.checkmark {
    width: 30%;
    /*height: 80px;
    border-radius: 50%;
    background-color: var(--success-color);
    color: var(--white);
    font-size: 40px;
    */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        /*margin: 20px;*/
    }

    h1 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .rating-option input[type="radio"] {
        width: 25px;
        height: 25px;
    }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    --heading-font: var(--default-font);
    color: var(--primary-color);
    background-color: #eaeaea;
    font-size: 12px;
    padding: 40px 0 ;
    position: relative;
    font-weight: 600;
}

    .footer .icon {
        color: var(--accent-color);
        margin-left: 15px;
        font-size: 24px;
        line-height: 0;
    }

    .footer h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .footer .address p {
        margin-bottom: 0px;
    }

    .footer .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
        font-size: 16px;
        color: color-mix(in srgb, var(--default-color), transparent 50%);
        margin-left: 10px;
        transition: 0.3s;
    }

        .footer .social-links a:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
        }

    .footer .copyright {
        /*padding-top: 20px;*/
        border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }

        .footer .copyright p {
            margin-bottom: 0;
        }

    .footer .credits {
        margin-top: 5px;
        font-size: 10px;
    }

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

    .scroll-top i {
        font-size: 24px;
        color: var(--contrast-color);
        line-height: 0;
    }

    .scroll-top:hover {
        background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
        color: var(--contrast-color);
    }

    .scroll-top.active {
        visibility: visible;
        opacity: 1;
        bottom: 15px;
    }


.Valdatior {
    color: red;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline;
}
/* Add the asterisk to the label */

.required::after {
    content: " *";
    color: red; /* Change the color of the asterisk */
    font-weight: bold; /* Make the asterisk bold */
}
