/* ===== Odonto Urgencia — Wizard Styles ===== */

.odonto-wizard {
    max-width: 640px;
    margin: 30px auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px;
    overflow: hidden;
}

/* Header */
.odonto-wizard-header {
    text-align: center;
    margin-bottom: 28px;
}
.odonto-logo { font-size: 48px; }
.odonto-title {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.odonto-subtitle { color: #6b7280; font-size: 15px; margin: 0; }

/* Progress Bar */
.odonto-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
}
.odonto-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.odonto-progress-step.active { opacity: 1; }
.odonto-progress-step.done { opacity: 0.7; }
.odonto-step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    transition: all 0.3s;
}
.odonto-progress-step.active .odonto-step-num {
    background: #10b981; color: #fff;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}
.odonto-progress-step.done .odonto-step-num {
    background: #10b981; color: #fff;
}
.odonto-step-label { font-size: 11px; font-weight: 600; color: #6b7280; }
.odonto-progress-line {
    width: 30px; height: 2px; background: #e5e7eb; margin: 0 6px; margin-bottom: 18px;
}

/* Steps */
.odonto-steps-container { position: relative; min-height: 260px; }
.odonto-step {
    display: none;
    animation: odontoFadeIn 0.35s ease;
}
.odonto-step.active { display: block; }
@keyframes odontoFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.odonto-step-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #111827; }
.odonto-step-desc { color: #6b7280; font-size: 14px; margin: 0 0 20px; }

/* Teeth Grid */
.odonto-teeth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.odonto-tooth-btn {
    padding: 14px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.odonto-tooth-btn:hover { border-color: #10b981; background: #f0fdf4; }
.odonto-tooth-btn.selected {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* Form Fields */
.odonto-field-group { margin-bottom: 16px; }
.odonto-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.odonto-field-row { display: flex; gap: 12px; }
.odonto-field-row .odonto-field-group { flex: 1; }
.odonto-field-small { max-width: 120px; }
.odonto-input, .odonto-textarea, .odonto-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.odonto-input:focus, .odonto-textarea:focus, .odonto-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.odonto-textarea { resize: vertical; font-family: inherit; }

/* Range */
.odonto-range {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #10b981, #ef4444);
    outline: none;
}
.odonto-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #10b981;
    cursor: pointer;
}
.odonto-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Payment */
.odonto-payment-options { display: flex; flex-direction: column; gap: 10px; }
.odonto-payment-card { cursor: pointer; }
.odonto-payment-card input { display: none; }
.odonto-payment-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}
.odonto-payment-card input:checked + .odonto-payment-card-inner {
    border-color: #10b981;
    background: #f0fdf4;
}
.odonto-payment-icon { font-size: 28px; }
.odonto-payment-name { font-weight: 600; font-size: 15px; }
.odonto-payment-desc { font-size: 12px; color: #6b7280; }

/* Price */
.odonto-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
}
.odonto-price-display strong {
    font-size: 24px;
    color: #059669;
}

/* Terms */
.odonto-terms {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}
.odonto-terms input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #10b981;
}

/* Buttons */
.odonto-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.odonto-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.odonto-btn-primary {
    background: #10b981;
    color: #fff;
}
.odonto-btn-primary:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.odonto-btn-primary:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; }
.odonto-btn-outline {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}
.odonto-btn-outline:hover { border-color: #10b981; color: #10b981; }

/* Loading */
.odonto-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}
.odonto-spinner {
    width: 48px; height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: odontoSpin 0.8s linear infinite;
}
@keyframes odontoSpin { to { transform: rotate(360deg); } }

/* Success */
.odonto-success-details {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: left;
    font-size: 14px;
    color: #166534;
}

/* Error */
.odonto-error { background: #fef2f2; color: #991b1b; padding: 12px 16px; border-radius: 8px; margin: 10px 0; font-size: 14px; }

/* Responsive */
@media (max-width: 600px) {
    .odonto-wizard { margin: 10px; padding: 20px 16px; border-radius: 16px; }
    .odonto-title { font-size: 22px; }
    .odonto-teeth-grid { grid-template-columns: repeat(2, 1fr); }
    .odonto-field-row { flex-direction: column; gap: 0; }
    .odonto-field-small { max-width: 100%; }
    .odonto-step-label { font-size: 9px; }
    .odonto-progress-line { width: 14px; }
    .odonto-btn { padding: 12px 20px; font-size: 14px; }
}
