/* Step 1 - Styles basés sur wp-transport-booking */

.step-1-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 12px;
}

.loading-overlay.show {
    display: flex;
}

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

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

.step-one-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .step-one-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-column {
    order: 2;
}

@media (min-width: 1024px) {
    .form-column {
        order: 1;
    }
    
    .map-column {
        order: 2;
    }
}

.map-column {
    order: 1;
}

.form-card, .map-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.map-card {
    min-height: 400px;
    overflow: hidden;
}

.field-group {
    margin-bottom: 24px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.section-label {
    display: block;
    font-weight: 600;
    color: #1f2937 !important;
    margin-bottom: 12px;
    font-size: 16px;
}

.trip-type-selector {
    display: flex;
    gap: 8px;
    width: 100%;
}

.trip-type-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.trip-type-btn:hover:not(:disabled) {
    border-color: #f59e0b;
    color: #ffffff;
}

.trip-type-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1f2937;
}

.trip-type-btn:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.datetime-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .datetime-row {
        grid-template-columns: 1fr 1fr;
    }
}

.addresses-section {
    space-y: 16px;
}

.departure-section {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.departure-section .input-field-container {
    flex: 1;
}

.add-waypoint-btn {
    width: 48px;
    height: 48px;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.add-waypoint-btn:hover:not(:disabled) {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1f2937;
    transform: translateY(-1px);
}

.add-waypoint-btn:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.waypoints-container {
    margin: 16px 0;
}

.waypoint-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.waypoint-item:last-child {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    align-items: end;
    gap: 12px;
}

.input-group .input-field-container {
    flex: 1;
}

.remove-waypoint-btn {
    width: 36px;
    height: 36px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc2626;
    font-size: 18px;
    font-weight: 600;
}

.remove-waypoint-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

.destination-section {
    margin-top: 16px;
}

.booking-stepper-messages {
    margin-top: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.field-valid {
    border-color: #f59e0b !important;
}

.field-error {
    border-color: #ef4444 !important;
}

.field-warning {
    border-color: #f59e0b !important;
}

@media (max-width: 1023px) {
    .step-1-content {
        padding: 16px;
    }
    
    .form-card, .map-card {
        padding: 16px;
    }
    
    .map-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .datetime-row {
        grid-template-columns: 1fr;
    }
    
    .departure-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .add-waypoint-btn {
        width: 100%;
        height: 48px;
    }
}

.input-field-container .field-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-field-container .field-label {
    color: #1f2937;
    font-weight: 600;
}

.input-field-container .required {
    color: #f59e0b;
}

