/* =============================================
   SeguroViagem B2C – Estilos Globais
   Bootstrap 5 mobile-first
   ============================================= */

:root {
    --color-primary: #0A1E4E;
    --color-primary-dark: #071540;
    --color-primary-light: #1A3A7A;
    --color-accent: #C0C8D8;
    --color-text-light: #FFFFFF;
    --sv-blue: #0A1E4E;
    --sv-blue-dark: #071540;
    --sv-green: #198754;
    --sv-radius: 1rem;
    --sv-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --bs-primary: #0A1E4E;
    --bs-primary-rgb: 10, 30, 78;
    --bs-link-color: #2A5298;
    --bs-link-hover-color: #1A3A7A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---- Hero Cotação ---- */
.hero-cotacao {
    background: linear-gradient(135deg, #1A3A7A 0%, #0A1E4E 60%, #071540 100%);
    box-shadow: 0 8px 32px rgba(10, 30, 78, 0.3);
}

/* ---- Progress Steps ---- */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 40px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.step-circle-idle {
    background: #e9ecef;
    color: #6c757d;
}

.step-circle-active {
    background: var(--color-primary);
    color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(10, 30, 78, 0.2);
}

.step-circle-done {
    background: var(--sv-green);
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    color: #6c757d;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    min-width: 12px;
}

.step-line-done {
    background: var(--sv-green);
}

/* ---- Cards ---- */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

/* ---- Credit Card Preview ---- */
.credit-card-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 160px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.credit-card-preview::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px;
    right: -50px;
}

.credit-card-preview::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -60px;
    left: -30px;
}

.card-number-display {
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
}

/* ---- Plano Card Badges ---- */
.badge.bg-secondary-subtle {
    background-color: #f0f0f0 !important;
}

/* ---- Confirmação ---- */
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ---- Form controls ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 30, 78, 0.15);
}

/* ---- Botões ---- */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-text-light);
}

/* ---- Plano Destaque ---- */
.border-2 { border-width: 2px !important; }

/* ---- Responsividade mobile ---- */
@media (max-width: 576px) {
    .step-label { display: none; }
    .step-line { min-width: 8px; }
    .hero-cotacao { padding: 1.5rem !important; }
    .credit-card-preview { min-height: 130px; }
}

/* ---- Sticky sidebar filtros ---- */
@media (min-width: 768px) {
    .sticky-md-top {
        position: sticky;
        top: 1rem;
    }
}

/* ---- Accordion planos ---- */
.accordion-button::after {
    display: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: #2A5298;
}

/* ---- Rounded corners ---- */
.rounded-top-4 {
    border-top-left-radius: var(--sv-radius) !important;
    border-top-right-radius: var(--sv-radius) !important;
}

/* ---- Alert ---- */
.alert {
    border-radius: var(--sv-radius);
}

/* ---- Smooth transitions ---- */
* {
    transition: color 0.15s ease, background-color 0.15s ease;
}

button, a, input, select, textarea {
    transition: all 0.2s ease;
}

/* ---- Logos de seguradoras ---- */
.logo-seguradora {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-seguradora-lg {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
