/**
 * LP RHiD - Estilos do Configurador de Planos
 * Araponto / Control iD
 * ===================================
 */

/* ========== SEÇÃO DO CONFIGURADOR ========== */
.kit-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.kit-header {
    text-align: center;
    margin-bottom: 3rem;
}

.kit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.kit-badge svg {
    width: 20px;
    height: 20px;
}

.kit-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.kit-title span {
    color: var(--primary-red);
}

.kit-subtitle {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== LAYOUT DO CONFIGURADOR ========== */
.kit-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.kit-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ========== STEP CARD - PREMIUM MINIMAL ========== */
.kit-step {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
    scroll-margin-top: 100px; /* Compensar header fixo */
}

.kit-step-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.kit-step-content {
    padding: 0 1.25rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

/* Step ativo (expandido) */
.kit-step.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 1px var(--primary-red);
    overflow: visible;
}

.kit-step.active .kit-step-content {
    max-height: 1200px; /* Aumentado para caber os cards */
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 2rem;
    overflow: visible;
}

.kit-step.active .kit-step-chevron {
    transform: rotate(180deg);
}

.kit-step.active .kit-step-number {
    background: var(--primary-red);
    color: #fff;
}

/* Step preenchido (completed) */
.kit-step.completed {
    border-color: #22c55e;
}

.kit-step.completed .kit-step-number {
    background: #22c55e;
    color: #fff;
}

/* Step bloqueado (waiting) */
.kit-step.locked {
    opacity: 0.4;
    pointer-events: none;
}

/* Chevron */
.kit-step-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.kit-step.completed .kit-step-chevron,
.kit-step.locked .kit-step-chevron {
    display: none;
}

/* Valor selecionado (só aparece quando completed) */
.kit-step-value {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    display: none;
}

.kit-step.completed .kit-step-value {
    display: block;
}

/* Número do step */
.kit-step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.kit-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.kit-step.locked .kit-step-title {
    color: #94a3b8;
}

/* Descrição dentro do step */
.kit-step-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Botão Continuar - Minimalista */
.kit-step-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    padding: 0.625rem 1rem;
    background: transparent;
    color: var(--primary-red);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--primary-red);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kit-step-continue-btn:hover {
    background: var(--primary-red);
    color: #fff;
}

.kit-step-continue-btn svg {
    width: 14px;
    height: 14px;
}

/* ========== EQUIPAMENTOS ========== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-bottom: 1.5rem;
}

.equipment-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.equipment-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.equipment-card.selected {
    border-color: var(--primary-red);
    background: rgba(179, 21, 0, 0.03);
}

.equipment-card.selected::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Badge de aviso para REPs homologados - Premium Design */
.equipment-rep-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    white-space: nowrap;
    z-index: 2;
    transition: all 0.2s ease;
}

.equipment-rep-badge:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.equipment-rep-badge::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Badge para Coletores REP-P (não homologados) - Mesmo design, tom cinza/azul discreto */
.equipment-collector-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    white-space: nowrap;
    z-index: 2;
    transition: all 0.2s ease;
    max-width: 95%;
    text-align: center;
}

.equipment-collector-badge:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.equipment-collector-badge::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ========== CARD APENAS SOFTWARE ========== */
.software-only-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e5e5e5;
}

.software-only-card:hover {
    border-color: var(--primary-red);
}

.software-only-card.selected {
    border-color: var(--primary-red);
    background: rgba(179, 21, 0, 0.03);
}

/* Imagem do software RHiD */
.software-only-image {
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 8px;
}

/* Badge para Software-Only */
.equipment-software-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(2, 132, 199, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    white-space: nowrap;
    z-index: 2;
    transition: all 0.2s ease;
}

.equipment-software-badge:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow:
        0 6px 20px rgba(14, 165, 233, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.equipment-software-badge::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Step pulado (skipped) */
.kit-step.skipped .kit-step-header {
    opacity: 0.6;
}

.kit-step.skipped .kit-step-number {
    background: var(--text-light);
}

/* Badge "Mais Vendido" - WhatsApp green style */
.equipment-featured-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    z-index: 3;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipment-featured-badge:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #20ba5a 0%, #1da851 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Aviso de REP no step de CNPJs - Premium com Destaque */
.rep-notice-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 1px solid #10b981;
    border-radius: 100px;
    padding: 0.7rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.rep-notice-inline svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

.rep-notice-inline span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

/* Aviso REP no modal - Premium Minimalista */
.modal-rep-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

.modal-rep-notice svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
}

.modal-rep-notice span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #22c55e;
    letter-spacing: 0.01em;
}

/* Container da imagem com posição relativa para o badge */
.equipment-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

.equipment-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    background: #fff;
    display: block;
}

.equipment-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.equipment-type {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.4rem;
}

.equipment-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.equipment-details-btn:hover {
    text-decoration: underline;
}

.equipment-details-btn img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========== DROPDOWNS CUSTOMIZADOS ========== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-select:hover {
    border-color: var(--primary-red);
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(179, 21, 0, 0.1);
}

.custom-select option {
    padding: 0.75rem;
    font-weight: 500;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-gray);
    pointer-events: none;
    transition: all 0.2s ease;
}

.custom-select:hover + .select-arrow {
    color: var(--primary-red);
}

/* ========== INPUTS CUSTOMIZADOS ========== */
.custom-input-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(179, 21, 0, 0.03);
    border: 1px solid rgba(179, 21, 0, 0.2);
    border-radius: 10px;
}

.custom-input-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.custom-input-group {
    display: flex;
    gap: 0.5rem;
}

.custom-input {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.2s ease;
}

.custom-input:hover {
    border-color: var(--primary-red);
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(179, 21, 0, 0.1);
}

.custom-input-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-red);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.custom-input-btn:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

.custom-input-btn svg {
    width: 18px;
    height: 18px;
}

.custom-input-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ========== RESUMO LATERAL ========== */
.kit-summary {
    background: linear-gradient(145deg, var(--primary-dark) 0%, #0a0d15 100%);
    border-radius: 16px;
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border 0.3s ease;
    border: 2px solid rgba(179, 21, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    scroll-margin-top: 100px;
}

/* Animação de destaque quando plano completo */
.kit-summary.highlight-pulse {
    animation: summaryPulse 0.6s ease-out;
}

@keyframes summaryPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        transform: scale(1);
    }
}

/* Estado completo do resumo */
.kit-summary.complete {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kit-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kit-summary-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.kit-summary-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary-red);
}

/* Reset button - Premium minimalista */
.kit-reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.kit-reset-btn svg {
    width: 12px;
    height: 12px;
}

.kit-reset-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(179, 21, 0, 0.08);
    transform: translateY(-1px);
}

.kit-reset-btn:active {
    transform: translateY(0);
}

/* Indicador de progresso */
.kit-progress-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
    background: rgba(179, 21, 0, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(179, 21, 0, 0.3);
    transition: all 0.3s ease;
}

.kit-summary-items {
    margin-bottom: 0.75rem;
}

.kit-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kit-summary-item:last-child {
    border-bottom: none;
}

.kit-summary-label {
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kit-summary-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.kit-summary-value {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.8rem;
    text-align: right;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kit-summary-price {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.kit-summary-price:empty {
    display: none;
}

.kit-summary-check {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

.kit-summary-item.completed .kit-summary-label {
    color: #e2e8f0;
}

.kit-summary-item.completed .kit-summary-value {
    color: #fff;
    font-weight: 600;
}

/* ========== BADGE DE COMPLETO ========== */
.kit-complete-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInScale 0.3s ease;
}

.kit-complete-badge svg {
    width: 24px;
    height: 24px;
    color: #22c55e;
    flex-shrink: 0;
}

.kit-complete-badge span {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== PREÇO ========== */
.kit-price-box {
    background: rgba(179, 21, 0, 0.15);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
    border: 1px solid rgba(179, 21, 0, 0.2);
}

.kit-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.kit-price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #94a3b8;
}

.kit-price-note {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.35rem;
    text-align: center;
}

.frete-gratis-text {
    color: #22c55e;
    font-weight: 700;
}

/* ========== ACEITE DE TERMOS NO RESUMO ========== */
.kit-terms-acceptance {
    margin-bottom: 0.875rem;
    padding: 0.875rem;
    background: rgba(179, 21, 0, 0.05);
    border: 1px solid rgba(179, 21, 0, 0.2);
    border-radius: 8px;
}

.kit-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

.kit-terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.kit-terms-label span {
    font-size: 0.8125rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.kit-terms-label .terms-link {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 600;
    font: inherit;
    cursor: pointer;
}

.kit-terms-label .terms-link:hover {
    color: #ff6b5b;
}

/* ========== BOTÃO WHATSAPP ========== */
.kit-whatsapp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.kit-whatsapp-btn:hover:not(:disabled) {
    background: #20bd5a;
    transform: translateY(-2px);
}

.kit-whatsapp-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.kit-whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== BOTÕES DE AÇÃO (WhatsApp + Secundários) ========== */
.kit-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kit-secondary-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.kit-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kit-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.kit-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.kit-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile secondary actions */
.mobile-secondary-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0 1rem;
}

.mobile-action-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.mobile-action-icon-btn:hover:not(:disabled),
.mobile-action-icon-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mobile-action-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mobile-action-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Toast notification for copy feedback */
.quote-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quote-toast svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* ========== BOTÃO VER DETALHES DO RHID (minimalista abaixo do label) ========== */
.rhid-details-minimal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.5rem 0.75rem;
    margin: 0.75rem auto 0 auto;
    width: fit-content;
}

.rhid-details-minimal-btn:hover {
    color: #8f1100;
    transform: translateY(-1px);
}

.kit-step-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.kit-step-actions .kit-step-continue-btn {
    margin-top: 0;
    width: auto;
}

/* ========== MODAL DE EQUIPAMENTO ========== */
.equipment-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.equipment-modal.active {
    display: flex;
}

.equipment-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Fundo escuro no container */
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.equipment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    color: #fff;
}

.equipment-modal-close:hover {
    background: var(--primary-red);
    color: #fff;
}

.equipment-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Container da imagem */
.equipment-modal-image-container {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.equipment-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Imagem do software RHiD - maior */
.equipment-modal-image.software-image {
    max-height: 320px;
}

.equipment-modal-body {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.equipment-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.equipment-modal-subtitle {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.equipment-modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.equipment-modal-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.equipment-modal-feature svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

.equipment-modal-specs {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.75rem;
}

.equipment-modal-specs h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.equipment-modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.equipment-modal-spec {
    font-size: 0.75rem;
}

.equipment-modal-spec strong {
    color: var(--text-dark);
}

.equipment-modal-spec span {
    color: var(--text-gray);
}

.equipment-modal-disclaimer {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ========== MODALIDADE (Step 0) ========== */
.modality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modality-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modality-card:hover {
    border-color: rgba(179, 21, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.modality-card.selected {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(179, 21, 0, 0.03) 0%, rgba(179, 21, 0, 0.08) 100%);
    box-shadow: 0 0 0 1px var(--primary-red), 0 8px 24px rgba(179, 21, 0, 0.15);
}

.modality-card.selected::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.modality-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modality-icon.equipment-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.2) 100%);
    color: #16a34a;
}

.modality-icon.software-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: #2563eb;
}

.modality-icon svg {
    width: 28px;
    height: 28px;
}

.modality-content {
    flex: 1;
}

.modality-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.modality-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.modality-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.modality-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
}

.modality-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-red);
    opacity: 0.6;
}

.modality-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #16a34a;
    width: fit-content;
}

.modality-badge.software {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #2563eb;
}

.modality-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin-top: 0.5rem;
    width: 100%;
}

.modality-details-btn:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Badge dinâmico do header */
.kit-badge.software-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.kit-badge.equipment-badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

/* Step 0 - número especial com ícone */
#step-0 .kit-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

#step-0 .kit-step-number svg {
    width: 16px;
    height: 16px;
}

/* Responsivo - Modalidade */
@media (max-width: 768px) {
    .modality-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modality-card {
        padding: 1.25rem;
    }

    .modality-icon {
        width: 48px;
        height: 48px;
    }

    .modality-icon svg {
        width: 24px;
        height: 24px;
    }

    .modality-title {
        font-size: 1rem;
    }

    .modality-features {
        font-size: 0.8rem;
    }

    .modality-details-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* Modal de equipamento/software - Mobile */
    .equipment-modal-content {
        max-width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .equipment-modal-image-container {
        height: 280px;
        padding: 1.5rem;
    }

    .equipment-modal-image {
        max-height: 240px;
    }

    .equipment-modal-image.software-image {
        max-height: 220px;
    }

    .equipment-modal-body {
        padding: 1rem;
    }

    .equipment-modal-title {
        font-size: 1.1rem;
    }

    .equipment-modal-features {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .equipment-modal-specs {
        flex-direction: column;
        gap: 0.3rem;
    }

    .equipment-modal-spec {
        font-size: 0.75rem;
    }
}

/* ========== MOBILE SUMMARY FOOTER (estilo iFood) ========== */
.mobile-summary-footer {
    display: none; /* Escondido por padrão no desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, var(--primary-dark) 0%, #0a0d15 100%);
    border-top: 1px solid rgba(179, 21, 0, 0.3);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-summary-footer.visible {
    transform: translateY(0);
}

.mobile-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    gap: 1rem;
    cursor: pointer;
}

.mobile-summary-content:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-summary-info {
    flex: 1;
    min-width: 0;
}

.mobile-summary-equipment {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.mobile-summary-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.mobile-price-label {
    font-size: 0.75rem;
    color: #64748b;
}

.mobile-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.mobile-summary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-summary-btn:hover {
    background: var(--primary-red-hover);
}

.mobile-summary-btn.complete {
    background: #25d366;
}

.mobile-summary-btn.complete:hover {
    background: #20bd5a;
}

.mobile-summary-btn svg {
    flex-shrink: 0;
}

.mobile-footer-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    transition: color 0.15s ease, background 0.15s ease;
}

.mobile-footer-clear-btn:active {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* Handle para arrastar */
.mobile-summary-bar {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
    cursor: pointer;
}

.mobile-summary-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.mobile-summary-bar:hover .mobile-summary-handle {
    background: rgba(255, 255, 255, 0.5);
}

/* Painel expandido */
.mobile-summary-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-summary-footer.expanded .mobile-summary-expanded {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.mobile-summary-footer.expanded .mobile-summary-handle {
    background: var(--primary-red);
}

.mobile-summary-footer.expanded .mobile-expanded-close svg {
    transform: rotate(180deg);
}

.mobile-expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-expanded-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-expanded-header h4 {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.mobile-progress-badge {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.mobile-progress-badge.complete {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.mobile-expanded-close {
    background: #e2e8f0;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.mobile-expanded-close:hover {
    background: #cbd5e1;
    color: #1a1a2e;
}

.mobile-expanded-close svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.mobile-expanded-items {
    padding: 0.75rem 1rem;
    background: #fff;
}

.mobile-expanded-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-expanded-item:last-child {
    border-bottom: none;
}

.mobile-expanded-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-expanded-value {
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.mobile-expanded-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.mobile-expanded-price {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 700;
}

.mobile-expanded-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    margin: 0 1rem;
    border-top: 2px solid #e2e8f0;
}

.mobile-expanded-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.mobile-expanded-total-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-red);
}

.mobile-expanded-note {
    text-align: center;
    padding: 0.5rem 1rem 1rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Termos mobile */
.mobile-terms-acceptance {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-terms-label {
    display: flex;
    align-items: start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
    line-height: 1.4;
}

.mobile-terms-label input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.mobile-terms-label .terms-link {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 500;
    font: inherit;
    cursor: pointer;
}

.mobile-terms-label .terms-link:hover {
    color: var(--primary-red-hover);
}

/* Botão de ação mobile */
.mobile-action-btn-container {
    padding: 0 1rem 1rem;
}

.mobile-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-action-btn:hover:not(:disabled) {
    background: #20bd5a;
    transform: translateY(-1px);
}

.mobile-action-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.7;
}

.mobile-action-btn svg {
    flex-shrink: 0;
}

/* Barra de progresso */
.mobile-summary-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, #ff6b5b 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.mobile-progress-bar.complete {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

/* ========== RESPONSIVE ========== */

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
    /* Mostrar footer mobile */
    .mobile-summary-footer {
        display: block;
    }

    /* Esconder resumo lateral quando footer mobile ativo */
    .kit-summary {
        display: none;
    }

    .kit-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .kit-steps {
        order: 0;
        padding-bottom: 100px; /* Espaço para o footer fixo */
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kit-section {
        padding: 4rem 1.5rem;
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    .kit-section {
        padding: 3rem 1rem;
    }

    .kit-header {
        margin-bottom: 2rem;
    }

    .kit-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .kit-title {
        font-size: 2rem;
    }

    .kit-subtitle {
        font-size: 1rem;
    }

    .kit-container {
        gap: 1.5rem;
    }

    .kit-summary {
        padding: 1rem;
        border-radius: 12px;
    }

    .kit-summary-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .kit-summary-title {
        font-size: 0.9rem;
    }

    .kit-price {
        font-size: 1.5rem;
    }

    .kit-price-box {
        padding: 0.625rem;
    }

    .kit-whatsapp-btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .equipment-image {
        height: 220px;
    }

    .equipment-card {
        padding: 0.625rem;
    }

    /* Badge REP no tablet - posição relativa */
    .equipment-rep-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        margin-top: 0.5rem;
        display: inline-flex;
    }

    /* Badge Coletor no tablet - posição relativa */
    .equipment-collector-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        margin-top: 0.5rem;
        display: inline-flex;
    }

    .equipment-image-container {
        text-align: center;
    }

    .kit-step-header {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .kit-step-title {
        font-size: 0.875rem;
    }

    .kit-step-number {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.75rem;
    }

    .quantity-stepper {
        max-width: 260px;
    }
}

/* ========== QUANTITY STEPPER (HYBRID +/- BUTTONS) ========== */
.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
}

.quantity-stepper-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px; /* WCAG 2.5.8 AA - mínimo tap target */
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.quantity-stepper-btn:hover:not(:disabled) {
    background: var(--primary-red-hover);
    transform: scale(1.05);
}

.quantity-stepper-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-stepper-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-stepper-input {
    flex: 1;
    height: 44px;
    min-height: 44px; /* WCAG 2.5.8 AA */
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 0 0.75rem;
    transition: all 0.2s ease;
}

.quantity-stepper-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(179, 21, 0, 0.1);
}

.quantity-stepper-input::-webkit-inner-spin-button,
.quantity-stepper-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-stepper-input[type=number] {
    -moz-appearance: textfield;
}

/* Label descritivo abaixo do stepper */
.quantity-stepper-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Variação para funcionários (incremento maior) */
.quantity-stepper.employee-stepper .quantity-stepper-input {
    letter-spacing: -0.02em;
}

/* Mobile (640px) */
@media (max-width: 640px) {
    /* Reset button mobile */
    .kit-reset-btn {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    .kit-reset-btn svg {
        width: 11px;
        height: 11px;
    }

    /* Prevenir overflow horizontal em todo o configurador */
    .kit-section,
    .kit-section *,
    .kit-section > .container,
    .kit-section > .container * {
        box-sizing: border-box;
    }

    .kit-section {
        padding: 2.5rem 0 !important;
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }

    .kit-section > .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden;
        width: 100%;
    }

    .kit-header {
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .kit-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .kit-badge svg {
        width: 16px;
        height: 16px;
    }

    .kit-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .kit-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .kit-container {
        gap: 1.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .kit-steps {
        gap: 0.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .kit-step {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .kit-step-content {
        max-width: 100%;
        box-sizing: border-box;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .equipment-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .equipment-card {
        padding: 0.75rem;
    }

    .equipment-image {
        height: 200px;
    }

    .equipment-name {
        font-size: 0.85rem;
    }

    .equipment-type {
        font-size: 0.7rem;
    }

    /* Badge "Mais Vendido" no mobile - menor */
    .equipment-featured-badge {
        font-size: 0.55rem;
        padding: 0.3rem 0.55rem;
        top: 0.4rem;
        left: 0.4rem;
        border-radius: 5px;
        box-shadow: 0 1px 6px rgba(37, 211, 102, 0.3);
    }

    /* Badge REP no mobile - posição relativa para não vazar */
    .equipment-rep-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        gap: 0.375rem;
        margin-top: 0.75rem;
        display: inline-flex;
        width: auto;
    }

    .equipment-rep-badge::before {
        width: 12px;
        height: 12px;
    }

    /* Badge Coletor no mobile - posição relativa para não vazar */
    .equipment-collector-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        gap: 0.375rem;
        margin-top: 0.75rem;
        display: inline-flex;
        width: auto;
    }

    .equipment-collector-badge::before {
        width: 12px;
        height: 12px;
    }

    /* Container da imagem precisa centralizar o badge */
    .equipment-image-container {
        text-align: center;
    }

    .kit-step {
        border-radius: 10px;
    }

    .kit-step-header {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .kit-step-title {
        font-size: 0.8rem;
    }

    .kit-step-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.7rem;
    }

    .kit-step-value {
        font-size: 0.75rem;
        max-width: 120px;
        text-overflow: ellipsis;
    }

    .kit-step-content {
        padding: 0 0.75rem 1rem;
    }

    .kit-step.active .kit-step-content {
        padding: 0.5rem 0.75rem 1.5rem 0.75rem;
        max-height: 2000px;
    }

    .kit-step-desc {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .kit-step-continue-btn {
        margin-top: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    /* Summary mobile - layout distribuido */
    .kit-summary {
        padding: 1rem;
        border-radius: 12px;
    }

    .kit-summary-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .kit-summary-title {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .kit-summary-title svg {
        width: 18px;
        height: 18px;
    }

    .kit-progress-text {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Items em grid 2x2 no mobile */
    .kit-summary-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        margin-bottom: 0.75rem;
    }

    .kit-summary-item {
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        border-bottom: none;
    }

    .kit-summary-label {
        font-size: 0.7rem;
        gap: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .kit-summary-value {
        font-size: 0.85rem;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        color: #e2e8f0;
    }

    .kit-summary-check {
        width: 12px;
        height: 12px;
    }

    /* Preco box mobile */
    .kit-price-box {
        padding: 0.875rem 1rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
        text-align: center;
    }

    .kit-price {
        font-size: 1.75rem;
    }

    .kit-price-period {
        font-size: 0.9rem;
    }

    .kit-price-note {
        font-size: 0.7rem;
        margin-top: 0.35rem;
    }

    /* Botao WhatsApp full width */
    .kit-whatsapp-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .kit-whatsapp-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Quantity stepper mobile */
    .quantity-stepper {
        max-width: 100%;
        gap: 0.5rem;
    }

    .quantity-stepper-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.25rem;
    }

    .quantity-stepper-input {
        height: 48px;
        min-height: 48px;
        font-size: 1rem;
    }

    .quantity-stepper-label {
        font-size: 0.8rem;
        margin-top: 0.375rem;
    }

    /* REP Notice */
    .rep-notice-inline {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .rep-notice-inline svg {
        width: 16px;
        height: 16px;
    }

    .rep-notice-inline span {
        font-size: 0.75rem;
    }

    /* Modal mobile */
    .equipment-modal {
        padding: 1rem 0.75rem;
    }

    .equipment-modal-content {
        border-radius: 12px;
    }

    .equipment-modal-image {
        height: 200px;
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .equipment-modal-body {
        padding: 1rem;
    }

    .equipment-modal-title {
        font-size: 1.1rem;
    }

    .equipment-modal-subtitle {
        font-size: 0.8rem;
    }

    .equipment-modal-features {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .equipment-modal-feature {
        font-size: 0.75rem;
    }

    .equipment-modal-specs {
        padding: 0.625rem;
    }

    .equipment-modal-specs h4 {
        font-size: 0.75rem;
    }

    .equipment-modal-specs-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .equipment-modal-spec {
        font-size: 0.7rem;
    }

    .equipment-modal-close {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .equipment-modal-close svg {
        width: 16px;
        height: 16px;
    }

    .modal-rep-notice {
        padding: 0.375rem 0.75rem;
        margin: 0.75rem 0;
    }

    .modal-rep-notice svg {
        width: 14px;
        height: 14px;
    }

    .modal-rep-notice span {
        font-size: 0.7rem;
    }

    /* Custom inputs */
    .custom-input-group {
        flex-direction: column;
    }

    .custom-input-btn {
        width: 100%;
        justify-content: center;
    }

    .custom-input-wrapper {
        padding: 0.75rem;
    }

    .custom-input-wrapper label {
        font-size: 0.8rem;
    }

    .custom-input {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .custom-input-note {
        font-size: 0.7rem;
    }

    /* Modalidade cards - 640px */
    .modality-card {
        padding: 1rem;
    }

    .modality-icon {
        width: 44px;
        height: 44px;
    }

    .modality-icon svg {
        width: 22px;
        height: 22px;
    }

    .modality-title {
        font-size: 0.95rem;
    }

    .modality-desc {
        font-size: 0.8rem;
    }

    .modality-features {
        font-size: 0.75rem;
    }

    .modality-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .modality-details-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    /* Modal de equipamento - 640px */
    .equipment-modal-content {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .equipment-modal-image-container {
        height: 220px;
        padding: 1rem;
    }

    .equipment-modal-image {
        max-height: 180px;
    }

    .equipment-modal-image.software-image {
        max-height: 160px;
    }

    .equipment-modal-body {
        padding: 0.875rem;
        border-radius: 0 0 12px 12px;
    }

    .equipment-modal-title {
        font-size: 1rem;
    }

    .equipment-modal-subtitle {
        font-size: 0.75rem;
    }

    .equipment-modal-feature {
        font-size: 0.7rem;
    }

    .equipment-modal-specs-title {
        font-size: 0.8rem;
    }

    .equipment-modal-spec {
        font-size: 0.7rem;
    }
}

/* Extra small mobile (380px) */
@media (max-width: 380px) {
    .kit-section {
        padding: 2rem 0.75rem;
    }

    .kit-title {
        font-size: 1.35rem;
    }

    .kit-subtitle {
        font-size: 0.85rem;
    }

    .kit-badge {
        padding: 0.4rem 0.875rem;
        font-size: 0.7rem;
    }

    .kit-summary {
        padding: 0.75rem;
    }

    /* Grid 1 coluna em telas muito pequenas */
    .kit-summary-items {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .kit-summary-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .kit-summary-value {
        max-width: 50%;
        text-align: right;
    }

    /* Preco e botao empilhados */
    .kit-price-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .kit-price {
        font-size: 1.25rem;
    }

    .kit-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .equipment-image {
        height: 180px;
    }

    .kit-step-header {
        padding: 0.625rem;
    }

    .kit-step-title {
        font-size: 0.75rem;
    }

    .quantity-stepper-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Modalidade cards - 380px */
    .modality-card {
        padding: 0.875rem;
    }

    .modality-icon {
        width: 40px;
        height: 40px;
    }

    .modality-icon svg {
        width: 20px;
        height: 20px;
    }

    .modality-title {
        font-size: 0.9rem;
    }

    .modality-desc {
        font-size: 0.75rem;
    }

    .modality-features {
        font-size: 0.7rem;
    }

    .modality-features li {
        margin-bottom: 0.2rem;
    }

    .modality-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .modality-details-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    /* Modal de equipamento - 380px */
    .equipment-modal-image-container {
        height: 180px;
        padding: 0.75rem;
    }

    .equipment-modal-image {
        max-height: 150px;
    }

    .equipment-modal-image.software-image {
        max-height: 130px;
    }

    .equipment-modal-body {
        padding: 0.75rem;
    }

    .equipment-modal-title {
        font-size: 0.9rem;
    }

    .equipment-modal-features {
        gap: 0.3rem;
    }

    .equipment-modal-feature {
        font-size: 0.65rem;
    }

    .equipment-modal-feature svg {
        width: 12px;
        height: 12px;
    }
}

/* ========== FIDELITY LINK (VER MAIS) ========== */

/* Desktop - Link ao lado do texto de fidelidade */
.fidelity-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-red, #b31500);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.fidelity-link::after {
    content: '→';
    margin-left: 4px;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.fidelity-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.fidelity-link:hover::after {
    transform: translateX(2px);
}

/* Mobile - Link abaixo do texto de fidelidade */
.fidelity-link-mobile {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-red, #b31500);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.fidelity-link-mobile::after {
    content: '→';
    margin-left: 4px;
    font-size: 0.875rem;
}

.fidelity-link-mobile:active {
    opacity: 1;
}

/* Ajuste na nota de preço para flex layout */
.kit-price-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.mobile-expanded-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Responsive - Mobile breakpoint */
@media (max-width: 640px) {
    .fidelity-link {
        font-size: 0.7rem;
    }

    .fidelity-link-mobile {
        font-size: 0.7rem;
    }

    .rhid-details-minimal-btn {
        font-size: 0.75rem;
    }
}

/* ========== MODAL DO RHID ========== */
.rhid-modal-content {
    max-width: 650px;
}

.rhid-modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a0d15 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px 16px 0 0;
    text-align: center;
    color: #fff;
}

.rhid-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary-red);
}

.rhid-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.rhid-modal-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

.rhid-modal-body {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 0 16px 16px;
    color: var(--text-dark);
}

/* Tabela de Planos */
.rhid-plans-table {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.rhid-plan-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    background: #fff;
}

.rhid-plan-row:last-child {
    border-bottom: none;
}

.rhid-plan-header {
    background: var(--bg-light);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.rhid-plan-highlight {
    background: rgba(179, 21, 0, 0.06);
    grid-template-columns: 1.2fr 2fr;
}

.rhid-plan-col {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.rhid-plan-price {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1rem;
}

.rhid-plan-per {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85rem;
}

.rhid-features-included h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rhid-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rhid-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.rhid-feature-item svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

.rhid-compliance-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.rhid-compliance-badge svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
    flex-shrink: 0;
}

.rhid-compliance-badge div {
    flex: 1;
}

.rhid-compliance-badge strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.rhid-compliance-badge span {
    font-size: 0.8rem;
    color: #64748b;
}

.rhid-pricing-note {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-red);
    border-radius: 6px;
    padding: 0.875rem;
}

.rhid-pricing-note svg {
    width: 20px;
    height: 20px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.rhid-pricing-note p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.rhid-pricing-note strong {
    color: var(--text-dark);
}

/* Responsive RHiD Modal */
@media (max-width: 640px) {
    .rhid-modal-header {
        padding: 1.5rem 1rem;
    }

    .rhid-modal-icon {
        width: 40px;
        height: 40px;
    }

    .rhid-modal-title {
        font-size: 1.35rem;
    }

    .rhid-modal-subtitle {
        font-size: 0.85rem;
    }

    .rhid-modal-body {
        padding: 1rem;
    }

    .rhid-features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .rhid-feature-item {
        font-size: 0.8rem;
    }

    .rhid-compliance-badge {
        padding: 0.75rem;
    }

    .rhid-compliance-badge svg {
        width: 28px;
        height: 28px;
    }

    .rhid-pricing-note {
        padding: 0.75rem;
    }

    .rhid-pricing-note p {
        font-size: 0.8rem;
    }

    .rhid-plans-table {
        font-size: 0.8rem;
    }

    .rhid-plan-row {
        grid-template-columns: 1fr 0.8fr 0.8fr;
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .rhid-plan-highlight {
        grid-template-columns: 1fr;
    }

    .rhid-plan-price {
        font-size: 0.9rem;
    }

    .rhid-plan-per {
        font-size: 0.75rem;
    }
}

/* ========== TERMOS E CONDICOES MODAL - ESTILO LIVRO/DOCUMENTO ========== */
.terms-modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.terms-modal-header {
    background: #ffffff;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 2px solid #1e293b;
    text-align: center;
    flex-shrink: 0;
}

.terms-modal-icon {
    display: none;
}

.terms-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.terms-modal-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.terms-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
    line-height: 1.6;
}

/* Scroll corporativo */
.terms-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.terms-modal-body::-webkit-scrollbar {
    width: 12px;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    border: 3px solid #f1f5f9;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Secoes - estilo livro compacto */
.terms-section {
    display: block;
    margin-bottom: 1.25rem;
}

.terms-section-number {
    display: inline-block;
    width: auto;
    min-width: 24px;
    height: 24px;
    background: #1e293b;
    color: #fff;
    padding: 0 0.5rem;
    border-radius: 3px;
    line-height: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.terms-section-content {
    display: block;
}

.terms-section-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.terms-section-content p {
    font-size: 0.8125rem;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 0.625rem;
    text-align: justify;
}

.terms-section-content ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.terms-section-content li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 0.375rem;
    text-align: justify;
}

.terms-section-content li::before {
    content: '•';
    position: absolute;
    left: 0.375rem;
    top: 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.terms-section-content strong {
    color: #1e293b;
    font-weight: 700;
}

/* Subsecoes - estilo livro compacto */
.terms-subsection {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-left: 2px solid #cbd5e1;
}

.terms-subsection h5 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

/* Footer do modal - simples e compacto */
.terms-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    text-align: center;
}

.terms-ok-btn {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 0.625rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-ok-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}

.terms-ok-btn:active {
    transform: translateY(0);
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .terms-modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .terms-modal-header {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }

    .terms-modal-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .terms-modal-title {
        font-size: 1.35rem;
    }

    .terms-modal-subtitle {
        font-size: 0.85rem;
    }

    .terms-modal-body {
        padding: 1rem;
    }

    .terms-section {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .terms-section-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .terms-section-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .terms-section-content p,
    .terms-section-content li {
        font-size: 0.875rem;
    }

    .terms-subsection {
        padding-left: 0.75rem;
        border-left-width: 2px;
    }

    .terms-subsection h5 {
        font-size: 0.9375rem;
    }

    .terms-footer {
        padding: 1rem;
    }

    .terms-ok-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========== PROPOSTA COMERCIAL - MODAL ========== */
.proposal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 1rem;
}

.proposal-modal.visible {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.proposal-container {
    background: #fff;
    width: 100%;
    max-width: 210mm; /* A4 width */
    min-height: auto;
    margin: 2rem auto;
    padding-top: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Toolbar fixa no topo */
.proposal-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.proposal-toolbar-title {
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
}

.proposal-ref-input,
.proposal-val-input {
    display: none;
    height: 26px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-family: inherit;
    color: #94a3b8;
    background: #f8fafc;
    outline: none;
    flex-shrink: 0;
}

.proposal-ref-input { width: 56px; }
.proposal-val-input { width: 52px; text-align: center; }

.proposal-mode-btn {
    display: none;
    height: 26px;
    min-width: 26px;
    padding: 0 4px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.625rem;
    font-family: inherit;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.proposal-mode-btn:active { background: #f1f5f9; }
.proposal-mode-btn.visible { display: flex; align-items: center; justify-content: center; }

.proposal-ref-input:focus,
.proposal-val-input:focus {
    border-color: #cbd5e1;
    color: #64748b;
}

.proposal-ref-input.visible,
.proposal-val-input.visible {
    display: block;
}

.proposal-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.proposal-toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 0.25rem;
}

.proposal-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}
.proposal-icon-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.proposal-icon-btn svg {
    width: 18px;
    height: 18px;
}

.proposal-share-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #25d366;
    color: #fff;
}
.proposal-share-btn:hover {
    background: #20bd5a;
}
.proposal-share-btn svg {
    width: 15px;
    height: 15px;
}

.proposal-close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.proposal-close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.proposal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* ========== PROPOSAL FLYER - BASE ========== */
.proposal-content {
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

.proposal-flyer {
    width: 100%;
}

.flyer {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
}

/* ========== PNG OVERLAY SYSTEM (Equipment + Software) ========== */

.flyer.flyer-equipment,
.flyer.flyer-software-png {
    position: relative;
    container-type: inline-size;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1;
}

.flyer-bg {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* Overlay labels — all styling via inline styles from calibrator */
.flyer-overlay {
    position: absolute;
    font-family: var(--font-family);
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.2;
}

/* Price total — structured layout like optional badges in PNG */
.flyer-price-total {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.29cqi;
    line-height: 1;
    font-weight: 800;
}
.flyer-price-int {
    font-size: 1.857cqi;
    font-weight: 800;
}
.flyer-price-right {
    display: flex;
    flex-direction: column;
    padding-top: 0.14cqi;
}
.flyer-price-dec {
    font-size: 1.0cqi;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
.flyer-price-mes {
    font-size: 1.0cqi;
    font-weight: 700;
    margin-top: 0.29cqi;
    text-align: left;
}

/* Optionals: smaller prices */
.flyer-price-opt .flyer-price-int {
    font-size: 1.571cqi;
}
.flyer-price-opt .flyer-price-dec {
    font-size: 0.857cqi;
    line-height: 1.2;
}
.flyer-price-opt .flyer-price-mes {
    font-size: 0.714cqi;
    margin-top: 0.14cqi;
}

/* ========== EQUIPMENT PRODUCT SHEET (2nd page) ========== */
.flyer-sheet {
    max-width: 700px;
    margin: 24px auto 0;
}
.flyer-sheet-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* ========== PRINT STYLES ========== */
@media print {
    body > *:not(.proposal-modal) {
        display: none !important;
    }

    .proposal-modal {
        display: block !important;
        position: static !important;
        background: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .proposal-toolbar {
        display: none !important;
    }

    .proposal-close-btn {
        display: none !important;
    }

    .proposal-container {
        box-shadow: none !important;
        margin: 0 !important;
        padding-top: 0 !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .proposal-content {
        padding: 0 !important;
    }

    .flyer {
        max-width: 100% !important;
    }

    /* Force colors in print */
    .flyer-overlay {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* A4 sizing */
    @page {
        size: A4;
        margin: 0;
    }

    /* Page 1: flyer occupies full page */
    .flyer.flyer-equipment,
    .flyer.flyer-software-png {
        page-break-after: always;
        page-break-inside: avoid;
    }

    /* Page 2: equipment product sheet */
    .flyer-sheet {
        page-break-before: always;
        page-break-inside: avoid;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    .flyer-sheet-img {
        border-radius: 0;
        width: 100%;
    }
}

/* ========== MOBILE RESPONSIVO ========== */
@media (max-width: 768px) {
    .proposal-modal {
        padding: 0;
    }

    .proposal-container {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        padding-top: 46px;
    }

    .proposal-toolbar {
        max-width: 100%;
    }


    /* Template 2 mobile: PNG overlay is inherently responsive (uses cqi + %) */

    /* Toolbar mobile */
    .proposal-share-btn span {
        display: none;
    }
    .proposal-share-btn {
        padding: 0.4rem;
    }
}
