/**
 * Mercedes Service Pricing - Frontend Styles
 */

/* ========================================
   AJAX Lookup Form Styles
   ======================================== */

.msp-shortcode-container {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.msp-lookup-form {
    background: white;
    border: 2px solid #00adef;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,173,239,0.1);
}

.msp-lookup-form h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1a1a1a;
    text-align: center;
}

.msp-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.msp-registration-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    text-transform: uppercase;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Dropdown specific styles */
select.msp-registration-input {
    text-transform: none;
    cursor: pointer;
    background-color: white;
}

select.msp-registration-input option {
    padding: 10px;
}

.msp-registration-input:focus {
    outline: none;
    border-color: #00adef;
    box-shadow: 0 0 0 3px rgba(0,173,239,0.1);
}

.msp-lookup-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, #00adef 0%, #0088cc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.msp-lookup-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,173,239,0.3);
}

.msp-lookup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.msp-lookup-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.msp-lookup-status.show {
    display: block;
}

.msp-loading {
    background: #e3f2fd;
    color: #1976d2;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.msp-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
}

.msp-pricing-results {
    margin-top: 20px;
}

/* WPForms Integration Styles */
.msp-wpforms-integration {
    margin-top: 15px;
}

.msp-wpforms-integration .msp-lookup-button {
    margin-bottom: 15px;
}

/* ========================================
   Service Options (A/B Service)
   ======================================== */

.msp-service-options {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.msp-service-options h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 22px;
}

.msp-service-option {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msp-service-option:hover {
    border-color: #00adef;
    background: #f8fbfd;
}

.msp-service-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
}

.msp-service-radio {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.msp-service-name {
    flex: 1;
}

.msp-service-price {
    font-weight: 700;
    color: #00adef;
    font-size: 20px;
}

.msp-service-desc {
    margin: 10px 0 0 35px;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
}

/* Highlight selected service */
.msp-service-option:has(input:checked) {
    border-color: #00adef;
    background: #e7f5fe;
    box-shadow: 0 0 0 3px rgba(0,173,239,0.1);
}

.msp-service-option:has(input:checked) label {
    color: #00adef;
}

.msp-service-option:has(input:checked) .msp-service-name {
    color: #00adef;
}

/* ========================================
   Main Pricing Container
   ======================================== */

.msp-pricing-container {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Vehicle Information Section */
.msp-vehicle-info {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.msp-vehicle-info h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #00adef;
    padding-bottom: 10px;
}

.msp-vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.msp-detail {
    display: flex;
    flex-direction: column;
}

.msp-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 5px;
}

.msp-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Base Service Section */
.msp-base-service {
    background: white;
    border: 2px solid #00adef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,173,239,0.1);
}

.msp-base-service h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.msp-base-service h3:before {
    content: '[OK]';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #00adef;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 12px;
    font-weight: bold;
}

.msp-base-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.msp-price-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.msp-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #00adef;
}

.msp-base-description {
    color: #666;
    line-height: 1.6;
}

.msp-base-description p {
    margin: 0;
}

/* Additional Items Section */
.msp-additional-items {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.msp-additional-items h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.msp-subtitle {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* Individual Service Items */
.msp-item {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.msp-item:hover,
.msp-item-hover {
    border-color: #00adef;
    background: white;
    box-shadow: 0 2px 8px rgba(0,173,239,0.15);
    transform: translateY(-2px);
}

.msp-item-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.msp-item-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00adef;
}

.msp-item-name {
    flex: 1;
    font-weight: 600;
    color: #1a1a1a;
}

.msp-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #00adef;
    margin-left: 15px;
}

.msp-item-description {
    margin: 10px 0 0 32px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.msp-item input[type="checkbox"]:checked ~ .msp-item-name {
    color: #00adef;
}

/* No Additional Items */
.msp-no-additional {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* Total Section */
.msp-total-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.msp-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.msp-total-label {
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.msp-total-amount {
    font-size: 36px;
    font-weight: 700;
    color: #00adef;
    transition: all 0.3s ease;
}

.msp-total-amount.msp-price-updated {
    transform: scale(1.1);
    color: #00ff88;
}

/* Book Button */
.msp-book-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, #00adef 0%, #0088cc 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,173,239,0.3);
}

.msp-book-button:hover {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    box-shadow: 0 6px 20px rgba(0,173,239,0.4);
    transform: translateY(-2px);
}

.msp-book-button:active {
    transform: translateY(0);
}

/* Error Message */
.msp-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.msp-error h3 {
    margin: 0 0 10px 0;
    color: #856404;
}

.msp-error p {
    margin: 0;
    color: #856404;
}

/* Responsive Design */
/* Mobile-first responsive styles */
@media (max-width: 640px) {
    .msp-shortcode-container {
        margin: 15px 10px;
    }
    
    .msp-lookup-form {
        padding: 20px 15px;
    }
    
    .msp-lookup-form h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Force vertical stacking on small screens */
    .msp-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .msp-registration-input {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        font-size: 16px !important;
        padding: 12px 15px !important;
        box-sizing: border-box;
    }
    
    .msp-lookup-button {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .msp-shortcode-container {
        margin: 20px 15px;
    }
    
    .msp-lookup-form {
        padding: 20px 15px;
    }
    
    .msp-lookup-form h3 {
        font-size: 20px;
    }
    
    /* Stack input and button vertically on mobile */
    .msp-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .msp-registration-input {
        width: 100%;
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .msp-lookup-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .msp-pricing-container {
        margin: 20px 15px;
    }
    
    .msp-vehicle-details {
        grid-template-columns: 1fr;
    }
    
    .msp-base-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .msp-price-amount {
        font-size: 24px;
    }
    
    .msp-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .msp-total-amount {
        font-size: 28px;
    }
    
    .msp-item-label {
        flex-wrap: wrap;
    }
    
    .msp-item-price {
        width: 100%;
        text-align: right;
        margin: 10px 0 0 32px;
    }
}

/* Loading Animation */
@keyframes msp-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.msp-loading {
    animation: msp-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   History Lookup Checkbox
   ======================================== */

/* History Lookup Checkbox Container */
.msp-history-lookup-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.msp-history-lookup-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.msp-history-checkbox {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.msp-history-lookup-label span {
    flex: 1;
    color: #333;
}

.msp-history-lookup-label:hover {
    color: #000;
}

/* Pricing Disclaimer */
.msp-pricing-disclaimer {
    margin: 15px 0 20px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.msp-disclaimer-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #856404;
}

.msp-disclaimer-text strong {
    color: #856404;
    font-weight: 600;
}

/* Interim Service - Distinct Styling */
.msp-service-option-interim {
    border-left: 3px solid #4caf50;
    background: #f1f8f4;
}

.msp-service-option-interim .msp-service-name {
    color: #2e7d32;
    font-weight: 600;
}

.msp-service-option-interim .msp-service-price {
    color: #4caf50;
    font-weight: bold;
}

.msp-service-option-interim .msp-service-desc {
    color: #666;
    font-style: italic;
}

/* Highlight when interim selected */
.msp-service-option-interim:has(input[type="radio"]:checked) {
    background: #c8e6c9;
    border-color: #2e7d32;
}

.msp-service-option-interim input[type="radio"]:checked ~ .msp-service-label {
    background: #c8e6c9;
}

/* ========================================
   Floating Scroll Indicator
   ======================================== */

.msp-scroll-indicator {
    position: fixed;
    right: 60px;
    bottom: 30%;
    background: #00adef;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,173,239,0.4);
    animation: msp-bounce 1.5s infinite;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.msp-scroll-indicator:hover {
    background: #0095cc;
    transform: scale(1.1);
}

.msp-scroll-arrow {
    font-size: 32px;
    font-weight: 900;
}

.msp-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes msp-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Mobile adjustments for scroll indicator */
@media (max-width: 768px) {
    .msp-scroll-indicator {
        right: 15px;
        width: 50px;
        height: 50px;
        bottom: 25%;
    }

    .msp-scroll-arrow {
        font-size: 28px;
        font-weight: 900;
    }
}

/* ================================================
   STEP INDICATOR
   ================================================ */
.msp-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.msp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.msp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.msp-step.completed:not(:last-child)::after {
    background: #00adef;
}

.msp-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease;
}

.msp-step.active .msp-step-number {
    background: #00adef;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,173,239,0.4);
}

.msp-step.completed .msp-step-number {
    background: #00adef;
    color: #fff;
}

.msp-step-label {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.msp-step.active .msp-step-label {
    color: #00adef;
    font-weight: 600;
}

.msp-step.completed .msp-step-label {
    color: #00adef;
}

/* ================================================
   CONTINUE BUTTON (Step 2)
   ================================================ */
.msp-continue-button {
    background: #00adef;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.msp-continue-button:hover {
    background: #0095cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,173,239,0.4);
}

/* ================================================
   SUMMARY PAGE (Step 3)
   ================================================ */
.msp-summary-container {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.msp-summary-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #00adef;
}

.msp-summary-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.msp-summary-section h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.msp-summary-details p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.msp-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.msp-summary-item:last-child {
    border-bottom: none;
}

.msp-summary-item-name {
    color: #333;
    font-size: 14px;
}

.msp-summary-item-price {
    color: #00adef;
    font-weight: 600;
    font-size: 14px;
}

.msp-summary-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.msp-summary-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* ================================================
   EXTRAS SECTION
   ================================================ */
.msp-extras-section {
    background: #e7f5ff;
    border: 2px solid #00adef;
}

.msp-extras-subtitle {
    color: #666;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.msp-extra-item {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.msp-extra-item:hover {
    box-shadow: 0 2px 8px rgba(0,173,239,0.2);
}

.msp-extra-item:last-child {
    margin-bottom: 0;
}

.msp-extra-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.msp-extra-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00adef;
}

.msp-extra-name {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.msp-extra-price {
    color: #00adef;
    font-weight: 600;
    font-size: 15px;
}

.msp-extra-description {
    margin: 8px 0 0 32px;
    color: #666;
    font-size: 13px;
}

/* ================================================
   SUMMARY TOTAL SECTION
   ================================================ */
.msp-summary-total-section {
    background: #333;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.msp-summary-subtotal,
.msp-summary-extras-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #555;
}

.msp-summary-grand-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    font-size: 20px;
    font-weight: bold;
}

.msp-summary-grand-total span:last-child {
    color: #00adef;
}

/* ================================================
   SUMMARY ACTION BUTTONS
   ================================================ */
.msp-summary-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.msp-back-button {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msp-back-button:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.msp-book-button {
    background: #00adef;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.msp-book-button:hover {
    background: #0095cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,173,239,0.4);
}

/* ================================================
   MOBILE RESPONSIVE - STEP INDICATOR & SUMMARY
   ================================================ */
@media (max-width: 768px) {
    .msp-step-indicator {
        padding: 15px 10px;
    }

    .msp-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .msp-step-label {
        font-size: 11px;
    }

    .msp-step:not(:last-child)::after {
        top: 16px;
        height: 2px;
    }

    .msp-summary-container {
        padding: 15px;
    }

    .msp-summary-title {
        font-size: 20px;
    }

    .msp-summary-actions {
        flex-direction: column;
    }

    .msp-back-button,
    .msp-book-button {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   CALENDAR DATE PICKER STYLES
   ============================================ */

/* Step 3: Date Picker Page */
.msp-date-picker-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.msp-date-title {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.msp-date-intro {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
}

/* Selected Date Box */
.msp-selected-date-box {
    background: linear-gradient(135deg, #e7f5fe 0%, #d4efff 100%);
    border: 2px solid #00adef;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
}

.msp-selected-date-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.msp-selected-date-value {
    font-size: 20px;
    font-weight: 700;
    color: #00adef;
}

/* Selection Summary on Date Page */
.msp-date-selection-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.msp-date-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.msp-date-summary-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.msp-date-summary-total {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
    padding-top: 12px;
    margin-top: 5px;
}

/* Date Page Actions */
.msp-date-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.msp-date-actions .msp-continue-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

/* Summary Date Display */
.msp-summary-date {
    background: linear-gradient(135deg, #e7f5fe 0%, #d4efff 100%);
    border-left: 4px solid #00adef;
}

.msp-summary-date-value {
    font-size: 18px;
    font-weight: 600;
    color: #00adef;
}

/* ============================================
   COURTESY CAR STYLES
   ============================================ */

/* Courtesy Car Section on Date Picker Page */
.msp-courtesy-car-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.msp-courtesy-car-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.msp-courtesy-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.msp-courtesy-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.msp-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #fff;
}

.msp-radio-option:hover {
    border-color: #00adef;
}

.msp-radio-option:has(input:checked) {
    border-color: #00adef;
    background: #e7f5fe;
}

.msp-radio-option input[type="radio"] {
    margin: 0;
    accent-color: #00adef;
}

.msp-courtesy-transmission {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.msp-courtesy-notice {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.msp-courtesy-availability {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #856404;
}

.msp-courtesy-billing {
    margin: 0;
    color: #856404;
}

/* Summary page courtesy car */
.msp-summary-courtesy {
    background: #f0f9ff;
    border-left: 4px solid #00adef;
}

.msp-courtesy-reminder {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 5px 0 0 0;
}

/* Date Section */
.msp-date-section {
    margin-top: 20px;
}

.msp-date-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Calendar Container */
.msp-calendar-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.msp-calendar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.msp-calendar-error {
    color: #dc3545;
}

/* Calendar Header */
.msp-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.msp-cal-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.msp-cal-prev,
.msp-cal-next {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.msp-cal-prev:hover,
.msp-cal-next:hover {
    background: #00adef;
    border-color: #00adef;
    color: #fff;
}

.msp-cal-refresh {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.msp-cal-refresh:hover {
    background: #f5f5f5;
    color: #00adef;
    border-color: #00adef;
}

/* Calendar Grid */
.msp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.msp-cal-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: #666;
    padding: 8px 0;
    text-transform: uppercase;
}

/* Day Cells */
.msp-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.msp-cal-day-num {
    position: relative;
    z-index: 1;
}

.msp-cal-empty {
    background: transparent;
}

/* Past dates */
.msp-cal-past {
    color: #ccc;
    cursor: not-allowed;
}

/* Weekend dates */
.msp-cal-weekend {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Blocked dates (holidays, closures) */
.msp-cal-blocked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.msp-cal-blocked::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: #dc3545;
    transform: rotate(-45deg);
}

/* Fully booked */
.msp-cal-full {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

/* Limited availability (1 slot) */
.msp-cal-limited {
    background: #fff3cd;
    color: #856404;
    cursor: pointer;
}

.msp-cal-limited:hover {
    background: #ffc107;
    color: #333;
}

/* Available */
.msp-cal-available {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
}

.msp-cal-available:hover {
    background: #28a745;
    color: #fff;
}

/* Selected date */
.msp-cal-selected {
    background: #00adef !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 173, 239, 0.4);
}

/* Unavailable (not in window) */
.msp-cal-unavailable {
    color: #ccc;
    cursor: not-allowed;
}

/* Calendar Legend */
.msp-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.msp-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.msp-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.msp-legend-dot.msp-cal-available {
    background: #d4edda;
    border: 1px solid #28a745;
}

.msp-legend-dot.msp-cal-limited {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.msp-legend-dot.msp-cal-full {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

/* Selected Date Display */
.msp-selected-date {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e7f5fe;
    border: 2px solid #00adef;
    border-radius: 8px;
    color: #00adef;
    font-size: 15px;
}

.msp-selected-date strong {
    color: #333;
}

/* Mobile Responsive Calendar */
@media (max-width: 480px) {
    .msp-calendar-container {
        max-width: 100%;
        padding: 10px;
    }

    .msp-cal-day {
        font-size: 12px;
    }

    .msp-cal-day-header {
        font-size: 10px;
    }

    .msp-calendar-legend {
        gap: 10px;
    }

    .msp-legend-item {
        font-size: 11px;
    }
}

/* ============================================
   CUSTOMER FORM STYLES (Step 5 - v90)
   ============================================ */

.msp-customer-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.msp-customer-form-title {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.msp-customer-form-intro {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
}

/* Form Layout */
.msp-customer-form-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.msp-customer-fields {
    flex: 1;
    min-width: 300px;
}

.msp-customer-summary {
    flex: 0 0 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

/* Form Fields */
.msp-form-field {
    margin-bottom: 20px;
}

.msp-form-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.msp-form-field label .msp-required {
    color: #dc3545;
    margin-left: 3px;
}

.msp-form-field input[type="text"],
.msp-form-field input[type="email"],
.msp-form-field input[type="tel"],
.msp-form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.msp-form-field input:focus,
.msp-form-field textarea:focus {
    outline: none;
    border-color: #00adef;
    box-shadow: 0 0 0 3px rgba(0,173,239,0.1);
}

.msp-form-field input.msp-field-error,
.msp-form-field textarea.msp-field-error {
    border-color: #dc3545;
}

.msp-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.msp-field-hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.msp-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.msp-form-field.has-error .msp-error-message {
    display: block;
}

/* Mini Summary in Form */
.msp-customer-summary h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #00adef;
}

.msp-mini-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.msp-mini-summary-item:last-child {
    border-bottom: none;
}

.msp-mini-summary-label {
    color: #666;
}

.msp-mini-summary-value {
    color: #333;
    font-weight: 500;
}

.msp-mini-summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

.msp-mini-summary-total span:last-child {
    color: #00adef;
}

/* Form Actions */
.msp-customer-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.msp-submit-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msp-submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
}

.msp-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.msp-submit-button.msp-loading {
    position: relative;
    color: transparent;
}

.msp-submit-button.msp-loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: msp-spin 0.8s linear infinite;
}

@keyframes msp-spin {
    to { transform: rotate(360deg); }
}

/* Form Error Alert */
.msp-form-error-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
    text-align: center;
}

/* ============================================
   CONFIRMATION PAGE STYLES (v90)
   ============================================ */

.msp-confirmation-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 20px;
}

.msp-confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: msp-scale-in 0.5s ease-out;
}

.msp-confirmation-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 3;
}

@keyframes msp-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.msp-confirmation-title {
    font-size: 28px;
    color: #28a745;
    margin: 0 0 10px 0;
}

.msp-confirmation-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.msp-confirmation-reference {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 25px;
    display: inline-block;
    margin-bottom: 30px;
}

.msp-confirmation-reference-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.msp-confirmation-reference-value {
    font-size: 24px;
    font-weight: 700;
    color: #00adef;
    font-family: monospace;
}

/* Confirmation Summary */
.msp-confirmation-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 25px;
}

.msp-confirmation-summary h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #00adef;
}

.msp-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.msp-confirmation-row:last-child {
    border-bottom: none;
}

.msp-confirmation-row-label {
    color: #666;
}

.msp-confirmation-row-value {
    color: #333;
    font-weight: 500;
}

.msp-confirmation-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
}

.msp-confirmation-total .msp-confirmation-row-value {
    font-size: 20px;
    color: #00adef;
    font-weight: 700;
}

/* Confirmation Actions */
.msp-confirmation-actions {
    margin-top: 25px;
}

.msp-new-booking-button {
    background: #00adef;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msp-new-booking-button:hover {
    background: #0095cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,173,239,0.4);
}

/* ============================================
   CUSTOMER FORM MOBILE RESPONSIVE (v90)
   ============================================ */

@media (max-width: 768px) {
    .msp-customer-form-container {
        padding: 20px 15px;
    }

    .msp-customer-form-content {
        flex-direction: column;
    }

    .msp-customer-fields {
        min-width: auto;
    }

    .msp-customer-summary {
        flex: none;
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }

    .msp-customer-form-actions {
        flex-direction: column;
    }

    .msp-back-button,
    .msp-submit-button {
        width: 100%;
        text-align: center;
    }

    .msp-confirmation-container {
        padding: 30px 20px;
    }

    .msp-confirmation-icon {
        width: 70px;
        height: 70px;
    }

    .msp-confirmation-title {
        font-size: 24px;
    }

    .msp-confirmation-reference-value {
        font-size: 20px;
    }

    .msp-confirmation-summary {
        padding: 20px 15px;
    }
}
