/* Go Ticket Plugin Styles */

#go-ticket-form-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.go-ticket-form {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Progress Stepper */
.go-ticket-progress-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 80px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #10b981;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.step-line.completed {
    background-color: #10b981;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.step-title {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* Passenger Type Options */
.passenger-type-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.passenger-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
}

.passenger-option:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.passenger-option.active {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.passenger-option .option-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}

.passenger-option.active .option-icon {
    background: #10b981;
    color: white;
}

.passenger-option h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

/* Trip Type Options */
.trip-type-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.trip-option {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ffffff;
}

.trip-option:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.trip-option.active {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.trip-option .option-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.trip-option .option-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

/* Form Groups */
.go-ticket-form-group {
    margin-bottom: 24px;
}

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

.go-ticket-form-group .form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}



.go-ticket-form-group input,
.go-ticket-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.go-ticket-form-group input:focus,
.go-ticket-form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.go-ticket-form-group input::placeholder {
    color: #9ca3af;
}

.go-ticket-form-group input:invalid,
.go-ticket-form-group select:invalid {
    border-color: #ef4444;
}

/* Simulate Price Section */
.calculate-price-section {
    text-align: center;
    margin: 30px 0;
}

/* Trip Estimate */
.trip-estimate {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    animation: slideIn 0.3s ease-out;
}

.trip-estimate h3 {
    margin: 0 0 20px 0;
    color: #10b981;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.estimate-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.estimate-row .label {
    font-weight: 600;
    color: #374151;
}

.estimate-total {
    border-top: 2px solid #10b981;
    margin-top: 16px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: bold;
}

.estimate-total .label {
    color: #10b981;
}

#estimate-price {
    color: #10b981;
    font-size: 22px;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.btn-primary {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
}

.step-navigation .btn {
    flex: 1;
    max-width: 200px;
}

/* Summary */
.booking-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.booking-summary h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #6b7280;
    font-weight: 500;
}

.summary-item .value {
    color: #1f2937;
    font-weight: 600;
}

/* Loading Animation */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Messages */
.go-ticket-messages {
    margin-top: 20px;
    padding: 0;
}

.go-ticket-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.go-ticket-message.success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #10b981;
}

.go-ticket-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #ef4444;
}

.go-ticket-message.info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #3b82f6;
}

/* Google Places Autocomplete Styling */
.pac-container {
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.pac-item {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f9fafb;
}

.pac-item-selected {
    background-color: #10b981;
    color: white;
}

/* Location Input Wrapper */
.location-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.location-input-wrapper input {
    flex: 1;
    padding-right: 50px;
}

.map-trigger {background:none!important;border:none!important;padding:0!important;}

.map-trigger {background:none!important;border:none!important;padding:0!important;}

.map-trigger {background:none!important;border:none!important;padding:0!important;}

/* Map Modal Styles */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.modal-open {
    overflow: hidden;
}

.map-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.map-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.map-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: background 0.2s ease;
}

.map-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-modal-body {
    padding: 0;
}

.location-map {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
}

.map-controls {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

.selected-address {
    margin-bottom: 16px;
}

.selected-address label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.selected-address input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 14px;
    color: #6b7280;
}

.map-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.map-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.map-actions .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.map-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.map-actions .btn-primary {
    background: #10b981;
    color: white;
}

.map-actions .btn-primary:hover {
    background: #059669;
}

.map-actions .btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Map Location Messages */
.map-location-message {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}

.map-location-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.map-location-message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

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

/* Error States */
.go-ticket-form input.error,
.go-ticket-form select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Loading state for inputs */
.loading-autocomplete {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="%2310b981"><animate attributeName="r" begin="0s" dur="1.8s" values="3;8;3" calcMode="spline" keySplines="0.2,0.2,0.4,0.8;0.2,0.6,0.4,0.8" repeatCount="indefinite"/><animate attributeName="opacity" begin="0s" dur="1.8s" values="1;0;1" calcMode="spline" keySplines="0.2,0.2,0.4,0.8;0.2,0.6,0.4,0.8" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #go-ticket-form-container {
        margin: 10px;
        max-width: none;
    }
    
    .go-ticket-form {
        padding: 30px 20px;
    }
    
    .go-ticket-progress-stepper {
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .step {
        min-width: 60px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .trip-type-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-navigation .btn {
        max-width: none;
        width: 100%;
    }
    
    .estimate-row {
        font-size: 14px;
    }
    
    .passenger-option {
        padding: 16px;
    }
    
    .passenger-option .option-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .passenger-option h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .go-ticket-form {
        padding: 20px 16px;
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .go-ticket-form-group input,
    .go-ticket-form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .trip-estimate {
        padding: 20px;
    }
    
    .trip-estimate h3 {
        font-size: 18px;
    }
    
    .estimate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 14px;
    }
    
    .estimate-total {
        font-size: 16px;
    }
    
    #estimate-price {
        font-size: 20px;
    }

    /* Map Modal Mobile Styles */
    .map-modal {
        padding: 10px;
    }

    .map-modal-content {
        max-height: 95vh;
    }

    .location-map {
        height: 300px;
    }

    .map-controls {
        padding: 16px;
    }

    .map-actions {
        flex-direction: column;
        gap: 8px;
    }

    .map-actions .btn {
        width: 100%;
        padding: 12px;
    }

    .location-input-wrapper input {
        padding-right: 45px;
    }

    .map-trigger {background:none!important;border:none!important;padding:0!important;}

    .map-trigger {background:none!important;border:none!important;padding:0!important;}
}

.trip-option.disabled{opacity:0.5; pointer-events:none;}
.gt-suggest-box div:hover{background:#f5f5f5;}


/* === Force dark text in Trip Estimate & Summary (added by audit 2025-09-19) === */
.trip-estimate,
.trip-estimate .estimate-details,
.trip-estimate .estimate-row span,
.trip-estimate .estimate-row .label,
.booking-summary,
.booking-summary * {
  color: #000 !important;
}
/* Keep price accent as designed */
.estimate-total .label,
#estimate-price {
  color: #10b981 !important;
}



/* === Step 5 Success Screen === */
.submission-success-step {
  display: none;
  text-align: center;
}
.submission-card {
  margin: 40px auto;
  max-width: 520px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  color: #000 !important; /* force black text */
}
.submission-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #10b981;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  color: #fff;
}
.submission-title {
  font-size: 22px;
  margin: 8px 0 6px;
  color: #000 !important;
}
.submission-subtitle {
  margin: 0 0 16px;
  color: #111 !important;
  opacity: 0.9;
}
#go-back-home {
  margin-top: 8px;
}

/* === FR/BE toolbar styles === */
.gt-frbe-toolbar{display:flex;justify-content:flex-start;margin:8px 0}
.gt-frbe-tools{display:flex;gap:8px;flex-wrap:wrap}
.gt-frbe-btn{padding:8px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;cursor:pointer}
.gt-frbe-btn:hover{background:#f4f4f5}
.gt-frbe-clear{border-color:#fca5a5}

/* Active state */
.gt-frbe-btn.active{box-shadow:0 0 0 2px rgba(59,130,246,.25); border-color:#93c5fd}


/* === Go Ticket: Filters Bar === */
.gt-filters-bar { margin: 8px 0 10px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; }
.gt-filters-details summary { cursor: pointer; padding: 10px 12px; font-weight: 600; color: #0f172a; list-style: none; }
.gt-filters-details[open] summary { border-bottom: 1px solid #e5e7eb; }
.gt-filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; padding: 10px 12px; }
.gt-filters-grid label { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-filters-grid input[type="checkbox"] { transform: scale(1.05); }
@media (max-width: 600px) {
  .gt-filters-grid { grid-template-columns: repeat(2, 1fr); }
}
