/**
 * Transport Booking Flow - Premium Professional Design
 * Mobile-first responsive design for travel/tourism industry
 */

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f2ff;
    --secondary-color: #00a86b;
    --secondary-dark: #008554;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --error-color: #dc3545;
    --success-color: #10b981;
    --warning-color: #fbbf24;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.transport-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.transport-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.transport-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.transport-hero .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .transport-hero {
        padding: 40px 0 30px;
        margin-bottom: 30px;
    }

    .transport-hero .hero-title {
        font-size: 1.75rem;
    }

    .transport-hero .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.transport-booking-page {
    min-height: 100vh;
    background: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-flow-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* ========================================
   PROGRESS INDICATOR
   ======================================== */

.progress-indicator {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-normal);
    z-index: 2;
    position: relative;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
    transition: color var(--transition-normal);
}

.step-connector {
    height: 2px;
    background: var(--border-color);
    flex: 1;
    margin: 0 -10px;
    position: relative;
    top: -12px;
    transition: background var(--transition-normal);
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.step-item.completed .step-label {
    color: var(--success-color);
}

.step-item.completed ~ .step-connector {
    background: var(--success-color);
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .progress-indicator {
        padding: 20px 15px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .step-connector {
        margin: 0 -5px;
    }
}

/* ========================================
   STEP CONTENT
   ======================================== */

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .step-header {
        margin-bottom: 30px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 1rem;
    }
}

/* ========================================
   ROUTE CARDS (STEP 1)
   ======================================== */

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.route-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.route-header {
    margin-bottom: 16px;
}

.route-cities {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.route-arrow {
    color: var(--primary-color);
    font-weight: 700;
}

.route-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vehicles-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.route-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .routes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .route-card {
        padding: 20px;
    }
}

/* ========================================
   FORMS (STEP 2 & 5)
   ======================================== */

.trip-details-form,
.customer-details-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.passenger-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-decrease,
.btn-increase {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--border-radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-decrease:hover,
.btn-increase:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.passenger-selector .form-control {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .trip-details-form,
    .customer-details-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   VEHICLE CARDS (STEP 3)
   ======================================== */

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.vehicle-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--background-light);
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-content {
    padding: 20px;
}

.vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vehicle-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.vehicle-specs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.vehicle-capacity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.vehicle-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vehicle-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.no-vehicles-message {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.no-vehicles-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-vehicles-message p {
    font-size: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SUMMARY CARDS (STEP 4 & 6)
   ======================================== */

.summary-card,
.final-review-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 30px;
}

.summary-section,
.final-review-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.summary-section:last-child,
.final-review-section:last-child {
    border-bottom: none;
}

.summary-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: 12px;
}

.summary-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.selected-vehicle-card,
.final-vehicle-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--border-radius-md);
}

.summary-vehicle-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.selected-vehicle-card img,
.final-vehicle-card img,
.summary-vehicle-content img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.summary-vehicle-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.summary-vehicle-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.total-section {
    background: var(--primary-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-top: 20px;
}

.total-item {
    font-size: 1.25rem;
}

.total-price {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
}

.price-note {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
}

.btn-edit {
    position: absolute;
    top: 20px;
    right: 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.btn-edit:hover {
    background: var(--primary-light);
}

.final-review-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.final-review-section p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 8px 0;
}

.final-review-section p strong {
    color: var(--text-primary);
}

.final-price {
    text-align: center;
}

.final-price-amount {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .summary-card,
    .final-review-card {
        padding: 24px;
    }

    .selected-vehicle-card,
    .final-vehicle-card,
    .summary-vehicle-content {
        flex-direction: column;
        text-align: center;
    }

    .selected-vehicle-card img,
    .final-vehicle-card img,
    .summary-vehicle-content img {
        width: 100%;
        height: auto;
    }
}

/* ========================================
   TERMS & CONDITIONS
   ======================================== */

.terms-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
}

.loading-overlay p {
    color: var(--white);
    font-size: 1.125rem;
    margin: 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   SUCCESS SCREEN (STEP 7)
   ======================================== */

.success-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon {
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.booking-number-card {
    background: var(--primary-light);
    padding: 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 32px;
    display: inline-block;
    min-width: 300px;
}

.booking-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.booking-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.next-steps {
    background: var(--background-light);
    padding: 32px;
    border-radius: var(--border-radius-md);
    margin-bottom: 32px;
    text-align: left;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps-list li {
    padding: 12px 0 12px 36px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.next-steps-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .success-content {
        padding: 40px 24px;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .booking-number-card {
        min-width: auto;
        width: 100%;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: var(--background-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-submit {
    min-width: 250px;
}

.step-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }

    .btn-submit {
        min-width: auto;
    }
}

/* ========================================
   POPULAR TOURS SECTION
   ======================================== */

.popular-tours-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: 60px;
}

.popular-tours-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tour-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tour-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--background-light);
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.05);
}

.tour-content {
    padding: 20px;
}

.tour-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .popular-tours-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .booking-flow-container {
        padding-bottom: 40px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .progress-indicator,
    .step-actions,
    .popular-tours-section,
    .btn-edit {
        display: none;
    }

    .step-content {
        display: block !important;
    }

    .summary-card,
    .final-review-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
