/**
 * Стили страницы Request (форма заявки)
 * Файл: /wp-content/themes/smc/assets/css/request.css
 * Версия файла: 1.0.0
 * Author: NUVREN
 */

/* ============================================================
   1. ОБЩИЙ ФОН И ОБЕРТКА
   ============================================================ */

.smc-request {
    padding: 4.0rem 0 3.6rem;
    background-color: #f9fafb;
}

.smc-request-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

/* ============================================================
   2. ЗАГОЛОВОК СТРАНИЦЫ
   ============================================================ */

.smc-page-header.smc-request-header {
    max-width: 720px;
    margin: 0 auto 2.4rem;
    text-align: left;
}

.smc-page-title {
    font-size: 2.05rem;
    font-weight: 800;
    margin: 0 0 0.55rem;
}

.smc-page-subtitle {
    font-size: 1.02rem;
    color: var(--smc-color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   3. КАРТОЧКА ФОРМЫ
   ============================================================ */

.smc-request-form {
    background-color: #ffffff;
    border-radius: var(--smc-radius-lg);
    border: 1px solid var(--smc-color-border-soft);
    box-shadow: var(--smc-shadow-md);
    padding: 2.1rem 2rem 2.4rem;
}

/* Секции формы */

.smc-form-section + .smc-form-section {
    margin-top: 1.9rem;
    padding-top: 1.7rem;
    border-top: 1px solid var(--smc-color-border-soft);
}

.smc-form-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

/* ============================================================
   4. СЕТКИ И ПОЛЯ
   ============================================================ */

.smc-grid {
    display: grid;
    gap: 1.2rem;
}

.smc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smc-form-col-2 {
    grid-column: span 2;
}

.smc-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.smc-form-label {
    font-weight: 600;
    font-size: 0.94rem;
}

.smc-input,
.smc-textarea,
.smc-select {
    width: 100%;
}

/* ============================================================
   5. ADD-ONS
   ============================================================ */

.smc-addons {
    margin-top: 1.1rem;
}

.smc-addons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 1rem;
}

.smc-addons-grid label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--smc-color-text-muted-strong, #374151);
}

.smc-addons-grid input[type="checkbox"] {
    margin-top: 0.1rem;
}

/* ============================================================
   6. БЛОК ПРИМЕРНОЙ СТОИМОСТИ
   ============================================================ */

.smc-estimate {
    margin-top: 2.2rem;
    padding: 1.45rem 1.5rem 1.35rem;
    border-radius: var(--smc-radius-lg);
    border: 1px solid var(--smc-color-border-soft);
    background-color: #f3f4ff;
}

.smc-estimate-title {
    margin: 0 0 0.55rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.smc-estimate-main {
    margin: 0 0 0.45rem;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.5;
}

.smc-estimate-main-text {
    margin-left: 0.0rem;
}

#smc-estimate-amount {
    font-weight: 700;
    font-size: 1.08rem;
}

#smc-estimate-hours {
    font-weight: 600;
}

.smc-estimate-note {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    color: var(--smc-color-text-muted);
    line-height: 1.5;
}

.smc-estimate-legal {
    margin: 0;
    font-size: 0.82rem;
    color: var(--smc-color-text-muted);
    line-height: 1.55;
}

/* ============================================================
   7. СТАТУС И КНОПКА
   ============================================================ */

.smc-form-status {
    margin-top: 1.3rem;
    font-size: 0.9rem;
    min-height: 1.1rem;
}

.smc-form-status-info {
    color: #2563eb;
}

.smc-form-status-success {
    color: #16a34a;
}

.smc-form-status-error {
    color: #dc2626;
}

.smc-form-actions {
    margin-top: 1.8rem;
}

.smc-btn.smc-btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   8. АДАПТИВ
   ============================================================ */

@media (max-width: 1024px) {
    .smc-request-wrapper {
        max-width: 900px;
    }

    .smc-addons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .smc-request {
        padding: 3.4rem 0 3.4rem;
    }

    .smc-request-form {
        padding: 1.7rem 1.35rem 2.0rem;
        box-shadow: var(--smc-shadow-sm);
    }

    .smc-grid-2,
    .smc-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .smc-form-col-2 {
        grid-column: auto;
    }

    .smc-addons-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .smc-page-title {
        font-size: 1.85rem;
    }

    .smc-estimate {
        margin-top: 2.0rem;
        padding: 1.3rem 1.2rem 1.25rem;
    }
}