/* Mobile Repair Estimator - Frontend Styles */

:root {
    --mre-primary: #EF562D;
    --mre-primary-dark: #D64824;
    --mre-primary-light: #F27554;
    --mre-primary-bg: #FFF4F1;
    --mre-secondary: #0D3C60;
    --mre-success: #10b981;
    --mre-success-bg: #ecfdf5;
    --mre-bg: #F8F8F8;
    --mre-white: #ffffff;
    --mre-border: #e2e8f0;
    --mre-text: #1e293b;
    --mre-text-light: #64748b;
    --mre-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --mre-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --mre-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --mre-radius: 16px;
    --mre-radius-md: 12px;
    --mre-radius-sm: 8px;
}

/* Main Container */
.mre-estimator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.mre-estimator-header {
    text-align: center;
    margin-bottom: 40px;
}

.mre-estimator-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 12px 0;
}

.mre-estimator-subtitle {
    font-size: 16px;
    color: var(--mre-text-light);
    margin: 0;
}

/* Steps Container */
.mre-estimator-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Step */
.mre-step {
    background: var(--mre-white);
    border-radius: var(--mre-radius);
    box-shadow: var(--mre-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mre-step.mre-step-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.mre-step.mre-step-active {
    box-shadow: var(--mre-shadow-md);
}

.mre-step.mre-step-completed {
    opacity: 1;
    pointer-events: auto;
}

/* Step Header */
.mre-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--mre-bg);
    border-bottom: 1px solid var(--mre-border);
    cursor: pointer;
    transition: background 0.2s;
}

.mre-step-active .mre-step-header {
    background: var(--mre-primary-bg);
    border-bottom-color: var(--mre-primary);
}

.mre-step-completed .mre-step-header {
    background: var(--mre-success-bg);
}

.mre-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mre-border);
    color: var(--mre-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.mre-step-active .mre-step-number {
    background: var(--mre-primary);
    color: var(--mre-white);
}

.mre-step-completed .mre-step-number {
    background: var(--mre-success);
    color: var(--mre-white);
}

.mre-step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mre-text);
    flex: 1;
}

.mre-step-selected {
    font-size: 14px;
    color: var(--mre-primary);
    font-weight: 500;
    background: var(--mre-white);
    padding: 6px 14px;
    border-radius: 20px;
}

.mre-step-completed .mre-step-selected {
    background: var(--mre-white);
    color: var(--mre-success);
}

/* Step Content */
.mre-step-content {
    padding: 24px;
}

.mre-step-disabled .mre-step-content {
    display: none;
}

/* Brands Grid */
.mre-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.mre-brand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #F8F8F8 !important;
    border: 2px solid transparent;
    border-radius: var(--mre-radius-md);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 120px;
}

.mre-brand-btn:hover {
    background: var(--mre-white) !important;
    border-color: var(--mre-primary);
    transform: translateY(-2px);
    box-shadow: var(--mre-shadow-md);
}

.mre-brand-btn.selected {
    background: var(--mre-primary-bg) !important;
    border-color: var(--mre-primary);
}

.mre-brand-logo {
    max-width: 60px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
}

.mre-brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--mre-text-light);
}

.mre-brand-icon svg {
    width: 100%;
    height: 100%;
}

.mre-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--mre-text);
    text-align: center;
}

/* Categories Grid - Improved Design */
.mre-categories-grid {
    min-height: 100px;
}

.mre-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mre-category-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #F8F8F8 !important;
    border: 2px solid transparent;
    border-radius: var(--mre-radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
}

.mre-category-btn:hover {
    background: var(--mre-white) !important;
    border-color: var(--mre-secondary);
    box-shadow: var(--mre-shadow-md);
    transform: translateX(4px);
}

.mre-category-btn.selected {
    background: var(--mre-success-bg) !important;
    border-color: var(--mre-success);
}

.mre-category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--mre-radius-sm);
    background: var(--mre-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--mre-shadow);
}

.mre-category-icon {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.mre-category-icon-default {
    width: 28px;
    height: 28px;
    color: var(--mre-primary);
}

.mre-category-icon-default svg {
    width: 100%;
    height: 100%;
}

.mre-category-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mre-category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-category-count {
    font-size: 13px;
    color: var(--mre-text-light);
}

.mre-category-arrow {
    width: 24px;
    height: 24px;
    color: var(--mre-text-light);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.mre-category-arrow svg {
    width: 100%;
    height: 100%;
}

.mre-category-btn:hover .mre-category-arrow {
    color: var(--mre-secondary);
    transform: translateX(4px);
}

/* Step skipped state (auto-selected category) */
.mre-step-skipped .mre-step-content {
    display: none;
}

.mre-step-skipped .mre-step-header {
    background: var(--mre-success-bg);
}

.mre-step-skipped .mre-step-selected::before {
    content: "Auto: ";
    font-weight: 400;
    opacity: 0.7;
}

/* Models Grid */
.mre-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.mre-model-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #F8F8F8 !important;
    border: 2px solid transparent;
    border-radius: var(--mre-radius-md);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 140px;
}

.mre-model-btn:hover {
    background: var(--mre-white) !important;
    border-color: var(--mre-primary);
    transform: translateY(-2px);
    box-shadow: var(--mre-shadow-md);
}

.mre-model-btn.selected {
    background: var(--mre-primary-bg) !important;
    border-color: var(--mre-primary);
}

.mre-model-image {
    width: 64px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.mre-model-icon {
    width: 48px;
    height: 60px;
    margin-bottom: 12px;
    color: var(--mre-text-light);
}

.mre-model-icon svg {
    width: 100%;
    height: 100%;
}

.mre-model-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mre-text);
    text-align: center;
    line-height: 1.3;
}

.mre-model-repairs-count {
    font-size: 11px;
    color: var(--mre-text-light);
    margin-top: 4px;
}

/* Repairs List */
.mre-repairs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mre-repair-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    background: var(--mre-bg);
    border: 2px solid transparent;
    border-radius: var(--mre-radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .mre-repairs-list {
        gap: 8px;
    }
    
    .mre-repair-item {
        padding: 12px;
        gap: 8px;
    }
    
    .mre-repair-name {
        font-size: 13px !important;
    }
    
    .mre-repair-price {
        font-size: 14px !important;
    }
}

.mre-repair-item:hover {
    background: var(--mre-white);
    border-color: var(--mre-border);
    box-shadow: var(--mre-shadow);
}

.mre-repair-item.selected {
    background: var(--mre-primary-bg);
    border-color: var(--mre-primary);
}

/* Custom Checkbox */
.mre-repair-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mre-repair-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mre-repair-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: var(--mre-white);
    border: 2px solid var(--mre-border);
    border-radius: 6px;
    transition: all 0.2s;
}

.mre-repair-item:hover .mre-repair-checkmark {
    border-color: var(--mre-primary);
}

.mre-repair-checkbox input:checked ~ .mre-repair-checkmark {
    background-color: var(--mre-primary);
    border-color: var(--mre-primary);
}

.mre-repair-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mre-repair-checkbox input:checked ~ .mre-repair-checkmark:after {
    display: block;
}

.mre-repair-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--mre-radius-sm);
    background: var(--mre-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mre-primary);
}

.mre-repair-icon svg {
    width: 22px;
    height: 22px;
}

.mre-repair-info {
    flex: 1;
    min-width: 0;
}

.mre-repair-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--mre-text);
    margin-bottom: 2px;
}

.mre-repair-desc {
    font-size: 13px;
    color: var(--mre-text-light);
}

.mre-repair-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mre-primary);
    white-space: nowrap;
}

/* Loading State */
.mre-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
    color: var(--mre-text-light);
}

.mre-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mre-border);
    border-top-color: var(--mre-primary);
    border-radius: 50%;
    animation: mre-spin 0.8s linear infinite;
}

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

/* Empty State */
.mre-empty {
    text-align: center;
    padding: 40px;
    color: var(--mre-text-light);
    grid-column: 1 / -1;
}

/* No Model Message */
.mre-no-model-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--mre-white);
    border-radius: var(--mre-radius);
    box-shadow: var(--mre-shadow);
}

.mre-no-model-message svg {
    color: var(--mre-primary);
    margin-bottom: 24px;
}

.mre-no-model-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mre-text);
    margin: 0 0 12px 0;
}

.mre-no-model-text {
    font-size: 15px;
    color: var(--mre-text-light);
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Summary Panel */
.mre-summary {
    margin-top: 24px;
    background: var(--mre-white);
    border-radius: var(--mre-radius);
    box-shadow: var(--mre-shadow-lg);
    overflow: hidden;
    border: 2px solid var(--mre-primary);
}

.mre-summary-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--mre-primary) 0%, var(--mre-primary-dark) 100%);
}

.mre-summary-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--mre-white);
}

.mre-summary-content {
    padding: 24px;
}

.mre-summary-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mre-border);
    margin-bottom: 16px;
}

.mre-summary-device-icon {
    width: 40px;
    height: 40px;
    background: var(--mre-primary-bg);
    border-radius: var(--mre-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mre-primary);
}

.mre-summary-device-icon svg {
    width: 24px;
    height: 24px;
}

.mre-summary-device-info {
    flex: 1;
}

.mre-summary-brand-name {
    font-size: 12px;
    color: var(--mre-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mre-summary-model-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-summary-repairs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mre-summary-repair-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--mre-bg);
    border-radius: var(--mre-radius-sm);
}

.mre-summary-repair-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--mre-text);
}

.mre-summary-repair-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--mre-primary-bg) 0%, #dbeafe 100%);
    border-radius: var(--mre-radius-md);
    margin-bottom: 16px;
}

.mre-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-total-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--mre-primary);
}

.mre-summary-disclaimer {
    font-size: 12px;
    color: var(--mre-text-light);
    margin: 0;
    text-align: center;
    font-style: italic;
}

.mre-summary-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--mre-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mre-btn-icon {
    padding: 12px !important;
    min-width: auto !important;
}

.mre-btn-icon svg {
    margin: 0 !important;
}

/* Buttons */
.mre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--mre-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mre-btn-primary {
    background: #0D3C60 !important;
    color: #ffffff !important;
}

.mre-btn-primary:hover {
    background: #0a2d48 !important;
}

.mre-btn-secondary {
    background: #0D3C60 !important;
    color: #ffffff !important;
    border: 2px solid #0D3C60 !important;
}

.mre-btn-secondary:hover {
    background: #0a2d48 !important;
    border-color: #0a2d48 !important;
    color: #ffffff !important;
}

.mre-btn svg {
    width: 18px;
    height: 18px;
}

/* Animations */
.mre-fade-in {
    animation: mre-fadeIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mre-estimator {
        padding: 16px;
    }

    .mre-estimator-header h2 {
        font-size: 24px;
    }

    .mre-step-header {
        padding: 16px 20px;
    }

    .mre-step-content {
        padding: 20px;
    }

    .mre-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .mre-brand-btn {
        padding: 16px 12px;
        min-height: 100px;
    }

    .mre-category-btn {
        padding: 14px 16px;
        gap: 12px;
    }

    .mre-category-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .mre-category-icon {
        max-width: 28px;
        max-height: 28px;
    }

    .mre-category-name {
        font-size: 15px;
    }

    .mre-category-count {
        font-size: 12px;
    }

    .mre-models-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .mre-repair-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mre-repair-price {
        width: 100%;
        text-align: right;
    }

    .mre-summary-total {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .mre-total-amount {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .mre-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mre-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mre-step-title {
        font-size: 16px;
    }

    .mre-step-selected {
        display: none;
    }
}

/* Icon mappings for repairs */
.mre-icon-screen svg,
.mre-icon-battery svg,
.mre-icon-camera svg,
.mre-icon-speaker svg,
.mre-icon-microphone svg,
.mre-icon-charging svg,
.mre-icon-button svg,
.mre-icon-water svg,
.mre-icon-software svg,
.mre-icon-other svg {
    stroke: currentColor;
    fill: none;
}

/* ========== BOOKING MODAL ========== */
.mre-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mre-booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.mre-booking-container {
    position: relative;
    background: var(--mre-white);
    border-radius: var(--mre-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--mre-shadow-lg);
    animation: mre-modalIn 0.3s ease;
}

@keyframes mre-modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mre-booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF562D !important;
    font-size: 24px;
    transition: all 0.2s;
    z-index: 10;
}

.mre-booking-close:hover {
    transform: scale(1.1);
    color: #D64824 !important;
    background: transparent !important;
}

/* Progress Steps */
.mre-booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 0;
    gap: 8px;
}

.mre-booking-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mre-booking-progress-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mre-border);
    color: var(--mre-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.mre-booking-progress-step.active .mre-booking-progress-number {
    background: var(--mre-primary);
    color: var(--mre-white);
}

.mre-booking-progress-step.completed .mre-booking-progress-number {
    background: var(--mre-success);
    color: var(--mre-white);
}

.mre-booking-progress-label {
    font-size: 12px;
    color: var(--mre-text-light);
    font-weight: 500;
    text-align: center;
}

.mre-booking-progress-step.active .mre-booking-progress-label {
    color: var(--mre-primary);
}

.mre-booking-progress-line {
    flex: 1;
    height: 2px;
    background: var(--mre-border);
    max-width: 60px;
    margin-bottom: 24px;
}

/* Booking Steps */
.mre-booking-step {
    display: none;
    padding: 24px;
}

.mre-booking-step.active {
    display: block;
}

.mre-booking-step-header {
    text-align: center;
    margin-bottom: 24px;
}

.mre-booking-step-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 8px 0;
}

.mre-booking-step-header p {
    font-size: 14px;
    color: var(--mre-text-light);
    margin: 0;
}

.mre-booking-step-content {
    margin-bottom: 24px;
}

.mre-booking-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--mre-border);
}

.mre-booking-step-actions .mre-btn {
    flex: 1;
}

/* Booking Recap */
.mre-booking-recap {
    background: var(--mre-bg);
    border-radius: var(--mre-radius-md);
    padding: 20px;
}

.mre-booking-recap-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mre-border);
    margin-bottom: 16px;
}

.mre-booking-recap-device-icon {
    width: 48px;
    height: 48px;
    background: var(--mre-primary-bg);
    border-radius: var(--mre-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mre-primary);
}

.mre-booking-recap-device-icon svg {
    width: 24px;
    height: 24px;
}

.mre-booking-recap-device-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text);
    margin: 0 0 4px 0;
}

.mre-booking-recap-device-info span {
    font-size: 13px;
    color: var(--mre-text-light);
}

.mre-booking-recap-repairs {
    margin-bottom: 16px;
}

.mre-booking-recap-repairs h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--mre-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.mre-booking-recap-repair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--mre-border);
}

.mre-booking-recap-repair:last-child {
    border-bottom: none;
}

.mre-booking-recap-repair-name {
    font-size: 14px;
    color: var(--mre-text);
}

.mre-booking-recap-repair-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-booking-recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--mre-primary-bg);
    border-radius: var(--mre-radius-sm);
    margin-top: 16px;
}

.mre-booking-recap-total span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-booking-recap-total span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: var(--mre-primary);
}

/* Booking Form */
.mre-booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mre-booking-form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mre-booking-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mre-booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mre-booking-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-booking-form-group input,
.mre-booking-form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--mre-border);
    border-radius: var(--mre-radius-sm);
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.mre-booking-form-group input:focus,
.mre-booking-form-group textarea:focus {
    outline: none;
    border-color: var(--mre-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mre-booking-form-group input::placeholder,
.mre-booking-form-group textarea::placeholder {
    color: var(--mre-text-light);
}

.mre-booking-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Confirmation */
.mre-booking-confirmation {
    background: var(--mre-bg);
    border-radius: var(--mre-radius-md);
    overflow: hidden;
}

.mre-booking-confirmation-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mre-border);
}

.mre-booking-confirmation-section:last-child {
    border-bottom: none;
}

.mre-booking-confirmation-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--mre-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.mre-booking-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.mre-booking-confirmation-row span:first-child {
    color: var(--mre-text-light);
    font-size: 14px;
}

.mre-booking-confirmation-row span:last-child {
    font-weight: 500;
    color: var(--mre-text);
    font-size: 14px;
}

.mre-booking-confirmation-total {
    background: var(--mre-primary-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mre-booking-confirmation-total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text);
}

.mre-booking-confirmation-total span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: var(--mre-primary);
}

/* Success */
.mre-booking-success-content {
    text-align: center;
    padding: 40px 24px;
}

.mre-booking-success-icon {
    width: 80px;
    height: 80px;
    background: var(--mre-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--mre-success);
}

.mre-booking-success-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 16px 0;
}

.mre-booking-success-ref {
    font-size: 16px;
    color: var(--mre-text-light);
    margin: 0 0 8px 0;
}

.mre-booking-success-ref strong {
    color: var(--mre-primary);
    font-size: 18px;
}

.mre-booking-success-content p {
    font-size: 14px;
    color: var(--mre-text-light);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Button success variant */
.mre-btn-success {
    background: #0D3C60 !important;
    color: #ffffff !important;
}

.mre-btn-success:hover {
    background: #0a2d48 !important;
}

/* Loading state for button */
.mre-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.mre-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: mre-spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

.mre-btn-primary.loading::after {
    border-top-color: var(--mre-white);
}

.mre-btn-success.loading::after {
    border-top-color: var(--mre-white);
}

/* Responsive for booking modal */
@media (max-width: 600px) {
    .mre-booking-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .mre-booking-progress-label {
        display: none;
    }

    .mre-booking-progress-line {
        margin-bottom: 0;
    }

    .mre-booking-form-row-2 {
        grid-template-columns: 1fr;
    }

    .mre-booking-step-actions {
        flex-direction: column-reverse;
    }
}
