/* FoxAutoRent Premium UI */
:root {
    --fox-primary: #3b82f6;
    --fox-primary-dark: #2563eb;
    --fox-secondary: #6366f1;
    --fox-bg-dark: #0f172a;
    --fox-card-bg: #1e293b;
    --fox-text-main: #f8fafc;
    --fox-text-muted: #94a3b8;
    --fox-border: rgba(255, 255, 255, 0.1);
    --fox-radius: 16px;
    --fox-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.foxautorent-booking-form {
    max-width: 1000px;
    margin: 40px auto;
    padding: 32px;
    background: var(--fox-bg-dark);
    border-radius: var(--fox-radius);
    border: 1px solid var(--fox-border);
    box-shadow: var(--fox-shadow);
    color: var(--fox-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#fox-booking-engine .fox-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.fox-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fox-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fox-text-muted);
}

.fox-form-group select,
.fox-form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.fox-form-group select:focus,
.fox-form-group input:focus {
    border-color: var(--fox-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.fox-btn-search {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--fox-primary), var(--fox-secondary));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.fox-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    filter: brightness(1.1);
}

/* Results Grid */
.fox-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.fox-vehicle-card {
    background: var(--fox-card-bg);
    border-radius: var(--fox-radius);
    overflow: hidden;
    border: 1px solid var(--fox-border);
    transition: all 0.3s ease;
}

.fox-vehicle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--fox-shadow);
}

.fox-vehicle-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.fox-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fox-vehicle-card:hover .fox-vehicle-image img {
    transform: scale(1.05);
}

.fox-vehicle-details {
    padding: 24px;
}

.fox-vehicle-details h3 {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.fox-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.fox-vehicle-specs span {
    font-size: 0.85rem;
    color: var(--fox-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fox-vehicle-pricing {
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--fox-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.fox-price-label {
    font-size: 0.9rem;
    color: var(--fox-text-muted);
}

.fox-price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fox-primary);
}

.fox-price-amount::before {
    content: '$';
    font-size: 1rem;
    margin-right: 2px;
}

.fox-btn-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--fox-border);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fox-btn-select:hover {
    background: var(--fox-primary);
    border-color: var(--fox-primary);
}

/* Loader */
.fox-loader {
    text-align: center;
    padding: 60px;
    color: var(--fox-text-muted);
}

.fox-step-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(to right, white, var(--fox-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fox-step-subtitle {
    text-align: center;
    color: var(--fox-text-muted);
    margin-bottom: 40px;
}

/* Extras Selection */
.fox-extras-list {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.fox-extra-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.fox-extra-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.fox-extra-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: white;
}

.fox-extra-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fox-text-muted);
}

.fox-extra-action {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fox-extra-price {
    font-weight: 700;
    color: white;
}

.fox-extra-price small {
    font-weight: 400;
    color: var(--fox-text-muted);
    font-size: 0.75rem;
}

/* Custom Checkbox */
.fox-checkbox-container {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.fox-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.fox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--fox-border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fox-checkbox-container:hover input ~ .fox-checkmark {
    border-color: var(--fox-primary);
}

.fox-checkbox-container input:checked ~ .fox-checkmark {
    background-color: var(--fox-primary);
    border-color: var(--fox-primary);
}

.fox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fox-checkbox-container input:checked ~ .fox-checkmark:after {
    display: block;
}

/* Summary Bar */
.fox-booking-summary-bar {
    background: var(--fox-card-bg);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.fox-summary-total {
    display: flex;
    flex-direction: column;
}

.fox-summary-total span:first-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fox-text-muted);
}

#fox-live-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fox-primary);
}

.fox-btn-continue {
    background: var(--fox-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fox-btn-continue:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.fox-btn-back {
    margin-top: 16px;
    background: transparent;
    border: none;
    color: var(--fox-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Checkout Step */
.fox-checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}

.fox-form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.fox-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: white;
}

.fox-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fox-payment-options {
    display: grid;
    gap: 12px;
}

.fox-payment-option {
    cursor: pointer;
}

.fox-payment-option input {
    display: none;
}

.fox-payment-box {
    display: block;
    padding: 16px;
    border: 2px solid var(--fox-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fox-payment-option input:checked + .fox-payment-box {
    border-color: var(--fox-primary);
    background: rgba(59, 130, 246, 0.1);
}

.fox-payment-name {
    display: block;
    font-weight: 700;
    color: white;
}

.fox-payment-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--fox-text-muted);
}

.fox-summary-card {
    background: var(--fox-card-bg);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.fox-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fox-border);
    font-size: 0.95rem;
}

.fox-summary-total-final {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-weight: 800;
    font-size: 1.25rem;
}

.fox-btn-confirm {
    width: 100%;
    background: var(--fox-primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .fox-checkout-layout {
        grid-template-columns: 1fr;
    }
    .fox-form-grid {
        grid-template-columns: 1fr;
    }
}