/* ==========================================================================
   WooCommerce Car Rental & Booking Plugin — Frontend Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Custom Shortcode and Single Product Page Button ── */
.pmp-book-now-btn {
    background-color: #f1c40f !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.pmp-book-now-btn:hover {
    background-color: #f39c12 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4) !important;
}

/* ── Modal Overlay ── */
.pmp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Modal Container ── */
.pmp-modal-container {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 1050px !important;
    max-height: 90vh !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    position: relative !important;
    padding: 40px !important;
    animation: pmpModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

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

/* ── Modal Close Button ── */
.pmp-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 26px !important;
    color: #888888 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.pmp-modal-close:hover {
    color: #111111 !important;
    background-color: #f0f0f0 !important;
}

/* ── Step Tabs Header ── */
.pmp-modal-header-tabs {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 30px;
    padding-bottom: 0px;
}

.pmp-header-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    color: #a0a0a0;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.pmp-header-tab.active {
    color: #1a1a1a;
    font-weight: 700;
}

.pmp-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background-color 0.3s;
}

.pmp-header-tab.active .pmp-tab-indicator {
    background: #f1c40f;
}

/* ── General Step Styles ── */
.pmp-modal-step {
    display: none;
}

.pmp-modal-step.active {
    display: block;
    animation: pmpFadeIn 0.3s ease;
}

.pmp-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.pmp-step-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px 0;
}

/* ── Form Inputs & Layouts ── */
.pmp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.pmp-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pmp-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.pmp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pmp-input-icon-wrapper {
    position: relative;
}

.pmp-input-field,
.pmp-select-field {
    width: 100%;
    height: 52px;
    padding: 10px 18px;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    color: #333 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none !important;
}

.pmp-input-field:focus,
.pmp-select-field:focus {
    border-color: #f1c40f !important;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.15) !important;
}

/* Custom Calendar and Clock icon absolute wrappers removed to prevent doubling */
.pmp-input-icon {
    display: none !important;
}

/* ── Step 2: Vehicle Selection Grid ── */
.pmp-filter-container {
    margin-bottom: 25px;
    text-align: left;
}

.pmp-filter-container label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.pmp-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.pmp-vehicle-card {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: none !important;
}

.pmp-vehicle-card:hover {
    border-color: #f1c40f !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05) !important;
}

.pmp-vehicle-card.selected {
    border-color: #f1c40f !important;
    background-color: #fffdf5 !important;
    box-shadow: 0 0 0 1px #f1c40f !important;
}

/* Booked out / Unavailable Vehicle style */
.pmp-vehicle-card.unavailable {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    background-color: #fafafa !important;
    border-color: #e0e0e0 !important;
}

.pmp-vehicle-card.unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e0e0e0 !important;
}

.pmp-vehicle-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.pmp-vehicle-info {
    margin-bottom: 12px;
}

.pmp-vehicle-cat {
    font-size: 11px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.pmp-vehicle-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

/* Availability Badges */
.pmp-avail-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.pmp-avail-badge.in-stock {
    background-color: #ecfdf5;
    color: #10b981;
}

.pmp-avail-badge.out-of-stock {
    background-color: #fef2f2;
    color: #ef4444;
}

.pmp-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #eaeaea;
}

.pmp-spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pmp-spec-icon-seats::before { content: '👥'; }
.pmp-spec-icon-trans::before { content: '⚙️'; }
.pmp-spec-icon-ac::before { content: '❄️'; }

.pmp-vehicle-pricing {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: #666;
    padding-top: 8px;
    border-top: 1px solid #eaeaea;
}

.pmp-pricing-val {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Step 3: Payment Layout ── */
.pmp-step-three-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.pmp-booking-summary-card {
    border: 1.5px solid #dcdcdc;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.pmp-summary-header {
    background: #f9f9f9;
    padding: 16px 20px;
    border-bottom: 1.5px solid #dcdcdc;
}

.pmp-summary-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.pmp-summary-body {
    padding: 20px;
}

.pmp-summary-car-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

#pmp-summary-car-img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.pmp-car-cat {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin: 0 0 2px 0;
    font-weight: 700;
}

.pmp-car-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.pmp-divider {
    border: none;
    border-top: 1.5px solid #eaeaea;
    margin: 15px 0;
}

.pmp-trip-row,
.pmp-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.pmp-trip-val {
    font-weight: 600;
    color: #1a1a1a;
}

.pmp-price-total {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 10px;
}

.pmp-price-total span:last-child {
    font-size: 18px;
    color: #f39c12;
}

/* ── Protection Selection Toggles ── */
.pmp-protection-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.pmp-protection-option {
    border: 1.5px solid #dcdcdc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    user-select: none;
}

.pmp-protection-option:hover {
    border-color: #f1c40f;
}

.pmp-protection-option.active {
    border-color: #f1c40f;
    background-color: #fffdf5;
}

.pmp-protection-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.pmp-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.pmp-protection-option.active .pmp-radio-custom {
    border-color: #f1c40f;
}

.pmp-protection-option.active .pmp-radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f1c40f;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pmp-opt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.pmp-shield-icon {
    font-size: 16px;
}

.icon-shield-slash::before { content: '🛡️'; }
.icon-shield-check::before { content: '✅'; }

.pmp-opt-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Billing and Card Fields Right Side ── */
.pmp-step-three-right {
    text-align: left;
}

.pmp-form-section {
    border: 1.5px solid #eaeaea;
    border-radius: 16px;
    padding: 20px;
    background: #fafafa;
    margin-bottom: 20px;
}

.pmp-form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    border-bottom: 1.5px solid #eaeaea;
    padding-bottom: 8px;
}

.pmp-card-brand-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #002d72;
    font-size: 12px;
}

/* ── Footer / Control Buttons ── */
.pmp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    border-top: 1.5px solid #eaeaea;
    padding-top: 20px;
}

/* Primary Button Override */
.pmp-btn-primary {
    background-color: #f1c40f !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3) !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.pmp-btn-primary:hover {
    background-color: #f39c12 !important;
    box-shadow: 0 6px 16px rgba(241, 196, 15, 0.4) !important;
}

/* Secondary Button Override */
.pmp-btn-secondary {
    background-color: #6b7280 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.pmp-btn-secondary:hover {
    background-color: #4b5563 !important;
}

.pmp-loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 15px;
    color: #666;
    grid-column: 1 / -1;
}

.pmp-error-alert {
    background-color: #fde8e8;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
    .pmp-form-grid,
    .pmp-form-grid-2,
    .pmp-step-three-grid {
        grid-template-columns: 1fr !important;
    }
    .pmp-modal-container {
        padding: 20px 15px !important;
        border-radius: 16px !important;
        max-height: 95vh !important;
        width: 95% !important;
    }
    .pmp-modal-header-tabs {
        margin-bottom: 20px !important;
        gap: 5px !important;
    }
    .pmp-header-tab {
        padding-bottom: 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 576px) {
    .pmp-modal-footer {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        padding-top: 15px !important;
    }
    .pmp-btn-primary, 
    .pmp-btn-secondary {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
    }
    .pmp-step-title {
        font-size: 22px !important;
    }
    .pmp-step-subtitle {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }
}

