/* Aerotaxis Reservas - Frontend Styles */

/* Container principal */
.aerotaxis-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Línea de tiempo */
.aerotaxis-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #EAECEF;
    margin: 0 5px;
    border-radius: 6px;
}

.timeline-step:first-child {
    margin-left: 0;
}

.timeline-step:last-child {
    margin-right: 0;
}

.timeline-step.active {
    background: #349eeb;
    color: #fff;
}

.timeline-step.completed {
    background: #182a5b;
    color: #fff;
}

.timeline-step .step-number {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-step .step-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

/* Wrapper del formulario */
.aerotaxis-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Etapas del formulario */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-step h2 {
    color: #182a5b;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Opciones de servicio */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.service-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-option .option-content {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.service-option:hover .option-content {
    border-color: #349eeb;
    background: #f0f8ff;
}

.service-option input[type="radio"]:checked ~ .option-content {
    border-color: #349eeb;
    background: #e6f4ff;
}

.service-option .option-content h3 {
    margin: 0 0 8px 0;
    color: #182a5b;
    font-size: 20px;
}

.service-option .option-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.service-option .option-check {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #349eeb;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.service-option input[type="radio"]:checked ~ .option-check {
    display: flex;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #349eeb;
    box-shadow: 0 0 0 3px rgba(52, 158, 235, 0.1);
}

.form-help {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Select personalizado */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Datetime input */
input[type="datetime-local"].form-control {
    position: relative;
}

/* Opciones de pago */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option span {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fafafa;
}

.payment-option:hover span {
    border-color: #349eeb;
    background: #f0f8ff;
}

.payment-option input[type="radio"]:checked ~ span {
    border-color: #349eeb;
    background: #349eeb;
    color: #fff;
}

/* Resumen y detalles */
.summary-box, .fare-box, .info-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #349eeb;
}

.details-section {
    margin-bottom: 30px;
}

.details-section h3 {
    color: #182a5b;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
    text-align: right;
}

.total-box {
    background: #349eeb;
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

.total-label {
    font-size: 16px;
    margin-bottom: 5px;
}

.total-amount {
    font-size: 36px;
    font-weight: bold;
}

.note-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

/* Navegación del formulario */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-back, .btn-next, .btn-submit {
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back {
    background: #e0e0e0;
    color: #333;
}

.btn-back:hover {
    background: #d0d0d0;
}

.btn-next, .btn-submit {
    background: #349eeb;
    color: #fff;
    flex: 1;
}

.btn-next:hover, .btn-submit:hover {
    background: #2a8bd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 158, 235, 0.3);
}

.btn-next:disabled, .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje de éxito */
.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #349eeb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .aerotaxis-timeline {
        flex-wrap: wrap;
    }
    
    .timeline-step {
        flex-basis: calc(50% - 10px);
        margin-bottom: 10px;
    }
    
    .aerotaxis-form-wrapper {
        padding: 20px;
    }
    
    .form-step h2 {
        font-size: 24px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-back, .btn-next, .btn-submit {
        width: 100%;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .timeline-step {
        flex-basis: 100%;
    }
    
    .timeline-step .step-label {
        font-size: 11px;
    }
}

/* Autocompletado de Google Places */
.pac-container {
    z-index: 10000 !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
}

.pac-item {
    padding: 10px 15px;
    cursor: pointer;
    border-top: 1px solid #e0e0e0;
}

.pac-item:hover {
    background: #f0f8ff;
}

.pac-item:first-child {
    border-top: none;
}

/* Estados de validación */
.form-control.error {
    border-color: #dc3545;
}

.form-control.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}
