:root {
    --primary-color: #0066cc;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --accent-color: #ffd700;
    --light-text: #64748b;
    --background-light: #f8fafc;
    --background-dark: #1e293b;
    --success-color: #10b981;
    --header-bg: #0A2351;
    --catalog-btn-bg: #E0402F;
    --search-btn-bg: #0066CC;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

    body::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("../assets/CSR/digital-signature-algorithm-concept-1024x574.webp");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        filter: blur(3px);
        z-index: -1;
    }

.container {
    width: 95%;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

/* فرم */
.CSR-title {
    color: var(--background-light);
    text-align: center;
    margin-bottom: 1rem;
}

.CSR-Form {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: white;
}

.CSR-Form-input__container {
    display: flex;
    align-items: center;
    column-gap: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.CSR-Form__radioBtn-label {
    display: inline-block;
    margin-right: 10px;
}

.CSR-Input__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
}

.input-group__container {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
    font-weight: 700;
    text-align: right;
}

.form-input {
    width: 400px;
    margin-bottom: .5rem;
    height: 40px;
    border-radius: 5px;
    border: none;
    padding: 0 .5rem;
    outline: none;
}

.form-btn {
    width: 100%;
    height: 40px;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--background-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.waiting {
    text-align: center;
    display: none;
    margin-top: .5rem;
}

/* مدال */
.modal-CSR {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    max-width: 1140px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    transition: all 250ms ease;
    color: var(--background-light);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
}

.modal-title {
    margin-right: 1rem;
    margin-top: 1rem;
    text-align: start;
}

.modal-boxs__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-box__textarea-container {
    border: dashed;
    max-width: 350px;
}

.modal-box__textarea {
    resize: none;
    font-family: inherit;
    display: block;
    overflow: auto;
    white-space: pre-wrap;
    padding: 5px;
    text-align: left;
    width: 350px;
    height: 400px;
    font-size: 16px;
}

.modal-box__btn-container {
    margin-top: .5rem;
    text-align: left;
}

.modal-box__btn {
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--background-light);
    border-radius: 5px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 250ms ease;
}

    .modal-box__btn:hover {
        background-color: var(--primary-color);
        color: var(--background-light);
    }

.modal-close-btn {
    background-color: var(--primary-color);
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;

}

/* ریسپانسیو */
@media (max-width: 992px) {
    .form-input {
        width: 340px;
    }
}

@media (max-width: 768px) {
    .form-input {
        width: 250px;
    }

    .modal-CSR{
        display:block;
    }
}

@media (max-width: 650px) {
    .form-input {
        width: 100%;
    }

    .CSR-Form__radioBtns {
        display: flex;
        flex-direction: column;
    }

    .CSR-Input__container {
        display: block;
    }
}

@media (max-width: 576px) {
    .modal-close-btn {
        left: 2.5rem;
        margin-top: 1rem;
        margin-left:40px;
    }
}
