:root {
    --primary-blue: #006FF9;
    --primary-blue-hover: #005ce6;
    --primary-blue-light: #e6f0ff;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   SISTEMA DE TOASTS (NOTIFICAÇÕES)
   ========================================= */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    background-color: var(--card-bg, #ffffff);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark, #1e293b);
    border-left: 4px solid var(--primary-blue, #006FF9);
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Variação de Sucesso */
.custom-toast.success {
    border-left-color: #10b981;
}
.custom-toast.success i {
    color: #10b981;
}

/* Variação de Erro */
.custom-toast.error {
    border-left-color: #ef4444;
}
.custom-toast.error i {
    color: #ef4444;
}

/* Ícone do Toast */
.custom-toast i {
    font-size: 22px;
}
/* ======================================= */

/* Animação de Loading para o Remixicon */
.ri-spin {
    display: inline-block;
    animation: spin-loading 1s linear infinite;
}

@keyframes spin-loading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cabeçalho Azul com a Logo */
.page-header {
    background-color: var(--primary-blue);
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-height: 100px;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.booking-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* Header (Título e Descrição) */
.header-title {
    text-align: center;
    margin-bottom: 30px;
}

.header-title h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Date Selector */
.date-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.nav-btn:hover {
    color: var(--primary-blue);
}

.dates-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.dates-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

.date-item:hover {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

.date-item .day-week {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.date-item .day-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.date-item .month {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Active Date State */
.date-item.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 111, 249, 0.2);
}

.date-item.active .day-week,
.date-item.active .day-number,
.date-item.active .month {
    color: #FFFFFF;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0 0 30px 0;
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.time-slot {
    padding: 12px 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.time-slot:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

/* Active Time State */
.time-slot.active {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 111, 249, 0.2);
}

/* Action Button */
.action-container {
    text-align: center;
}

.btn-submit {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(0, 111, 249, 0.2);
    font-family: inherit;
}

.btn-submit:hover {
    background-color: var(--primary-blue-hover);
}

.btn-submit:active {
    transform: translateY(2px);
}

/* =========================================
   WIZARD
   ========================================= */

.step-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs Genéricos */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.custom-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

/* Checklist de Senha */
.password-rules {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: left;
}

.password-rules p {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.password-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-rules li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.password-rules li i {
    font-size: 16px;
}

.password-rules li.valid {
    color: #10b981;
}
.password-rules li.valid i::before {
    content: "\eb7b";
}

/* Upload de CNH */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 25px;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

.upload-area i.cnh-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: inline-block;
}

.upload-area p.upload-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.upload-area p.upload-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

#file-name-display {
    display: none;
    margin-top: 15px;
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    background-color: #dcfce7;
    padding: 8px 15px;
    border-radius: 8px;
}

/* Responsividade Básica */
@media (max-width: 480px) {
    .booking-card {
        padding: 25px 20px;
    }
    
    .time-slots-container {
        grid-template-columns: repeat(3, 1fr);
    }
}