/**
 * Moving Booking System Pro - Frontend Styles
 * Modern gradient theme (indigo → purple → pink)
 */

/* Booking Container */
.mcp-booking-container {
    max-width: 1200px;
    margin: 12px auto;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Side-by-side Layout */
.mcp-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: start;
    direction: ltr;
}

@media (max-width: 820px) {
    .mcp-booking-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .mcp-map-column {
        /* On mobile, show the map first */
        order: 1;
    }
    
    .mcp-form-column {
        /* And the form below it */
        order: 2;
    }

    /* Make the whole booking UI lighter and more compact on tablets/phones */
    .mcp-form {
        padding: 18px 16px;
    }
    .mcp-form h2 {
        font-size: 20px;
    }
    .mcp-form h3 {
        font-size: 16px;
        margin: 18px 0 10px;
    }
    .mcp-step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    .mcp-step-label {
        font-size: 12px;
    }
    .mcp-form-group label {
        font-size: 13px;
    }
    .mcp-form-group input[type="text"],
    .mcp-form-group input[type="tel"],
    .mcp-form-group input[type="email"],
    .mcp-form-group input[type="number"],
    .mcp-form-group input[type="date"],
    .mcp-form-group input[type="time"],
    .mcp-form-group input[type="password"],
    .mcp-form-group select,
    .mcp-form-group textarea {
        font-size: 14px;
        padding: 9px 12px;
    }
    .mcp-btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* Steps Progress */
.mcp-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.mcp-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb, #e5e7eb);
    z-index: 0;
}

.mcp-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mcp-step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mcp-step.active .mcp-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.mcp-step-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.mcp-step.active .mcp-step-label {
    color: #667eea;
    font-weight: 600;
}

/* Form */
.mcp-form {
    background: white;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.mcp-step-content {
    display: none;
}

.mcp-step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.mcp-form h2 {
    font-size: 24px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mcp-form h3 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #1f2937;
}

/* Form Row */
.mcp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Form Group */
.mcp-form-group {
    position: relative;
}

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

.mcp-form-group input[type="text"],
.mcp-form-group input[type="tel"],
.mcp-form-group input[type="email"],
.mcp-form-group input[type="number"],
.mcp-form-group input[type="date"],
.mcp-form-group input[type="time"],
.mcp-form-group input[type="password"],
.mcp-form-group select,
.mcp-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
    /* Prevent browser spell-check styling */
    -webkit-text-decoration-skip: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    /* Ensure text is visible and not affected by browser */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove red underline from spell-check and autocorrect */
.mcp-form-group input::-webkit-input-placeholder {
    color: #9ca3af;
}

.mcp-form-group input:-moz-placeholder {
    color: #9ca3af;
}

.mcp-form-group input::-moz-placeholder {
    color: #9ca3af;
}

.mcp-form-group input:-ms-input-placeholder {
    color: #9ca3af;
}

/* Disable browser autocomplete styling */
.mcp-form-group input:-webkit-autofill,
.mcp-form-group input:-webkit-autofill:hover,
.mcp-form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
}

.mcp-form-group input:focus,
.mcp-form-group select:focus,
.mcp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.mcp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Mobile-friendly faux selects (used only on small screens via JS) */
.mcp-select-wrapper {
    position: relative;
    box-sizing: border-box;
}

.mcp-select-display {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
}

.mcp-select-display::after {
    content: '\25BE'; /* small down arrow */
    font-size: 11px;
    color: #6b7280;
}

.mcp-select-display.is-open {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.mcp-select-panel {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    max-height: 220px !important;
    overflow-y: auto;
    padding: 6px 0;
    z-index: 1400;
    display: none !important;
}

.mcp-select-panel.is-open {
    display: block !important;
}

.mcp-select-option {
    width: 100% !important;
    padding: 8px 14px !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #111827 !important;
    cursor: pointer;
    box-sizing: border-box;
}

.mcp-select-option:hover,
.mcp-select-option.is-selected {
    background: rgba(102, 126, 234, 0.09);
}

/* Global bottom-sheet overlay for mobile selects */
.mcp-select-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2500;
}

.mcp-select-sheet {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.35);
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mcp-select-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.mcp-select-sheet-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mcp-select-sheet-close {
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 2px 6px;
    cursor: pointer;
    color: #6b7280;
}

.mcp-select-sheet-list {
    flex: 1;
    overflow-y: auto;
}

.mcp-select-sheet-option {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    cursor: pointer;
}

.mcp-select-sheet-option:last-child {
    border-bottom: none;
}

.mcp-select-sheet-option.is-selected {
    background: rgba(102, 126, 234, 0.08);
    font-weight: 600;
}

body.mcp-select-opened {
    overflow: hidden;
}

/* Suggestions */
.mcp-suggestions {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mcp-suggestions:not(:empty) {
    display: block !important; /* Show when has content */
}

.mcp-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    display: block; /* نص فقط بدون أيقونة */
    transition: background 0.2s ease;
}

.mcp-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
}

.mcp-suggestion-icon {
    display: none !important; /* خيار C: إخفاء أيقونة المكان بالكامل في نموذج الحجز */
}

.mcp-suggestion-text {
    display: block;
    font-size: 14px;
    color: #374151;
}

/* Map Column */
.mcp-map-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Map */
.mcp-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

.mcp-map {
    height: 500px;
    width: 100%;
    min-height: 400px;
    background: #e5e7eb;
}

@media (max-width: 968px) {
    .mcp-map-column {
        position: relative;
        top: 0;
    }
    
    .mcp-map {
        height: 350px;
    }
}

.mcp-route-info {
    position: absolute;
    top: 16px;
    right: 16px;
    /* Compact light pill so distance text is always clear */
    background: #ffffff !important;
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2000;
    font-size: 13px;
}

.mcp-route-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111827 !important;
}

/* Force distance text itself to stay dark and readable regardless of any theme overrides */
#mcp_route_info,
#mcp_route_info .mcp-route-detail,
#mcp_route_info #mcp_distance_display,
.mcp-map-container #mcp_distance_display {
    color: #111827 !important;
}

.mcp-icon {
    font-size: 20px;
}

/* Custom Markers */
.mcp-marker {
    font-size: 32px;
    text-align: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Checkbox Labels */
.mcp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mcp-checkbox-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.mcp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Service Types */
.mcp-service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.mcp-service-type {
    position: relative;
    cursor: pointer;
}

.mcp-service-type input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mcp-service-label {
    display: block;
    padding: 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

@media (max-width: 640px) {
    .mcp-service-label {
        font-size: 13px;
        padding: 10px 12px;
    }
}

.mcp-service-type input:checked + .mcp-service-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.mcp-service-type:hover .mcp-service-label {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Add-ons */
.mcp-addons {
    display: grid;
    gap: 15px;
}

.mcp-addon {
    display: block;
    cursor: pointer;
}

.mcp-addon input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.mcp-addon-content {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.mcp-addon:hover .mcp-addon-content {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.mcp-addon input:checked ~ .mcp-addon-content {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.04)) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important;
    transform: translateY(-2px) !important;
}

.mcp-addon input:checked ~ .mcp-addon-content .mcp-addon-name {
    color: #0f766e !important;
}

.mcp-addon input:checked ~ .mcp-addon-content::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.6);
}

.mcp-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mcp-addon-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.mcp-addon-price {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

.mcp-addon-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Price Breakdown */
.mcp-price-breakdown {
    /* Match the map instructions card exactly */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 14px !important;
    margin: 24px 0 16px;
    padding: 16px !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35) !important;
    border: none !important;
    color: #ffffff !important;
}

.mcp-price-breakdown h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.mcp-price-items {
    background: transparent !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

.mcp-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.mcp-price-item:last-child {
    border-bottom: none;
}

.mcp-price-item span:first-child {
    font-weight: 500;
    color: #e5e7eb;
}

.mcp-price-item span:last-child {
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
}

.mcp-price-breakdown .c2 {
    color: rgba(243, 244, 246, 0.9) !important;
}

.mcp-price-total {
    font-size: 18px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.mcp-price-total span {
    font-size: 18px;
    font-weight: 800;
}

.mcp-price-multiplier {
    font-style: italic;
    opacity: 0.9;
}

/* Buttons */
.mcp-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.mcp-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mcp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mcp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mcp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mcp-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.mcp-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
    transform: translateY(-2px);
}

.mcp-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.mcp-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Success Message */
.mcp-success-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.mcp-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mcp-success-message h2 {
    font-size: 32px;
    margin: 0 0 15px;
    color: #1f2937;
}

.mcp-success-message p {
    font-size: 16px;
    color: #6b7280;
    margin: 10px 0;
}

.mcp-order-number {
    font-size: 18px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 10px;
}

.mcp-order-number strong {
    color: #667eea;
    font-size: 20px;
}

/* Simple tooltip used in booking/field visit forms */
.mcp-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: help;
}

.mcp-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 11px;
    flex-shrink: 0;
}

.mcp-tooltip-text {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 200px;
    max-width: 260px;
    padding: 8px 10px;
    background: #111827;
    color: #f9fafb;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
}

.mcp-tooltip:hover .mcp-tooltip-text,
.mcp-tooltip:focus-within .mcp-tooltip-text {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .mcp-tooltip-text {
        max-width: 90vw;
    }
}

/* Loading */
.mcp-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .mcp-booking-container {
        padding: 8px 0 16px;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Stack layout: map first, then form in normal flow (no fixed bottom sheet) */
    .mcp-booking-layout {
        display: block;
    }

    .mcp-map-column {
        position: static;
        top: auto;
        height: auto;
        margin: 0 0 10px;
    }

    .mcp-map-container {
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
        overflow: hidden;
    }

    .mcp-map {
        height: 40vh;
        min-height: 230px;
    }

    /* Step-specific map height on mobile: larger on step 1, compact on 2 & 3 */
    .mcp-booking-container.is-step-1 .mcp-map {
        height: 45vh;
    }

    .mcp-booking-container.is-step-2 .mcp-map,
    .mcp-booking-container.is-step-3 .mcp-map {
        height: 180px;
        min-height: 140px;
    }

    .mcp-form-column {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        pointer-events: auto;
        margin: 4px 0 16px;
    }

    .mcp-form {
        border-radius: 16px;
        padding: 18px 14px 18px;
        margin: 0 6px 16px;
        box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
        max-height: none;
        overflow: visible;
        pointer-events: auto;
    }

    .mcp-steps {
        margin-bottom: 2px;
    }

    .mcp-steps::before {
        top: 12px;
    }

    .mcp-step-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
        margin-bottom: 2px;
    }

    .mcp-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mcp-route-info {
        top: 8px;
        right: 8px;
        flex-direction: row;
        gap: 6px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .mcp-service-types {
        grid-template-columns: 1fr;
    }

    .mcp-form-actions {
        flex-direction: column;
    }

    .mcp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mcp-booking-container {
        padding: 6px;
        margin: 8px auto;
    }
    .mcp-form {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .mcp-form-group label {
        font-size: 13px;
    }
    .mcp-step-label {
        font-size: 13px;
    }
    .mcp-form-group input[type="text"],
    .mcp-form-group input[type="tel"],
    .mcp-form-group input[type="email"],
    .mcp-form-group input[type="number"],
    .mcp-form-group input[type="date"],
    .mcp-form-group input[type="time"],
    .mcp-form-group input[type="password"],
    .mcp-form-group select,
    .mcp-form-group textarea {
        font-size: 13px;
        padding: 9px 12px;
    }
    /* Make native selects and their options feel lighter on mobile */
    .mcp-form-group select,
    .mcp-form-group select option,
    .mcp-form-group select optgroup {
        font-size: 13px;
        line-height: 1.3;
    }
    .mcp-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .mcp-success-message {
        padding: 32px 18px;
    }
    .mcp-success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
        font-size: 36px;
    }
    .mcp-success-message h2 {
        font-size: 24px;
    }
    .mcp-success-message p {
        font-size: 15px;
    }
    .mcp-order-number {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Collapsible media card in booking Step 1 */
.mcp-media-card-collapsible .mcp-media-card-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.mcp-media-card-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mcp-media-toggle {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
}

.mcp-media-toggle:hover {
    background: #e5e7eb;
}

.mcp-media-body {
    margin-top: 10px;
}

/* Collapsible Fields (WhatsApp & Additional Notes) */
.mcp-collapsible-field {
    margin-bottom: 20px;
}

.mcp-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.mcp-collapsible-header:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mcp-collapsible-header:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mcp-collapsible-header[aria-expanded="true"] {
    background: #f0f4ff;
    border-color: #667eea;
}

.mcp-collapsible-header[aria-expanded="true"] .mcp-collapsible-icon {
    transform: rotate(180deg);
    color: #667eea;
}

.mcp-collapsible-label {
    margin: 0;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.mcp-collapsible-header[aria-expanded="true"] .mcp-collapsible-label {
    color: #667eea;
}

.mcp-collapsible-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    display: inline-block;
    transform: rotate(0deg);
}

.mcp-collapsible-content {
    margin-top: 10px;
    padding: 0 2px;
    overflow: hidden;
}

.mcp-collapsible-content input,
.mcp-collapsible-content textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
}

.mcp-collapsible-content input:focus,
.mcp-collapsible-content textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.mcp-collapsible-content textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    /* Optional: keep page from scrolling while the user is actively editing the map */
    body.mcp-map-fullscreen-open {
        overflow: hidden;
    }

    .mcp-map-expand-btn {
        margin-top: 10px;
        padding: 6px 11px;
        font-size: 12px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #111827;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

    .mcp-map-expand-btn:active {
        background: #e5e7eb;
    }

    /* Visual highlight when map edit mode is active (no fullscreen layout) */
    .mcp-booking-container.mcp-map-fullscreen-open .mcp-map {
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.7);
    }

    .mcp-booking-container.mcp-map-fullscreen-open .mcp-map-expand-btn {
        background: #4f46e5;
        color: #f9fafb;
        border-color: #4338ca;
    }
}
