/* Format Steps Checkout - Estilos do Wizard */

.format-steps-checkout {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* Header com indicadores de etapas */
.steps-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.steps-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-indicator {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.step-indicator.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.step-indicator.active .step-title {
    color: #007cba;
    font-weight: 600;
}

/* Conteúdo das etapas */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Formulários */
.step-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.step-form h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.step-form h3 {
    margin: 20px 0 15px 0;
    color: #34495e;
    font-size: 20px;
    font-weight: 500;
}

.step-form h4 {
    margin: 15px 0 10px 0;
    color: #34495e;
    font-size: 18px;
    font-weight: 500;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-input,
.form-input[readonly] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input.loading {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDNDMTMuODY2IDMgMTcgNi4xMzQwMSAxNyAxMEMxNyAxMy44NjYgMTMuODY2IDE3IDEwIDE3QzYuMTM0MDEgMTcgMyAxMy44NjYgMyAxMEMzIDYuMTM0MDEgNi4xMzQwMSAzIDEwIDNaIiBzdHJva2U9IiMwMDdjYmEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMCAzQzEzLjg2NiAzIDE3IDYuMTM0MDEgMTcgMTBDMTcgMTMuODY2IDEzLjg2NiAxNyAxMCAxN0M2LjEzNDAxIDE3IDMgMTMuODY2IDMgMTBDMyA2LjEzNDAwMSA2LjEzNDAxIDMgMTAgM1oiIHN0cm9rZT0iIzAwN2NiYSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.radio-label:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

.radio-label input[type="radio"]:checked + span {
    color: #007cba;
    font-weight: 500;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Checkbox */
.radio-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

/* File inputs */
input[type="file"] {
    padding: 8px;
    border: 2px dashed #e8e8e8;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 80px;
}

/* Linha de formulário (para campos lado a lado) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mensagens de validação */
.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    min-height: 20px;
}

.validation-message.error {
    color: #dc3545;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.info {
    color: #17a2b8;
}

/* Campo de senha para criação de conta */
#password-field {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#password-field .form-label {
    color: #495057;
    font-weight: 600;
}

#password-field .field-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

#password-field.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seções de validação */
.validation-section {
    margin-bottom: 30px;
}

.sub-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

/* Seções específicas */
.cnh-section,
.no-cnh-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.card-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-top: 20px;
}

/* Preços */
.pricing-section {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #cce7ff;
    margin: 20px 0;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-weight: 600;
    font-size: 18px;
    color: #007cba;
    border-top: 2px solid #007cba;
    padding-top: 15px;
    margin-top: 10px;
}

/* Assinatura */
.subscription-details {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    margin-top: 15px;
}

/* Resumo */
.summary-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin: 30px 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    color: #007cba;
    border-top: 2px solid #007cba;
    padding-top: 15px;
    margin-top: 15px;
}

/* Alertas */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a8b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagens */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.message {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.message.success {
    border-color: #28a745;
}

.message.error {
    border-color: #dc3545;
}

.message.warning {
    border-color: #ffc107;
}

.message.info {
    border-color: #17a2b8;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .format-steps-checkout {
        margin: 0 15px;
    }
    
    .steps-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .steps-header::before {
        display: none;
    }
    
    .step-indicator {
        position: relative;
    }
    
    .step-indicator::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: #e0e0e0;
    }
    
    .step-indicator:last-child::after {
        display: none;
    }
    
    .step-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-label {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-form {
        padding: 15px;
    }
    
    .step-form h2 {
        font-size: 20px;
    }
    
    .step-form h3 {
        font-size: 18px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 16px; /* Evita zoom no iOS */
    }
} 

/* Layout duas colunas para shortcode */
.fsc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.fsc-product {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.fsc-product-title {
    margin: 0 0 15px 0;
}

.fsc-cart-list {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
}

.fsc-cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fsc-cart-item:last-child {
    border-bottom: none;
}

.fsc-cart-totals .fsc-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.fsc-cart-totals .fsc-total {
    font-weight: 600;
}

.fsc-empty-cart {
    color: #666;
}

.fsc-wizard {
    /* o wizard já possui seus próprios estilos */
}

@media (max-width: 991px) {
    .fsc-two-col {
        grid-template-columns: 1fr;
    }
}

/* Seção de CNHs Enviadas */
.cnh-uploaded-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.cnh-uploaded-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.cnh-files {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cnh-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cnh-file:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.cnh-file-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cnh-file-name {
    font-weight: 600;
    color: #2c3e50;
}

.cnh-file-status {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.cnh-file-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    min-width: 80px;
}

/* Modal para visualização da CNH */
.cnh-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.cnh-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.cnh-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnh-modal-close:hover {
    color: #333;
}

.cnh-modal-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cnh-modal-title {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

/* Responsivo para CNHs */
@media (max-width: 768px) {
    .cnh-file {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cnh-file-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cnh-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
}

/* Estados de verificação de disponibilidade */
.form-input.checking-availability {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: #f0f8ff;
    position: relative;
}

.form-input.checking-availability::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: checking-spin 1s linear infinite;
}

@keyframes checking-spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Estados específicos para select de horários */
select.checking-availability {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iOCIgc3Ryb2tlPSIjMDA3Y2JhIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWRhc2hhcnJheT0iMzIiLz4KPC9zdmc+'), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Im0xIDEgNSA1IDUtNSIgc3Ryb2tlPSIjNjY2IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K');
    background-position: right 32px center, right 12px center;
    background-repeat: no-repeat, no-repeat;
    background-size: 20px, 12px;
    padding-right: 60px;
    animation: checking-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes checking-pulse {
    0% { background-color: #f0f8ff; }
    100% { background-color: #e6f3ff; }
}

select.form-input:disabled.checking-availability {
    opacity: 0.7;
    cursor: wait;
    color: #666;
}

/* Mensagem de aviso para horário ocupado */
.slot-conflict-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #856404;
    animation: shake 0.5s ease-in-out;
}

.slot-conflict-warning::before {
    content: '⚠️';
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Indicador de horário confirmado */
.slot-confirmed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #155724;
    animation: fadeInSuccess 0.3s ease;
}

.slot-confirmed::before {
    content: '✅';
    font-size: 16px;
}

@keyframes fadeInSuccess {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Indicador de recarregamento de horários */
.slots-reloading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.slots-reloading::after {
    content: 'Atualizando horários...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: #007cba;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Melhorias nas mensagens de sistema */
.message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.message.warning .close-btn {
    color: #856404;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.message.info .close-btn {
    color: #0c5460;
}

.message .close-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.message .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Animação para formulários sendo verificados */
.form-verifying {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.form-verifying::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 5;
    border-radius: 8px;
}

.form-verifying::after {
    content: 'Verificando disponibilidade...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    color: #007cba;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 6;
}

/* Responsividade para novos elementos */
@media (max-width: 768px) {
    .slot-conflict-warning,
    .slot-confirmed {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    select.checking-availability {
        padding-right: 50px;
        background-position: right 22px center, right 8px center;
        background-size: 16px, 10px;
    }
}