/**
 * KingCabs Booking Widget Styles
 */

.kingcabs-booking-widget {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.kingcabs-booking-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-booking-container {
    background: #2c3e50;
    color: #ffffff;
}

.kingcabs-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    color: #2c3e50;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-title {
    color: #ffffff;
}

.kingcabs-form-group {
    margin-bottom: 20px;
}

.kingcabs-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-form-group label {
    color: #ecf0f1;
}

.kingcabs-form-group label i {
    margin-right: 5px;
    color: #3498db;
}

.kingcabs-input,
.kingcabs-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.kingcabs-input:focus,
.kingcabs-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-input,
.kingcabs-booking-widget[data-theme="dark"] .kingcabs-select {
    background: #34495e;
    border-color: #4a5f7f;
    color: #ffffff;
}

/* Vehicle Grid */
.kingcabs-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.kingcabs-vehicle-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.kingcabs-vehicle-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.kingcabs-vehicle-item.selected {
    border-color: #3498db;
    background: #ebf5fb;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-vehicle-item {
    background: #34495e;
    border-color: #4a5f7f;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-vehicle-item.selected {
    background: #2980b9;
    border-color: #3498db;
}

.kingcabs-vehicle-item .vehicle-image {
    margin-bottom: 10px;
}

.kingcabs-vehicle-item .vehicle-image img {
    max-width: 80px;
    height: auto;
}

.kingcabs-vehicle-item .vehicle-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-vehicle-item .vehicle-info h4 {
    color: #ffffff;
}

.kingcabs-vehicle-item .vehicle-capacity {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
}

/* Estimate Result */
.kingcabs-estimate-result {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.kingcabs-booking-widget[data-theme="dark"] .kingcabs-estimate-result {
    background: #34495e;
}

.estimate-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.estimate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimate-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
}

.estimate-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.kingcabs-booking-widget[data-theme="dark"] .estimate-value {
    color: #ffffff;
}

.estimate-amount {
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.estimate-amount .estimate-value {
    font-size: 24px;
    color: #27ae60;
}

/* Button */
.kingcabs-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.kingcabs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.kingcabs-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kingcabs-button .button-loader .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error Message */
.kingcabs-error {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fee;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    color: #c0392b;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .kingcabs-booking-container {
        padding: 20px;
    }
    
    .kingcabs-title {
        font-size: 24px;
    }
    
    .kingcabs-vehicle-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .kingcabs-vehicle-grid {
        grid-template-columns: 1fr 1fr;
    }
}
