/* Стили для страницы «Кредит» */

.credit-page {
    background-color: #f9f9f9;
}

.credit-page-container {
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Секция преимуществ */
.credit-advantages {
    text-align: center;
    margin-bottom: 80px;
}

.credit-advantages h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-text-main);
}

.credit-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.credit-adv-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.credit-adv-card:hover {
    transform: translateY(-5px);
}

.credit-adv-card img {
    width: 80px;
    height: auto;
    margin-bottom: 25px;
}

.credit-adv-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text-main);
    line-height: 1.3;
}

.credit-adv-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* Секция «Как воспользоваться» */
.credit-steps {
    text-align: center;
    margin-bottom: 80px;
}

.credit-steps h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.credit-steps-subtitle {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.credit-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.credit-step-item {
    position: relative;
}

.credit-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.credit-step-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.credit-step-item p {
    font-size: 14px;
    color: #777;
}

/* Форма (1:1 копия логики из Гарантии) */
.credit-form-wrap {
    padding: 60px 0;
    text-align: center;
    background-color: #E9E9E9;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.credit-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
}

.credit-form-container h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2em;
}

.credit-form-container .subtitle {
    color: #777;
    margin-bottom: 30px;
    display: block;
    font-size: 14px;
}

/* CF7 Custom Layout */
.cf_kredit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

.cf_kredit_item {
    flex: 1;
    min-width: 200px;
}

/* Сброс лишних отступов CF7 */
.credit-form-container p,
.credit-form-container div {
    margin: 0;
    padding: 0;
}

.input_credit {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box;
}

.submit_credit {
    background-color: #333 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    padding: 15px 30px !important;
    border: none !important;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.submit_credit:hover {
    background-color: #000 !important;
}

/* Исправление радио-кнопок и чекбоксов */
.wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.wpcf7-list-item {
    margin: 0;
    display: block;
}

.wpcf7-list-item label {
    font-weight: 400 !important;
    cursor: pointer;
}

.social-icons-mini {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.social-icons-mini img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-icons-mini a:hover img {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 991px) {
    .credit-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credit-steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .credit-advantages-grid {
        grid-template-columns: 1fr;
    }

    .credit-form-container .cf_kredit {
        grid-template-columns: 1fr;
    }

    .credit-form-container .submit_credit {
        grid-column: span 1;
    }

    .credit-form-container {
        padding: 30px 20px;
    }
}