/* ------------------------------------------------ */
/* ✅ LOCAL VAZIRMATN FONTS */
/* ------------------------------------------------ */
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

/* ------------------------------------------------ */
/* RESET & BODY */
/* ------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("images/signup.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    font-family: "Vazirmatn", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    padding: 40px 0;
}

/* ------------------------------------------------ */
/* CARD */
/* ------------------------------------------------ */
.signup-container {
    background: white;
    padding: 40px;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.form-title-container {
    text-align: center;
    margin-bottom: 25px;
}

.form-title-container h1 {
    font-weight: 600;
}

/* ------------------------------------------------ */
/* FORM ELEMENTS */
/* ------------------------------------------------ */
.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-size: 14px;
}

input[type="text"], input[type="email"], input[type="password"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: "Vazirmatn", sans-serif;
    transition: .25s;
}

input::placeholder {
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    color: #aaa;
}

input[dir="ltr"] {
    text-align: left;
}

input[dir="ltr"]::placeholder {
    text-align: left;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
    outline: none;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ------------------------------------------------ */
/* CHECKBOX */
/* ------------------------------------------------ */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.checkbox-group a {
    color: #4c5be7;
    text-decoration: underline;
    font-weight: 500;
}

/* ------------------------------------------------ */
/* ERRORS */
/* ------------------------------------------------ */
.error-message {
    color: #e63946;
    font-size: 12px;
    min-height: 16px;
    margin-top: 4px;
}

/* ------------------------------------------------ */
/* BUTTONS & MODALS */
/* ------------------------------------------------ */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: white;
    font-size: 16px;
    font-family: "Vazirmatn", sans-serif;
    cursor: pointer;
    margin-top: 18px;
    transition: .3s;
}

button:hover { background: #5563d6; }
button:disabled { background: #bbb; cursor: not-allowed; }

.modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    justify-content: center; align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: min(900px, 95vw);
    height: min(90vh, 700px);
    border-radius: 12px;
    position: relative;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    animation: fadeIn .25s ease-out;
}

.modal-header {
    flex: 0 0 auto;
    position: relative;
    padding: 20px 56px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    z-index: 2;
}

.modal-header h2 {
    margin: 0;
    text-align: center;
    font-size: 22px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 20px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    direction: ltr;
}

.modal-body {
    padding: 22px 28px;
    direction: rtl;
    text-align: right;
}

.modal-body p,
.modal-body li {
    line-height: 2;
    text-align: justify;
}

.modal-body ul {
    padding-right: 22px;
    margin-top: 12px;
}

.modal-body li {
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Add to bottom of signup.css */
.hidden {
    display: none !important;
}

.secondary-btn {
    background: #f1f3f5;
    color: #495057;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        height: 92vh;
        border-radius: 10px;
    }

    .modal-header {
        padding: 16px 46px 14px 18px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-close {
        top: 14px;
        left: 16px;
        font-size: 30px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 14px;
        line-height: 1.9;
    }
}