:root {
    /* Colors */
    --primary: #2196F3;
    --primary-hover: #1976D2;
    --success: #4CAF50;
    --success-hover: #45a049;
    --error: #f44336;
    --error-hover: #ff5252;
    --warning: #ffc107;
    --warning-hover: #ffa000;
    --background: #ffffff;
    --card-bg: #333333;
    --card-text: #ffffff;
    --card-secondary: #dddddd;
    --text-primary: #333333;
    --text-secondary: #444444;
    --border: #cccccc;
    --light-bg: #f5f5f5;
    --lighter-bg: #f9f9f9;
    --shadow: rgba(0,0,0,0.05);
    
    /* Spacing */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 12px;
}

/* === General Form Styling === */
.taxi-booking-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 20px var(--shadow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.taxi-booking-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-primary);
    text-align: center;
}

/* === Input Group === */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* === Button Styling === */
.book-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.book-btn:hover {
    background: var(--primary-hover);
}

/* === Fare Estimate Box === */
.fare-estimate {
    background: var(--lighter-bg);
    padding: 15px;
    border-left: 4px solid var(--success);
    margin-top: 15px;
    border-radius: var(--radius-md);
    font-size: 15px;
}

.fare-estimate p {
    margin: 5px 0;
}

/* === Payment Section === */
.payment-section {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

.payment-method-selector select {
    width: 100%;
}

/* === Vehicle Cards === */
.vehicle-selection {
    margin: 20px 0;
}

.vehicle-card {
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    font-family: sans-serif;
}

.vehicle-card h3 {
    margin: 0 0 10px;
    color: var(--card-text);
}

.vehicle-card p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--card-secondary);
}

.price-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.price-label {
    background: var(--warning);
    color: #000;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    position: relative;
    font-weight: bold;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
}

.price-label:hover,
.price-radio:checked + .price-label {
    background: var(--warning-hover);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--warning-hover);
}

.price-label del {
    color: var(--error);
    margin-right: 5px;
    font-weight: normal;
}

.discount-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--error);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Hide actual radio */
.price-radio {
    display: none;
}

/* === Booking Response Messages === */
#booking-response {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    display: none;
}

#booking-response.success {
    background-color: #e6f7e9;
    color: #2e7d32;
    border-left: 4px solid var(--success);
}

#booking-response.error {
    background-color: #fdecea;
    color: #c62828;
    border-left: 4px solid var(--error);
}

/* === Multi-pickup styling === */
.pickup-locations {
    margin-bottom: 15px;
}

.pickup-group {
    position: relative;
    margin-bottom: 10px;
}

.pickup-group .remove-pickup {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--error);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.pickup-group .remove-pickup:hover {
    background: var(--error-hover);
}

.add-pickup-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 15px;
}

.add-pickup-btn:hover {
    background: var(--success-hover);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .taxi-booking-form {
        padding: 15px;
    }

    .add-pickup-btn,
    .book-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        font-size: 14px;
    }
}