/* ==================== فرم ==================== */
#signupForm {
    position: relative;
    z-index: 1;
}

/* ==================== گروه ورودی‌ها و برچسب‌ها ==================== */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a3c5c;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.input-group:focus-within .field-label {
    color: #0d7a5e;
    font-weight: 700;
}

/* ==================== استایل عمومی ورودی‌ها (بدون آیکون) ==================== */
.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-input);
    border: 1.5px solid rgba(180, 160, 130, 0.4);
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a1a;
    font-size: 14.5px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 400;
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.3px;
}

.input-group input::placeholder {
    color: rgba(100, 80, 60, 0.5);
    font-weight: 100;
}

.input-group input:focus,
.input-group select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13, 122, 94, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==================== سلکت جنسیت ==================== */
.gender-select-wrapper {
    position: relative;
    width: 100%;
}

.gender-select-wrapper select {
    padding: 14px 16px 14px 40px;
    /* فضای سمت چپ برای فلش */
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d7a5e;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s;
}

.gender-select-wrapper select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ==================== تاریخ تولد ==================== */
.date-group input {
    cursor: pointer;
    direction: ltr;
    text-align: right;
}

/* ==================== آپلود فایل ==================== */
.file-group input[type="file"] {
    padding: 12px 16px;
    cursor: pointer;
}

.file-hint {
    display: block;
    font-size: 10px;
    color: #7a6858;
    margin-top: 5px;
    font-weight: 100;
}

/* ==================== دکمه ارسال ==================== */
button[type="submit"] {
    width: 100%;
    margin-top: 14px;
    padding: 15px;
    border: none;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1a6d50 0%, #0d8a6e 30%, #0f9b7a 60%, #0a6d52 100%);
    box-shadow: 0 6px 22px rgba(10, 90, 60, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    border: 1.5px solid rgba(200, 168, 78, 0.4);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(10, 90, 60, 0.45), 0 0 0 5px rgba(200, 168, 78, 0.12);
    border-color: rgba(200, 168, 78, 0.7);
    background: linear-gradient(135deg, #1e7d5c 0%, #0f9b7a 30%, #15a37a 60%, #0d7a5e 100%);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

/* ==================== پیام‌ها ==================== */
#message {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    min-height: 22px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

/* ==================== پاپ‌آپ ==================== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 20, 40, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: linear-gradient(180deg, #fefaf5 0%, #fdf6ed 100%);
    color: #1a1a1a;
    padding: 32px 28px 24px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1.5px rgba(200, 168, 78, 0.4);
    position: relative;
    border: 2px solid rgba(200, 168, 78, 0.35);
}

.popup-content p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.popup-content button {
    margin-top: 18px;
    padding: 11px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d8a6e, #0a6d52);
    color: white;
    cursor: pointer;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.popup-content button:hover {
    background: linear-gradient(135deg, #0f9b7a, #0d7a5e);
    transform: translateY(-2px);
}

/* ==================== واکنش‌گرایی ==================== */
@media (max-width: 600px) {
    .card {
        padding: 42px 20px 30px;
        max-width: 92vw;
    }

    .dome-wrapper {
        top: -65px;
    }

    .dome-body {
        width: 90px;
        height: 58px;
    }

    .dome-drum {
        width: 68px;
        height: 18px;
    }

    .header h1 {
        font-size: 21px;
    }

    .input-group input,
    .input-group select {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    button[type="submit"] {
        padding: 13px;
        font-size: 15px;
    }
}

/* ==================== راهنمای پرداخت ==================== */
.payment-info {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 16px;
    margin: 10px 0 20px;
    border: 1px dashed rgba(200, 168, 78, 0.6);
    font-size: 13px;
    color: #2c2c2c;
    line-height: 1.8;
    text-align: center;
}

.payment-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a3c5c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-info h4::before {
    content: '💳';
    font-size: 18px;
}

.payment-info p {
    margin: 6px 0;
    font-weight: 400;
}

.payment-info strong {
    color: #0d7a5e;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==================== استایل چک‌باکس‌های انتخاب دوره ==================== */
.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 12px 40px 12px 14px;   /* فضای کافی در سمت راست برای چک‌باکس */
    margin-bottom: 10px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(200,168,78,0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #2c2c2c;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.checkbox-label:hover {
    background: rgba(255,255,255,0.95);
    border-color: #0d7a5e;
    box-shadow: 0 4px 12px rgba(13,122,94,0.1);
}

/* مخفی‌کردن چک‌باکس اصلی */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* نشان‌دهندهٔ چک‌باکس سفارشی (مربع گرد) */
.checkbox-label .checkmark {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: white;
    border: 2px solid rgba(200,168,78,0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: #0d7a5e;
}

.checkbox-label input:checked ~ .checkmark {
    background: #0d7a5e;
    border-color: #0d7a5e;
    box-shadow: 0 0 0 3px rgba(13,122,94,0.2);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark::after {
    display: block;
}

/* استایل توضیحات (زمان) */
.course-time {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #7a6858;
    background: rgba(13,122,94,0.05);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1.4;
}

/* مجموع هزینه */
.total-cost {
    font-weight: bold;
    margin-top: 12px;
    color: #0d7a5e;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ==================== دکمهٔ مدرن برای جابه‌جایی بین صفحات ==================== */
.switch-link {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5a4a38;
}

.modern-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0d7a5e 0%, #0a6d52 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(10, 90, 60, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 168, 78, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-btn:hover {
    background: linear-gradient(135deg, #0f9b7a 0%, #0d8a6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 90, 60, 0.35), 0 0 0 4px rgba(200, 168, 78, 0.15);
    border-color: #c8a84e;
}

.modern-btn:active {
    transform: translateY(1px);
}