/* ═══════════════════════════════════════════════════════════
   ثبت‌نام دانشجویان دوره‌های آموزشی ارشیا
   پالت سازمانی: سرمه‌ای #352070 | طلایی #EEBB66 | فیروزه‌ای #1ABC9C
   ═══════════════════════════════════════════════════════════ */

.acr-wrap {
    direction: rtl;
    font-family: Vazirmatn, sans-serif;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}

/* ─── هدر ─── */
.acr-hero {
    background: linear-gradient(135deg, #352070 0%, #4A2D8A 100%);
    border-radius: 20px;
    padding: 38px 32px;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.acr-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(238, 187, 102, 0.12);
}
.acr-hero-title {
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 900;
    color: #fff;
}
.acr-hero-sub {
    margin: 0 auto;
    max-width: 640px;
    font-size: 14.5px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
}

/* ─── چیدمان دو ستونه ─── */
.acr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* ─── فرم ─── */
.acr-form {
    background: #fff;
    border: 1px solid #e6e1f2;
    border-radius: 18px;
    padding: 28px 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    box-shadow: 0 6px 24px rgba(53, 32, 112, 0.06);
}
.acr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.acr-field-full { grid-column: 1 / -1; }
.acr-field label {
    font-size: 13.5px;
    font-weight: 700;
    color: #352070;
}
.acr-req { color: #d64545; }
.acr-hint {
    font-size: 11.5px;
    color: #9a94ad;
}

.acr-form input[type="text"],
.acr-form input[type="tel"],
.acr-form input[type="email"],
.acr-form select,
.acr-form textarea {
    width: 100%;
    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #faf9fd;
    border: 1px solid #ddd6ee;
    border-radius: 10px;
    padding: 11px 13px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.acr-form textarea { resize: vertical; min-height: 96px; line-height: 1.9; }
.acr-form select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23352070' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 34px;
}
.acr-form input:focus,
.acr-form select:focus,
.acr-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: #352070;
    box-shadow: 0 0 0 3px rgba(53, 32, 112, 0.12);
}
.acr-form input::placeholder,
.acr-form textarea::placeholder { color: #b3adc4; }

.acr-consent { margin-top: 2px; }
.acr-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    font-weight: 400;
    color: #4a4a5c;
    line-height: 1.9;
    cursor: pointer;
}
.acr-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: #352070;
    flex: 0 0 auto;
    cursor: pointer;
}
.acr-check a { color: #352070; font-weight: 700; }

.acr-form-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px dashed #e6e1f2;
    margin-top: 4px;
}
.acr-form-note {
    margin: 0;
    font-size: 12.5px;
    color: #7a7490;
}
.acr-form-note strong { color: #352070; direction: ltr; display: inline-block; }

/* ─── دکمه‌ها ─── */
.acr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 11px;
    padding: 11px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
    line-height: 1.6;
}
.acr-btn-primary {
    background: #352070;
    color: #fff;
    border-color: #352070;
}
.acr-btn-primary:hover {
    background: #4A2D8A;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(53, 32, 112, 0.24);
}
.acr-btn-ghost {
    background: #fff;
    color: #352070;
    border-color: #d9d0ec;
}
.acr-btn-ghost:hover {
    background: #f0ebfa;
    border-color: #352070;
    color: #352070;
}
.acr-btn-lg { padding: 13px 26px; font-size: 15px; }
.acr-btn[disabled],
.acr-btn.is-loading {
    opacity: 0.72;
    cursor: progress;
    transform: none !important;
    box-shadow: none !important;
}

.acr-btn-spin {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: acr-spin 0.7s linear infinite;
}
.acr-btn.is-loading .acr-btn-spin { display: inline-block; }
@keyframes acr-spin { to { transform: rotate(360deg); } }

/* ─── پیام نتیجه ─── */
.acr-alert {
    margin-top: 16px;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
    border: 1px solid;
}
.acr-alert--success {
    background: #eefaf4;
    border-color: #b6e6cd;
    color: #14663f;
}
.acr-alert--error {
    background: #fdeeee;
    border-color: #f3c2c2;
    color: #a02c2c;
}

/* ─── ستون کناری ─── */
.acr-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.acr-side-card {
    background: #fff;
    border: 1px solid #e6e1f2;
    border-radius: 16px;
    padding: 22px 22px;
}
.acr-side-card--dark {
    background: linear-gradient(135deg, #352070 0%, #2a1a5a 100%);
    border-color: #2a1a5a;
    color: #fff;
}
.acr-side-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #352070;
    padding-bottom: 9px;
    border-bottom: 2px solid #f0ebfa;
}
.acr-side-card--dark .acr-side-title {
    color: #EEBB66;
    border-bottom-color: rgba(238, 187, 102, 0.28);
}
.acr-side-text {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #4a4a5c;
}

.acr-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: acr-step;
}
.acr-steps li {
    position: relative;
    padding: 8px 34px 8px 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #3a3a4a;
}
.acr-step-num {
    position: absolute;
    right: 0;
    top: 9px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #f0ebfa;
    color: #352070;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.acr-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}
.acr-benefits li {
    position: relative;
    padding: 7px 22px 7px 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}
.acr-benefits li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 7px;
    color: #1ABC9C;
    font-weight: 800;
}

/* ─── گرید دوره‌ها ─── */
.acr-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.acr-course-card {
    background: #fff;
    border: 1px solid #e6e1f2;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.acr-course-card:hover {
    transform: translateY(-3px);
    border-color: #c9bdea;
    box-shadow: 0 12px 30px rgba(53, 32, 112, 0.12);
}
.acr-course-card.is-full { opacity: 0.82; }
.acr-course-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f0ebfa;
    overflow: hidden;
}
.acr-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acr-course-type {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: #EEBB66;
    color: #352070;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}
.acr-course-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.acr-course-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #352070;
    line-height: 1.7;
}
.acr-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.acr-meta-item {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0ebfa;
    color: #4a3d72;
}
.acr-meta-seats {
    background: #e8f8f3;
    color: #0f6b52;
}
.acr-meta-enrolled {
    background: #fdf1dc;
    color: #7a5410;
}
.acr-course-excerpt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: #55526a;
    flex: 1;
}
.acr-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}
.acr-course-actions .acr-btn {
    flex: 1 1 auto;
    padding: 9px 14px;
    font-size: 13px;
}
.acr-empty {
    background: #faf9fd;
    border: 1px dashed #d9d0ec;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    color: #7a7490;
    font-size: 14px;
}

/* ─── واکنش‌گرایی ─── */
@media (max-width: 960px) {
    .acr-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .acr-wrap { padding: 20px 12px 40px; }
    .acr-hero { padding: 28px 20px; border-radius: 16px; }
    .acr-hero-title { font-size: 21px; }
    .acr-form { grid-template-columns: 1fr; padding: 20px 18px; border-radius: 14px; }
    .acr-form-foot { flex-direction: column; align-items: stretch; }
    .acr-form-foot .acr-btn { width: 100%; }
    .acr-course-grid { grid-template-columns: 1fr; }
}

/* ─── نشان ساعت و ظرفیت در صفحه دوره ─── */
.acr-course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.acr-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 20px;
    background: #f0ebfa;
    color: #352070;
    border: 1px solid #e2d9f4;
}
.acr-course-badge--seats {
    background: #e8f8f3;
    color: #0f6b52;
    border-color: #bde5d7;
}
.acr-course-badge--full {
    background: #fdeeee;
    color: #a02c2c;
    border-color: #f3c2c2;
}

/* ─── عنوان بخش فهرست دوره‌ها ─── */
.acr-section-title {
    margin: 40px 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: #352070;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ebfa;
}

/* ─── ستون کناری صفحه دوره: ساعت و ظرفیت ─── */
.ar-course-side-facts {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    border: 1px solid #e6e1f2;
    border-radius: 12px;
    overflow: hidden;
}
.ar-course-side-facts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0ebfa;
}
.ar-course-side-facts li:last-child { border-bottom: none; }
.ar-course-side-facts li:nth-child(even) { background: #faf9fd; }
.ar-course-fact-label { color: #7a7490; }
.ar-course-fact-value { font-weight: 800; color: #352070; }

/* ─── کارت اطلاعات ورود پس از ثبت‌نام ─── */
.acr-credentials {
    margin: 18px 0 0;
    padding: 20px 22px;
    background: #faf9fd;
    border: 1px solid #e6e1f2;
    border-right: 4px solid #1ABC9C;
    border-radius: 14px;
}
.acr-credentials__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #352070;
}
.acr-credentials__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e6e1f2;
}
.acr-credentials__row:last-of-type { border-bottom: none; }
.acr-credentials__label {
    font-size: 13px;
    color: #7a7490;
}
.acr-credentials__value {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e6e1f2;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #352070;
    letter-spacing: 1px;
    direction: ltr;
    user-select: all;
}
.acr-credentials__note {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.9;
    color: #8a5a1a;
    background: #fff7e8;
    border-radius: 8px;
    padding: 10px 12px;
}
.acr-credentials__btn {
    display: inline-block;
    margin-top: 16px;
    padding: 11px 26px;
    background: #352070;
    color: #fff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease;
}
.acr-credentials__btn:hover { background: #4A2D8A; }

@media (max-width: 560px) {
    .acr-credentials__row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .acr-credentials__value { width: 100%; text-align: center; }
}
