/* ========================================================= */
/* CUSTOM STYLES FOR ITA REGISTRATION FORM - LTR */
/* ========================================================= */

/* ===== کارت‌های بخش‌های مختلف ===== */
.section-card {
    background: #ffffff;
    border-radius: var(--cardBorderRadius);
    padding: 25px 30px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(var(--colorPrimaryRGB), 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.section-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--colorPrimaryRGB), 0.12);
}

/* ===== هدر بخش‌ها ===== */
.section-header {
    display: flex;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(var(--colorPrimaryRGB), 0.08);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--colorSecondary);
    border-radius: 2px;
}

.section-header .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(var(--colorSecondaryRGB), 0.12);
    color: var(--colorSecondary);
    border-radius: 10px;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.section-card:hover .section-header .section-icon {
    background: var(--colorSecondary);
    color: #fff;
    transform: scale(1.05);
}

.section-header .section-title-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--colorPrimary);
    margin: 0;
    letter-spacing: 0.5px;
}

.section-header .section-badge {
    margin-left: auto;
    background: rgba(var(--colorPrimaryRGB), 0.06);
    color: var(--colorPrimary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* ===== بخش‌های با رنگ‌های مختلف ===== */
.section-card.personal {
    border-top: 4px solid #4a90d9;
}
.section-card.personal .section-icon {
    background: rgba(74, 144, 217, 0.12);
    color: #4a90d9;
}
.section-card.personal:hover .section-icon {
    background: #4a90d9;
    color: #fff;
}

.section-card.contact {
    border-top: 4px solid #27ae60;
}
.section-card.contact .section-icon {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}
.section-card.contact:hover .section-icon {
    background: #27ae60;
    color: #fff;
}

.section-card.education {
    border-top: 4px solid #8e44ad;
}
.section-card.education .section-icon {
    background: rgba(142, 68, 173, 0.12);
    color: #8e44ad;
}
.section-card.education:hover .section-icon {
    background: #8e44ad;
    color: #fff;
}

.section-card.program {
    border-top: 4px solid #e67e22;
}
.section-card.program .section-icon {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22;
}
.section-card.program:hover .section-icon {
    background: #e67e22;
    color: #fff;
}

.section-card.additional {
    border-top: 4px solid #3498db;
}
.section-card.additional .section-icon {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
}
.section-card.additional:hover .section-icon {
    background: #3498db;
    color: #fff;
}

.section-card.disclaimer {
    border-top: 4px solid #e74c3c;
}
.section-card.disclaimer .section-icon {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}
.section-card.disclaimer:hover .section-icon {
    background: #e74c3c;
    color: #fff;
}

.section-card.signature {
    border-top: 4px solid #2c3e50;
}
.section-card.signature .section-icon {
    background: rgba(44, 62, 80, 0.12);
    color: #2c3e50;
}
.section-card.signature:hover .section-icon {
    background: #2c3e50;
    color: #fff;
}

/* ===== SECTION TITLE (سربرگ اصلی فرم) ===== */
.form-main-title {
    text-align: center;
    padding: 20px 0 30px;
    margin-bottom: 30px;
    border-bottom: 2px dashed rgba(var(--colorPrimaryRGB), 0.12);
    position: relative;
}

.form-main-title .main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 15px;
}

.form-main-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--colorPrimary);
    margin: 0 0 8px;
}

.form-main-title .subtitle {
    color: rgba(var(--colorPrimaryRGB), 0.6);
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}

/* ===== استایل‌های فرم ===== */
.form-label {
    font-weight: 600;
    color: var(--colorPrimaryDark);
    margin-bottom: 4px;
    font-size: 14px;
}

.form-label .required-star {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control,
.form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--cardBorderRadiusSM);
    padding: 10px 14px;
    font-size: 14px;
    transition: 0.2s;
    background: #fafcff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--colorPrimary);
    box-shadow: 0 0 0 3px rgba(var(--colorPrimaryRGB), 0.12);
    background: #fff;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(var(--colorPrimaryRGB), 0.3);
}

.form-check-input:checked {
    background-color: var(--colorPrimary);
    border-color: var(--colorPrimary);
}

.form-check-label {
    font-weight: 400;
    color: #2d3748;
    font-size: 14px;
}

/* ===== دکمه ثبت‌نام ===== */
.btn-primary-custom {
    background: var(--colorPrimary);
    color: #fff;
    border: none;
    padding: 14px 50px;
    border-radius: var(--cardBorderRadiusSM);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--colorPrimaryRGB), 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    background: var(--colorPrimaryDark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--colorPrimaryRGB), 0.35);
    color: #fff;
}

.btn-primary-custom i {
    font-size: 20px;
}

/* ===== جعبه‌های شرایط ===== */
.table-conditions {
    background: #f8fafc;
    border-radius: var(--cardBorderRadiusSM);
    padding: 20px 25px;
    border-left: 4px solid var(--colorSecondary);
    margin-top: 10px;
}

.table-conditions ul {
    padding-left: 0;
    margin-bottom: 0;
}

.table-conditions ul li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--colorText);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}

.table-conditions ul li i {
    color: var(--colorSecondary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===== عنوان‌های بخش Terms ===== */
.terms-group {
    margin-bottom: 18px;
}

.terms-group:last-child {
    margin-bottom: 0;
}

.terms-group .terms-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--colorPrimaryDark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(var(--colorPrimaryRGB), 0.1);
}

.terms-group .terms-title i {
    color: var(--colorSecondary);
    font-size: 18px;
}

.terms-group ul {
    padding-left: 0;
    margin-bottom: 0;
}

.terms-group ul li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--colorText);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}

.terms-group ul li i {
    color: var(--colorSecondary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.terms-group ul li strong {
    color: var(--colorPrimaryDark);
}

/* ===== جعبه امضا ===== */
.signature-box {
    background: #f8fafc;
    border-radius: var(--cardBorderRadiusSM);
    padding: 25px 30px;
    border: 2px dashed rgba(var(--colorPrimaryRGB), 0.12);
}

.signature-box .form-control {
    background: #fff;
}

/* ===== آیکن‌های کمکی ===== */
.text-secondary-custom {
    color: var(--colorSecondary);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .box {
        padding: 20px 16px;
    }
    
    .section-card {
        padding: 18px 16px 22px;
    }
    
    .section-header .section-title-text {
        font-size: 16px;
    }
    
    .section-header .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 8px;
    }
    
    .form-main-title h2 {
        font-size: 22px;
    }
    
    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .table-conditions {
        padding: 15px;
    }
    
    .signature-box {
        padding: 18px;
    }
    
    .terms-group .terms-title {
        font-size: 14px;
    }
    
    .terms-group ul li {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .section-card {
        padding: 14px 12px 18px;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .section-header .section-badge {
        margin-left: 0;
    }
}