/* Formulario principal */
.form-container {
    background: var(--bg-white);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    width: 640px;
    height: 560px;
    transition: var(--transition);
    position: relative;
    animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Barra lateral */
.sidebar {
    width: 240px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 25px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    z-index: 2;
}

.sidebar.collapsed {
    width: 60px;
    overflow: hidden;
    padding: 25px 8px;
}

.sidebar.collapsed .step-heading,
.sidebar.collapsed .support-heading,
.sidebar.collapsed .support-email,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .step-checker,
.sidebar.collapsed .step-details {
    display: none;
}

.sidebar.collapsed .step-icon {
    margin-right: 0;
    width: 25px;
    height: 25px;
    background: none;
    box-shadow: none;
}

.sidebar.collapsed .step-icon i {
    color: var(--text-white);
    font-size: 14px;
}

.sidebar.collapsed .menu-toggle i {
    transform: rotate(180deg);
}

.sidebar-steps {
    flex-grow: 1;
}

.step {
    margin-bottom: 12px;
    padding-bottom: 8px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
}

.step-inner {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    transition: var(--transition);
}

.step-icon {
    width: 30px;
    height: 30px;
    background: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-icon i {
    color: var(--text-white);
    font-size: 14px;
}

.step-heading {
    font-weight: 500;
    font-size: 13px;
    flex-grow: 1;
    transition: var(--transition);
}

.step-checker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    margin-left: 8px;
}

.step-checker.selected {
    background: var(--accent-color);
}

.step-checker.selected i {
    color: var(--primary-color);
    font-size: 12px;
}

.step.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 0 4px 4px 0;
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 0.3s;
}

.step-details {
    padding: 0 12px 12px 50px;
    margin-top: -6px;
    display: none;
}

.step.active .step-details {
    display: block;
}

.step-subheading {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.support {
    margin-bottom: 15px;
}

.support-heading {
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    font-size: 12px;
}

.support-email {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 12px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.support-email:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    transition: color 0.3s;
    padding: 6px;
    border-radius: 5px;
}

.menu-toggle:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.menu-text {
    margin-right: 6px;
    transition: var(--transition);
    font-weight: 500;
}

/* Formulario principal */
.form-main {
    width: 400px;
    height: 560px;
    background-color: var(--bg-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-header {
    padding: 12px 18px;
    background: var(--bg-white);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secure-badge {
    background: #e6f7e9;
    color: #019719;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

.secure-badge i {
    margin-right: 4px;
}

.form-content {
    padding: 18px;
    flex-grow: 1;
    overflow-y: auto;
}

.form-title {
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.step-indicator {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
    color: var(--text-white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

/* Barra de progreso */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 3px;
}

.wizard-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    transition: background 0.3s;
}

.wizard-step.active {
    background: var(--primary-color);
}

.wizard-step.completed {
    background: var(--accent-color);
}

/* Menú desplegable */
.consultation-dropdown {
    position: relative;
    margin-bottom: 18px;
    z-index: 10;
}

.dropdown-header {
    padding: 12px;
    border: 1.5px solid #bdbdbd;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    transition: var(--transition);
    font-size: 13px;
    color: #444;
}

.dropdown-header:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.dropdown-header.open {
    border-color: var(--primary-color);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border: 1.5px solid #bdbdbd;
    border-top: none;
    border-radius: 0 0 7px 7px;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.dropdown-options.open {
    max-height: 220px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f4f8;
    font-size: 13px;
    color: #444;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--bg-light);
}

.dropdown-option.selected {
    background-color: #f5f0ff;
    position: relative;
}

.dropdown-option.selected::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 10px;
}

.option-price {
    font-weight: 500;
    color: var(--primary-color);
}

/* Calendario */
.calendar-container {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-month {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.calendar-nav {
    display: flex;
    gap: 6px;
}

.calendar-nav button {
    background: #f8f9fa;
    border: 1.5px solid #bdbdbd;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 10px;
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: #eef3f8;
    border-color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 12px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 6px 0;
    font-size: 10px;
    color: #6b7c88;
    background: var(--bg-light);
    border-radius: 4px;
}

.calendar-day {
    text-align: center;
    padding: 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    border: 1px solid transparent;
}

.calendar-day:hover {
    transform: translateY(-2px);
    border-color: #bdbdbd;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(73, 197, 182, 0.4);
    transform: scale(1.08);
    animation: pulseDate 0.6s ease-in-out;
}

.calendar-day.disabled {
    background-color: rgba(255, 0, 0, 0.1);
    color: #d8e0e7;
    cursor: not-allowed;
}

.calendar-day.available {
    background-color: rgba(73, 197, 182, 0.1);
    border: 1px solid rgba(73, 197, 182, 0.2);
}

.calendar-day.available:hover {
    background-color: rgba(73, 197, 182, 0.2);
}

.calendar-day.weekend {
    background-color: rgba(255, 0, 0, 0.1);
    color: #a0a0a0;
}

/* Horarios */
.time-slots {
    display: none;
    margin-bottom: 15px;
    animation: slideUp 0.5s ease;
}

.time-slot-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 13px;
}

.form-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #bdbdbd;
    border-radius: var(--radius-sm);
    font-size: 12px;
    height: 38px;
    transition: var(--transition);
    background-color: #fafafa;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239aa8b4' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.form-select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 23, 106, 0.1);
}

/* Información de contacto */
.contact-info {
    display: none;
    animation: fadeIn 0.5s ease;
}

.contact-section-title {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.contact-section-title i {
    margin-right: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: 12px;
}

.required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #bdbdbd;
    border-radius: 5px;
    font-size: 12px;
    height: 38px;
    transition: var(--transition);
    background: #fafafa;
}

.form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 23, 106, 0.1);
}

.form-input::placeholder {
    color: #9aa8b4;
}

.contact-divider {
    height: 1px;
    background: #e9ecef;
    margin: 15px 0;
}

/* Resumen de pago */
.payment-summary {
    display: none;
    animation: slideUp 0.5s ease;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
}

.summary-total {
    font-weight: 600;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #d8e0e7;
    font-size: 16px;
    color: var(--secondary-color);
}

.payment-note {
    margin-top: 15px;
    font-size: 12px;
    color: #808A90;
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius);
}

.payment-note i {
    color: #019719;
    margin-right: 8px;
}

/* Botones */
.wizard-btn-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.wizard-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent-color);
    color: #222;
    transition: var(--transition);
}

.wizard-btn:hover {
    background: #f0d800;
}

.wizard-btn:disabled {
    background: #f7e97a;
    color: #aaa;
    cursor: not-allowed;
}

.wizard-btn.secondary {
    background: #f3f4f6;
    color: #444;
}

.wizard-btn.secondary:hover {
    background: #e5e7eb;
}

/* Contacto fijo */
.fixed-contact {
    margin-top: 15px;
    font-size: 10px;
    color: #7d8d9a;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid #eef3f8;
    text-align: center;
}

.fixed-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.fixed-contact a:hover {
    text-decoration: underline;
}

.fixed-contact i {
    margin-right: 5px;
}

.fixed-contact .fa-whatsapp {
    color: #25d366;
}

.fixed-contact .fa-envelope {
    color: #ea4335;
}

/* Selección mostrada */
.selected-slot-display {
    background: #f5f0ff;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid #d9c5ff;
    font-weight: 500;
    display: none;
    align-items: center;
    font-size: 12px;
}

.selected-slot-display i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* Animaciones */
@keyframes pulseDate {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(73, 197, 182, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(73, 197, 182, 0.5);
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 4px 15px rgba(73, 197, 182, 0.4);
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 800px) {
    .form-container {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-width: 640px;
    }
    
    .sidebar, .form-main {
        width: 100%;
    }
    
    .sidebar {
        height: auto;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .form-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        flex-direction: column;
    }
    
    .sidebar {
        display: none; /* Ocultar sidebar en móvil */
    }
    
    .form-main {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .form-header {
        padding: 15px 20px;
    }
}

@media (max-width: 650px) {
    .form-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .form-content {
        padding: 15px;
    }
    
    .form-header {
        padding: 12px 15px;
    }
} 