/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Base Styles */
.transport-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.transport-booking-form {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    padding: 30px;
    border: 1px solid #e5e7eb;
}

/* Progress Steps */
.transport-booking-progress {
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.progress-steps:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.progress-step.active .step-number {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.progress-step.completed .step-number {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.progress-step.completed .step-number:before {
    content: '✓';
}

.step-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #1a1a1a;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #1a1a1a;
    font-weight: 600;
}

/* Booking Steps */
.booking-step {
    display: none;
}

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

.booking-step h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Form Styling */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.form-group.full-width {
    flex-basis: 100%;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0px!important;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-actions button {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-step {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.back-step:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.next-step {
    background-color: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #ffffff;
}

.next-step:hover {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
}

.next-step:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* Number Input */
.number-input {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    width: 100%;
    max-width: 140px;
}

.number-input button {
    width: 44px;
    height: 70px;
    background: #f9fafb;
    border: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-input button:hover {
    background: #e5e7eb;
    color: #000000;
}

.number-input button:active {
    background: #d1d5db;
}

.number-input input {
    flex: 1;
    height: 44px;
    border: none;
    padding: 0 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    -moz-appearance: textfield;
}

.number-input input:focus {
    outline: none;
    background: #f9fafb;
}

.number-input input::-webkit-outer-spin-button,
.number-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Route Pricing */
.route-price-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-details {
    font-weight: 600;
}

.route-price {
    color: #24489e;
    font-weight: bold;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

/* Required Field Indicator */
.required {
    color: #f44336;
}

/* Vehicle Selection */
.vehicles-grid {
    margin-bottom: 20px;
}

.vehicle-option {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vehicle-option:hover {
    border-color: #24489e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-option.selected {
    border-color: #24489e;
    background-color: rgba(36, 72, 158, 0.05);
    box-shadow: 0 2px 8px rgba(36, 72, 158, 0.2);
}

.vehicle-image {
    width: 380px;
    height: 360px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.vehicle-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.vehicle-image svg {
    color: #9e9e9e;
}

.vehicle-details {
    flex: 1;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vehicle-name {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 18px;
}

.vehicle-description {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-style: italic;
}

.vehicle-description.no-description {
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

.vehicle-capacity {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.vehicle-price-display {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dotted #eee;
}

.vehicle-price-display.custom-price-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    border-top: 1px solid #ffc107;
}

.custom-price {
    color: #856404;
    font-weight: 700;
    font-size: 16px;
}

.custom-price-note {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #856404;
    font-style: italic;
}

.price-label {
    font-weight: 600;
    color: #333;
}

.price-value {
    font-weight: 700;
    color: #24489e;
    font-size: 18px;
}

.price-breakdown {
    margin-top: 5px;
    padding: 5px 0;
    font-size: 14px;
    color: #666;
}

.price-detail {
    margin: 3px 0;
    font-style: italic;
}

.vehicle-select {
    display: flex;
    align-items: center;
}

.select-button {
    padding: 8px 16px;
    background: #24489e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.select-button:hover {
    background: #1c3776;
}

.vehicle-option.selected .select-button {
    background: #333;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 30px 0;
}

.hayc_spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(36, 72, 158, 0.3);
    border-radius: 50%;
    border-top-color: #24489e;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Passenger Notes */
.passenger-note {
    background: #f9f9f9;
    border-left: 4px solid #24489e;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.passenger-note p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.passenger-note .dashicons {
    color: #24489e;
    margin-right: 10px;
    font-size: 20px;
}

/* Return Trip Section */
.return-trip-section {
    background-color: #f0f7ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 5px solid #24489e;
}

.return-trip-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #24489e;
    font-size: 18px;
}

.checkbox-input {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.checkbox-input input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    width: auto;
}

.checkbox-input label {
    margin-bottom: 0;
}

#return-trip-summary {
    background-color: #f0f7ff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border-left: 4px solid #24489e;
}

#return-trip-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #24489e;
    font-size: 16px;
    border-bottom: 1px solid rgba(36, 72, 158, 0.2);
    padding-bottom: 8px;
}

#price-breakdown .price-detail {
    font-size: 14px;
    margin: 3px 0;
    color: #555;
}

/* Custom Location Inputs */
#custom-pickup-input,
#custom-dropoff-input,
#custom-return-pickup-input,
#custom-return-dropoff-input {
    margin-top: 10px;
}

#custom-pickup-text,
#custom-dropoff-text,
#custom-return-pickup-text,
#custom-return-dropoff-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.custom-location-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

/* Booking Summary */
.booking-summary {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-top: 30px;
}

.booking-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.summary-label {
    color: #666;
    font-weight: 600;
}

.summary-value {
    color: #333;
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-weight: bold;
    font-size: 16px;
}

.total-row .summary-value {
    color: #24489e;
    font-size: 18px;
}

/* Booking Confirmation */
.booking-confirmation {
    text-align: center;
    padding: 30px 15px;
}

.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.confirmation-icon.success {
    background: rgba(36, 72, 158, 0.1);
    color: #24489e;
}

.confirmation-icon.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.confirmation-success h3,
.confirmation-error h3 {
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.confirmation-success p,
.confirmation-error p {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

.confirmation-actions {
    margin-top: 30px;
}

/* Error Messages */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin: 5px 0;
}

.loading-message {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* Mobile Responsiveness */
/* Booking Confirmation Styling */
.booking-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-success, .confirmation-error {
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    display: inline-block;
    margin-bottom: 20px;
}

.confirmation-icon.success {
    color: #28a745;
}

.confirmation-icon.error {
    color: #dc3545;
}

.confirmation-success h3 {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 15px;
}

.confirmation-error h3 {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 15px;
}

.confirmation-actions {
    margin-top: 30px;
}

#new-booking-button, #try-again-button {
    background: linear-gradient(135deg, #24489e 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(36, 72, 158, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#new-booking-button:hover, #try-again-button:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(36, 72, 158, 0.4);
}

#new-booking-button:active, #try-again-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(36, 72, 158, 0.3);
}

.confirmation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

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

/* Price Hiding Feature */
.transport-booking-container.hide-prices .price-value,
.transport-booking-container.hide-prices .price-label,
.transport-booking-container.hide-prices #summary-price,
.transport-booking-container.hide-prices #summary-price-label,
.transport-booking-container.hide-prices .total-row,
.transport-booking-container.hide-prices #price-breakdown {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .transport-booking-form {
        padding: 20px;
        margin: 20px 0;
    }

    .step-label {
        font-size: 12px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        min-width: 100%;
        margin-bottom: 20px;
    }

    .number-input {
        max-width: 160px;
        margin: 0 auto;
    }

    .vehicle-option {
        flex-direction: column;
    }

    .vehicle-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .vehicle-details {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .vehicle-select {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
    }
}