/**
 * Taxi Fare Calculator Public Styles
 */

.taxi-fare-estimator {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #495164;
}

.taxi-fare-estimator h3 {
    text-align: center;
    color: #495164;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 3px solid #6c7a8a;
    padding-bottom: 15px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495164;
}

.form-row select,
.form-row input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #8a97a6;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-row select:focus,
.form-row input[type="date"]:focus {
    outline: none;
    border-color: #495164;
    box-shadow: 0 0 5px rgba(73, 81, 100, 0.3);
}

.form-row select:hover,
.form-row input[type="date"]:hover {
    border-color: #6c7a8a;
}

.taxi-estimate-btn {
    width: 100%;
    background: #495164;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(73, 81, 100, 0.2);
}

.taxi-estimate-btn:hover {
    background: #3a414f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(73, 81, 100, 0.3);
}

.taxi-estimate-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#estimation-loading {
    text-align: center;
    color: #495164;
    font-weight: bold;
    padding: 10px;
    background: #f0f2f5;
    border: 2px solid #8a97a6;
    border-radius: 4px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* Estimation Results Styles */
.taxi-fare-estimation-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.taxi-fare-estimation-results h3 {
    text-align: center;
    color: #495164;
    margin-bottom: 30px;
    font-size: 28px;
}

.estimation-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.route-info {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #495164;
}

.route-info h4 {
    margin-top: 0;
    color: #495164;
    font-size: 20px;
}

.route-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #6c7a8a;
}

.vehicle-estimations h4 {
    color: #495164;
    font-size: 22px;
    margin-bottom: 20px;
}

.vehicle-estimation {
    background: white;
    border: 2px solid #8a97a6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(73, 81, 100, 0.1);
    transition: all 0.3s ease;
}

.vehicle-estimation:hover {
    border-color: #495164;
    box-shadow: 0 4px 10px rgba(73, 81, 100, 0.15);
}

.vehicle-estimation h5 {
    margin-top: 0;
    color: #495164;
    font-size: 18px;
    border-bottom: 2px solid #6c7a8a;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.capacity {
    color: #8a97a6;
    font-style: italic;
    margin-bottom: 15px;
}

.price-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.price-breakdown li {
    padding: 5px 0;
    border-bottom: 1px solid #e0e4e8;
}

.calculation {
    background: #f0f2f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #6c7a8a;
}

.total-price {
    font-size: 20px;
    font-weight: bold;
    color: #495164;
}

.return-price {
    font-size: 18px;
    font-weight: bold;
    color: #8a97a6;
}

.estimation-actions {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #e0e4e8;
}

.back-btn {
    display: inline-block;
    background: #8a97a6;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #6c7a8a;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(73, 81, 100, 0.2);
}

.form-row select option {
    padding: 10px;
}

.form-row select option[data-location-type="airport"]::before {
    content: "✈️ ";
}

.form-row select option[data-location-type="station"]::before {
    content: "🚉 ";
}

/* Responsive Design */
@media (max-width: 768px) {
    .estimation-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .taxi-fare-estimator,
    .taxi-fare-estimation-results {
        margin: 10px;
        padding: 15px;
    }

    .vehicle-estimation {
        padding: 15px;
    }

    .total-price {
        font-size: 18px;
    }

    .return-price {
        font-size: 16px;
    }
}