/* ===== TAXI CALCULATOR v5.0 - COMPLETE STYLING ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.taxi-calc-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 25%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.progress-step.active {
    color: #fff;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #fff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BOOKING STEPS ===== */
.booking-step {
    padding: 40px;
    animation: slideIn 0.3s ease;
}

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

.step-header {
    margin-bottom: 30px;
    text-align: center;
}

.step-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 14px;
    color: #999;
}

/* ===== FLOATING LABEL INPUTS ===== */
.form-group {
    margin-bottom: 25px;
}

.floating-label {
    position: relative;
    display: block;
}

.input-field {
    width: 100%;
    padding: 16px 0;
    padding-bottom: 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-bottom-color: #667eea;
}

.input-field:not(:placeholder-shown) + .label-text,
.input-field:focus + .label-text {
    transform: translateY(-24px);
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.label-text {
    position: absolute;
    left: 0;
    top: 16px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

textarea.input-field {
    resize: none;
    min-height: 100px;
}

/* ===== ROUTE INFO ===== */
.route-info {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.info-card {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

/* ===== SUMMARY SECTION ===== */
.summary-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
}

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

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

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

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

/* ===== FARE DISPLAY ===== */
.fare-display {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.fare-label {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.fare-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fare-note {
    font-size: 12px;
    opacity: 0.85;
}

/* ===== CONFIRMATION ===== */
.confirmation-box {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.confirmation-box h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.confirmation-ref {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
}

.confirmation-message {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
}

.confirmation-message p {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .taxi-calc-wrapper {
        margin: 20px;
        border-radius: 12px;
    }

    .booking-step {
        padding: 25px;
    }

    .step-header h2 {
        font-size: 22px;
    }

    .progress-steps {
        font-size: 12px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    .fare-amount {
        font-size: 32px;
    }
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.pac-container {
    z-index: 9999 !important;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pac-item {
    padding: 10px !important;
}
