/* Global Layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content {
    width: 1124px;
    max-width: 100vw;
    padding: 1rem;
}

.accreditation h1 {
    margin-top: 2rem;
}

.accreditation h2 {
    font-size: 2.5em;
    margin-top: 4rem;
    font-weight: normal;
}

.accreditation h2,
.accreditation p {
    line-height: 1.5em;
}

@media (max-width: 600px) {
    .accreditation h1 {
        margin-top: 2rem;
        font-size: 1.3em;
        text-align: center;
    }
    
    .accreditation h2 {
        font-size: 1.5em;
        margin-top: 2rem;
        font-weight: normal;
    }
}

.cover {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.314), #1a669962), url("/static/assets/img/03.jpg");
    background-position: center;
    background-size: cover;
    position: absolute;
    z-index: -1;
}

.demande-container {
    padding: 1.1rem;
    box-shadow: 0 1px 20px #0e000042;
    border-radius: 12px;
    background: white;
}

.form-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 50vh;
}

.step-container ul {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-right: 4px solid #efefef;
    height: 100%;
}

.step-container ul li {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 10vh;
    border-left: 2px dashed #a7a7a7;
}

.step-container ul li.down {
    border-left: 2px solid #3f6f8c; /* جديد: الخطوات النشطة */
}

.step-container ul li a {
    display: flex;
    align-items: center;
    color: #a7a7a7;
}

.step-container ul li.current-step a {
    color: #3f6f8c; /* جديد: الخطوات النشطة */
    font-weight: bold;
}

.step-container .step-num {
    display: flex;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
    align-items: center;
    background: #a7a7a7;
    color: white;
    border-radius: 100%;
    position: relative;
    left: -17px; /* Center on the dashed line */
    z-index: 2;
    font-weight: normal;
}

.step-container .step-label {
    margin-left: -5px; /* Adjust for overlap */
    z-index: 1;
}

.step-container ul li.current-step .step-num {
    background: #3f6f8c; /* جديد: الخطوات النشطة */
    font-weight: bold;
}

.step-container i {
    font-size: 1.1em;
}

@media (max-width: 800px) {
    .step-container {
        display: none;
    }
}

.content {
    flex: 1;
}

.step-container ul li a {
    text-decoration: none;
}

.row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.row img {
    height: 2rem;
    border: 1px solid #cccccc;
}

.delegation {
    align-items: center;
    align-content: center;
    margin-bottom: 2rem;
}

.delegation img {
    width: 4rem;
}

.delegation span {
    text-transform: uppercase;
}

.doc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 200px;
    max-width: 100%;
    text-align: center;
    padding: 1rem;
    border: 4px solid #505050;
    border-radius: 8px;
    transition: 0.4s;
}

.doc:hover {
    background-color: #505050;
    cursor: pointer;
}

.doc i {
    font-size: 3.0em;
    color: #505050;
}

.doc label {
    color: #505050;
}

.doc .btn {
    background: #505050;
    color: white;
}

.doc input {
    display: none;
}

.doc:hover i, .doc:hover label {
    color: white;
}

.doc:hover .btn {
    color: #505050;
    background: white;
}

.success {
    display: none;
}

.recap {
    width: 500px;
    max-width: 90vw;
    padding: 1rem;
    border: 1px solid #cccccc;
    background: #f8f8f8;
}

@media (max-width: 600px) {
    .recap {
        width: auto;
    }
}

.recap .title {
    font-size: 1.5em;
}

.recap .subtitle {
    color: #555555;
    padding-bottom: 1rem;
    border-bottom: 1px solid #cccccc;
}

.radio-group {
    max-width: 100%;

    i {
        font-size: 2.0em;
    }

    input {
        display: none;

        i {
            color: #777777;
        }
    }

    label {
        padding: 1rem;
        border: 1px solid #cccccc;
        border-radius: 4px;
        height: 3.0rem;
        min-height: 3.0rem;
        max-height: 3.0rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        min-width: 120px;
    }

    label:hover {
        cursor: pointer;
        border: 1px dotted #113c64; /* جديد: لون نص ورموز عند التفاعل */
        color: #113c64; /* جديد: لون نص ورموز عند التفاعل */
        border-radius: 8px;
        opacity: 0.6;
        transition: 0.4s;
    }

    input[type="radio"]:checked + label {
        border: 2px solid #0b73b6; /* جديد: الحدود والألوان عند التحديد */
        color: #0b73b6; /* جديد: الحدود والألوان عند التحديد */

        i {
            color: #113c64; /* جديد: لون نص ورموز عند التفاعل */
        }
    }
}

.country-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px; /* Or adjust as needed */
}

.country-select-wrapper #country-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; /* Adjust size as needed */
    height: auto;
    pointer-events: none; /* Allows clicking through the image to the select */
}

.country-selection-container {
    display: flex;
    align-items: center;
}

#country-select {
    flex-grow: 1;
}

#country-flag {
    width: 40px; /* Adjust size as needed */
    height: auto;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#country-select {
    width: 100%;
    padding-left: 50px; /* Make space for the flag */
    -webkit-appearance: none; /* Remove default arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 40px;
    font-size: 16px;
}

.line-bborder {
    border-bottom: 8px solid #0b73b6; 
}

.border-r {
    border-radius: 4px;
}

.shdw {
    box-shadow: 0 1px 8px #ffffff38;
}