/* WP Car Booking Pro Stylesheet */
.wp-car-booking-container {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    box-sizing: border-box;
}

.wp-car-booking-container * {
    box-sizing: border-box;
}

.wp-car-header {
    text-align: center;
    margin-bottom: 24px;
}

.wp-car-title {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.wp-car-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.wp-car-trip-types {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.wp-car-radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wp-car-radio-label input {
    margin: 0;
}

.wp-car-radio-label.active,
.wp-car-radio-label:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.wp-car-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .wp-car-grid-row {
        grid-template-columns: 1fr;
    }
}

.wp-car-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.wp-car-input-group {
    display: flex;
    gap: 6px;
}

.wp-car-input-group input,
.wp-car-col input,
.wp-car-customer-section input,
.wp-car-customer-section textarea,
.wp-car-vat-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.wp-car-input-group input:focus,
.wp-car-col input:focus,
.wp-car-customer-section input:focus,
.wp-car-customer-section textarea:focus,
.wp-car-vat-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wp-car-btn-pin {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 16px;
}

.wp-car-map-box {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.wp-car-distance-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 1000;
}

.wp-car-section-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.wp-car-vehicle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.wp-car-vehicle-item {
    position: relative;
    display: block;
    cursor: pointer;
}

.wp-car-vehicle-item input {
    position: absolute;
    top: 10px;
    right: 10px;
}

.wp-car-card-inner {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s;
}

.wp-car-vehicle-item:has(input:checked) .wp-car-card-inner {
    border-color: #2563eb;
    background: #f8faff;
}

.wp-car-card-inner h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #0f172a;
}

.wp-car-car-meta {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px 0;
}

.wp-car-rate {
    font-weight: 700;
    color: #2563eb;
    font-size: 14px;
}

.wp-car-vat-box,
.wp-car-customer-section,
.wp-car-payment-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.wp-car-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.wp-car-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.wp-car-payment-methods label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wp-car-summary-box {
    background: #0f172a;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

.wp-car-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.wp-car-summary-line.total {
    border-top: 1px solid #334155;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.wp-car-summary-line .highlight {
    color: #38bdf8;
    font-size: 22px;
}

.wp-car-btn-submit {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.2s;
}

.wp-car-btn-submit:hover {
    background: #1d4ed8;
}

/* Modal VietQR */
.wp-car-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wp-car-modal-content {
    background: #ffffff;
    max-width: 420px;
    width: 90%;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.wp-car-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.wp-car-qr-image-wrap img {
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: 8px;
}
