/* متغیرهای رنگی پایه */
:root {
    --c-primary: #BE7241;
    --c-gold: #C99E33;
    --c-dark-blue: #0A244F;
    --c-beige: #EAE3D3;
    --c-light: #FDF9EE;
}

/* ساختار کلی صفحه */
.hc-auth-wrapper.hc-auth-installment-page {
    font-family: Tahoma, Arial, sans-serif;
    color: var(--c-dark-blue);
    line-height: 1.8;
    padding: 1.5rem;
    border-radius: 24px;
}

/* هدر اصلی */
.hc-auth-inst-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.hc-auth-hero-text-box {
    flex: 1;
}

.hc-auth-hero-title {
    color: var(--c-dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hc-auth-highlight {
    color: var(--c-primary);
}

.hc-auth-hero-desc {
    color: #555;
    font-size: 1rem;
}

.hc-auth-hero-img-box {
    flex: 1;
    width: 100%;
}

.hc-auth-square-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 24px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* بنر پارتنر (اسنپ پی) */
.hc-auth-partner-banner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--c-dark-blue);
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.hc-auth-partner-content {
    flex: 1;
}

.hc-auth-partner-title {
    color: var(--c-gold);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.hc-auth-partner-text {
    font-size: 0.95rem;
    color: var(--c-light);
}

.hc-auth-partner-img-wrapper {
    flex: 1;
    width: 100%;
}

.hc-auth-rect-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* بخش آکاردئون */
.hc-auth-section-title {
    text-align: center;
    color: var(--c-dark-blue);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.hc-auth-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-auth-acc-item {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid var(--c-beige);
    transition: all 0.3s ease;
}

.hc-auth-acc-item.hc-auth-active {
    border-color: var(--c-primary);
    box-shadow: 0 6px 15px rgba(190, 114, 65, 0.1);
}

.hc-auth-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.hc-auth-acc-num {
    background-color: var(--c-beige);
    color: var(--c-dark-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* شماره‌های کوچکتر در آکاردئون */
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: background-color 0.3s;
}

.hc-auth-active .hc-auth-acc-num {
    background-color: var(--c-primary);
    color: #ffffff;
}

.hc-auth-acc-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--c-dark-blue);
}

.hc-auth-acc-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-right: 1rem;
}

.hc-auth-acc-icon::before,
.hc-auth-acc-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.hc-auth-acc-icon::before {
    top: 9px; left: 0; width: 20px; height: 2px;
}
.hc-auth-acc-icon::after {
    top: 0; left: 9px; width: 2px; height: 20px;
}

/* حالت فعال آیکون (تبدیل + به -) */
.hc-auth-active .hc-auth-acc-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.hc-auth-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.hc-auth-acc-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

/* انیمیشن محو شدن (مشترک) */
.hc-auth-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.hc-auth-fade-up.hc-auth-visible {
    opacity: 1;
    transform: translateY(0);
}

/* واکنش‌گرایی دسکتاپ */
@media (min-width: 768px) {
    .hc-auth-inst-hero,
    .hc-auth-partner-banner {
        flex-direction: row;
        padding: 3rem;
    }
    .hc-auth-hero-title {
        font-size: 2.2rem;
    }
    .hc-auth-acc-title {
        font-size: 1.2rem;
    }
}
