/* =========================
   Teach Request Redesign
   ========================= */

.entry-content {
    background: #f6f8fb;
    padding: 24px 12px;
}

.teachrequest-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.tr-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08) !important;
}

.tr-card .card-body {
    padding: 24px 18px !important;
}

/* تیترها */
.tr-step-form h2 {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem !important;
    font-size: 1.2rem;
}

.tr-hint {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    line-height: 1.9;
    margin-bottom: 1rem;
    color: #64748b !important;
}

/* استپ‌ها */
.tr-steps {
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem !important;
}

.tr-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.tr-step.active {
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.28);
}

/*.tr-step-line {*/
/*    width: 56px;*/
/*    height: 3px;*/
/*    border-radius: 99px;*/
/*    background: linear-gradient(270deg, #0d6efd 50%, #dbe4f0 50%);*/
/*}*/

/* لیبل‌ها */
.teachrequest-wrap .form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

/* اینپوت‌ها */
.teachrequest-wrap .form-control,
.teachrequest-wrap .input-group-text {
    border-radius: 14px;
}

.teachrequest-wrap .form-control {
    min-height: 52px;
    border: 1px solid #dbe4f0;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.85rem 1rem;
    font-size: 0.96rem;
    box-shadow: none;
    transition: all 0.25s ease;
}

.teachrequest-wrap textarea.form-control {
    min-height: 130px;
    resize: vertical;
    line-height: 1.9;
}

.teachrequest-wrap .form-control::placeholder {
    color: #94a3b8;
}

.teachrequest-wrap .form-control:focus {
    background: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.12);
}

.teachrequest-wrap input[type="tel"],
.teachrequest-wrap input[name="otp"] {
    direction: ltr;
}

/* کپچا */
.teachrequest-wrap .input-group {
    border-radius: 16px;
    overflow: hidden;
}

.tr-captcha-q {
    background: #eef4ff;
    color: #0d6efd;
    border: 1px solid #dbe4f0;
    border-left: 0;
    font-weight: 800;
    min-width: 96px;
    justify-content: center;
}

.tr-captcha-refresh {
    min-width: 52px;
    border-color: #dbe4f0;
    background: #fff;
    color: #475569;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.tr-captcha-refresh:hover {
    background: #f1f5f9;
    color: #0d6efd;
    border-color: #bfd3f9;
}

/* دکمه‌ها */
.teachrequest-wrap .btn {
    min-height: 54px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: none;
}

.teachrequest-wrap .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    border: none;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.18);
}

.teachrequest-wrap .btn-primary:hover,
.teachrequest-wrap .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(13, 110, 253, 0.22);
}

.teachrequest-wrap .btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.18);
}

.teachrequest-wrap .btn-success:hover,
.teachrequest-wrap .btn-success:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(34, 197, 94, 0.22);
}

/* وضعیت لودینگ */
.tr-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* پیام‌ها */
.tr-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tr-company {
    border-radius: 16px;
    background: #f8fafc !important;
    color: #334155;
    line-height: 1.8;
}

/* موفقیت نهایی */
.tr-check {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.tr-done-message {
    color: #0f172a;
    font-weight: 700;
    line-height: 2;
    font-size: 1rem;
}

/* ولیدیشن */
.teachrequest-wrap .form-control.is-invalid,
.teachrequest-wrap .was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: none;
}

.teachrequest-wrap .form-control.is-valid,
.teachrequest-wrap .was-validated .form-control:valid {
    background-image: none;
}

/* موبایل خیلی مهم */
@media (max-width: 575.98px) {
    .entry-content {
        padding: 14px 8px;
        background: #f8fafc;
    }

    .teachrequest-wrap {
        max-width: 100%;
    }

    .tr-card {
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
    }

    .tr-card .card-body {
        padding: 18px 14px !important;
    }

    .tr-step {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .tr-step-line {
        width: 44px;
    }

    .teachrequest-wrap .form-control {
        min-height: 50px;
        font-size: 16px; /* جلوگیری از زوم iOS */
        padding: 0.8rem 0.9rem;
    }

    .teachrequest-wrap textarea.form-control {
        min-height: 120px;
    }

    .teachrequest-wrap .btn {
        min-height: 52px;
        font-size: 0.97rem;
    }

    .tr-captcha-q {
        min-width: 86px;
        font-size: 0.95rem;
        padding-right: 10px;
        padding-left: 10px;
    }

    .tr-hint,
    .tr-alert,
    .tr-company {
        font-size: 0.9rem;
    }
}

/* تبلت و دسکتاپ */
@media (min-width: 768px) {
    .entry-content {
        padding: 48px 16px;
    }

    .teachrequest-wrap {
        max-width: 620px;
    }

    .tr-card .card-body {
        padding: 34px 32px !important;
    }

    .tr-step-form h2 {
        font-size: 1.35rem;
    }
}

.tr-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    border: 1px solid #d9e7ff;
    color: #334155;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 22px;
    line-height: 2;
}

.tr-notice i {
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tr-notice p {
    font-size: 0.94rem;
    margin: 0;
}

@media (max-width: 575.98px) {
    .tr-notice {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .tr-notice p {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .tr-notice i {
        font-size: 1.1rem;
    }
}

.teachrequest-wrap .form-control:read-only
{
    background: #d3d3d3;
}