/* --- Сброс и базовая B2B-структура документа --- */
body.b2b-checkout-body {
    background-color: var(--z-green-dark, #1D3C25);
    color: var(--z-cream, #FDFBED);
    font-family: 'Codec Pro', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.checkout-wrapper {
    min-height: 100vh;
    align-items: stretch;
}

.form-section {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 2;
}

.max-width-form {
    max-width: 680px;
}

/* --- Заголовки (Наследование Benzin) --- */
.form-section h1,
.form-section h2,
.form-section h3,
.form-section h4,
.summary-section h3,
.summary-section h4 {
    font-family: 'Benzin', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.form-section h1 {
    letter-spacing: -0.02em;
}

.form-section h3 {
    font-size: 14px !important;
    letter-spacing: 0.05em;
}

/* --- Текстовые акценты и утилиты --- */
.text-yellow {
    color: var(--z-yellow, #FFE600) !important;
}

.font-weight-black {
    font-weight: 900;
}

/* --- Кастомные поля ввода (Inputs) --- */
.checkout-input {
    width: 100%;
    height: 64px;
    background: rgba(20, 36, 23, 0.5) !important;
    border: 1px solid rgba(253, 251, 237, 0.15) !important;
    border-radius: 16px !important;
    padding: 0 24px !important;
    color: #ffffff !important;
    font-size: 16px;
    font-family: 'Codec Pro', sans-serif;
    transition: all 0.3s ease;
}

.checkout-input:focus {
    outline: none !important;
    border-color: var(--z-yellow, #FFE600) !important;
    background: rgba(20, 36, 23, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.1) !important;
}

.checkout-input::placeholder {
    color: rgba(253, 251, 237, 0.3);
}

textarea.checkout-input {
    height: auto !important;
    padding: 16px 24px !important;
}

.form-check-input-checkout {
    background-color: transparent;
    border-color: rgba(253, 251, 237, 0.3);
}

.messenger-btn {
    background: rgba(253, 251, 237, 0.03);
    border: 1px solid rgba(253, 251, 237, 0.1);
    border-radius: 14px;
    padding: 16px;
    color: rgba(253, 251, 237, 0.6);
    cursor: pointer;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    user-select: none;
}

.messenger-btn:hover {
    background: rgba(253, 251, 237, 0.06);
    border-color: rgba(253, 251, 237, 0.2);
    color: #ffffff;
}

.messenger-radio:checked + .messenger-btn {
    border-color: var(--z-yellow, #FFE600);
    background: rgba(255, 230, 0, 0.08);
    color: var(--z-yellow, #FFE600);
    box-shadow: inset 0 0 0 1px rgba(255, 230, 0, 0.15);
}

.service-selectable {
    background: var(--card-background, rgba(20, 36, 23, 0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(253, 251, 237, 0.08);
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    position: relative;
    user-select: none;
}

.service-selectable:hover {
    transform: translateY(-4px);
    background: rgba(20, 36, 23, 0.7);
    border-color: rgba(255, 230, 0, 0.2);
}

.service-selectable.active {
    border-color: var(--z-yellow, #FFE600) !important;
    background: rgba(20, 36, 23, 0.85) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 230, 0, 0.08);
}

.service-selectable h4 {
    font-size: 12px !important;
}

.service-checkbox {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(253, 251, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-selectable:hover .service-checkbox {
    border-color: rgba(253, 251, 237, 0.4);
}

.service-selectable.active .service-checkbox {
    background: var(--z-yellow, #FFE600);
    border-color: var(--z-yellow, #FFE600);
}

.service-selectable.active .service-checkbox::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--z-dark, #1B1E1C);
    border-bottom: 2px solid var(--z-dark, #1B1E1C);
    transform: rotate(-45deg) translate(0px, -1px);
}

.summary-section {
    background: linear-gradient(135deg, rgba(20, 36, 23, 0.4) 0%, rgba(11, 21, 14, 0.8) 100%);
    border-left: 1px solid rgba(253, 251, 237, 0.05);
    padding: 60px 50px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.summary-section h3 {
    font-size: 16px !important;
    letter-spacing: -0.01em;
}

.summary-section h4 {
    font-size: 13px !important;
    line-height: 1.4;
}

.sticky-inner {
    max-width: 420px;
}

.summary-franchise-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
}

.summary-section .glass-card {
    background: var(--card-background, rgba(20, 36, 23, 0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(253, 251, 237, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.summary-section .glass-card:hover {
    transform: none !important;
    border-color: rgba(253, 251, 237, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background: var(--card-background, rgba(20, 36, 23, 0.5)) !important;
}

.paushal-badge {
    font-size: 12px;
    font-weight: 900;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.summary-total-row {
    border-color: rgba(253, 251, 237, 0.1) !important;
}

.summary-forecast-card {
    background: rgba(0, 191, 165, 0.02) !important;
    border-color: rgba(0, 191, 165, 0.12) !important;
}

.summary-forecast-card h4 {
    font-size: 11px !important;
    color: #00BFA5;
    letter-spacing: 0.05em;
}

.btn-checkout-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    padding: 0 40px;
    background: var(--z-yellow, #FFE600);
    color: var(--z-dark, #1B1E1C);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.2);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-checkout-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(255, 230, 0, 0.3);
}

.has-error .checkout-input {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1) !important;
}

.has-error .help-block {
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    padding-left: 4px;
}

@media (max-width: 991.98px) {
    .checkout-wrapper {
        flex-direction: column;
    }
    .summary-section {
        position: static;
        height: auto;
        padding: 40px 20px;
        border-left: none;
        border-top: 1px solid rgba(253, 251, 237, 0.08);
        order: 1;
    }
    .form-section {
        padding: 40px 20px;
    }
}

.np-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--z-green-dark);
    border: 1px solid rgba(253, 251, 237, 0.08);
    border-radius: 12px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.np-dropdown {
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(253, 251, 237, 0.08);
}

.radio-details.hidden {
    display: none !important;
}

.autocomplete-item:hover {
    background-color: rgba(20, 36, 23, 0.5);
}

.delivery-option.selected .method-card, .payment-option.selected .method-card {
    background-color: var(--z-green-dark);
    border-color: var(--z-yellow);
    color: var(--z-yellow);
}

.method-card span {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.6;
}

.delivery-option.selected .method-card span, .delivery-option.selected .method-card svg, .payment-option.selected .method-card span {
    opacity: 1;
    color: var(--z-yellow);
}

.payment-note {
    background-color: var(--card-background);
    border-radius: 16px;
    font-size: 13px;
    color: white;
}