:root {
    --mf-bk-panel: rgba(10, 27, 50, 0.82);
    --mf-bk-text: #edf7ff;
    --mf-bk-muted: #b9d3ea;
    --mf-bk-border: rgba(146, 211, 255, 0.24);
    --mf-bk-shadow: 0 26px 58px rgba(2, 8, 18, 0.42);
    --mf-bk-accent: #6cdfff;
    --mf-bk-glass: rgba(255, 255, 255, 0.06);
}

.mf-booking-wrap,
.mf-tracker-wrap {
    max-width: 820px;
    margin: 0 auto 28px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid var(--mf-bk-border);
    box-shadow: var(--mf-bk-shadow);
    background:
        radial-gradient(circle at top right, rgba(124, 244, 255, 0.12), transparent 35%),
        linear-gradient(180deg, var(--mf-bk-panel), rgba(7, 20, 37, 0.92));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--mf-bk-text);
}

.mf-steps-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mf-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.mf-step-dot.is-active,
.mf-step-dot.is-done {
    background: var(--mf-bk-accent);
}

.mf-step-panel {
    display: none;
    border: 1px solid var(--mf-bk-border);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.mf-step-panel.is-active {
    display: block;
}

.mf-panel-title {
    margin: 0 0 10px;
    color: var(--mf-bk-text);
}

.mf-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.mf-choice-grid--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mf-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mf-device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mf-choice-card--service {
    align-items: flex-start;
    gap: 12px;
    min-height: 140px;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mf-choice-card--device {
    align-items: flex-start;
    gap: 12px;
    min-height: 138px;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mf-choice-card--service .mf-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(108, 223, 255, 0.10);
    border: 1px solid rgba(108, 223, 255, 0.18);
    font-size: 18px;
    flex: 0 0 auto;
}

.mf-choice-card--device .mf-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(108, 223, 255, 0.10);
    border: 1px solid rgba(108, 223, 255, 0.18);
    font-size: 18px;
    flex: 0 0 auto;
}

.mf-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mf-choice-card--service .mf-choice-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.mf-choice-card--device .mf-choice-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.mf-choice-detail {
    color: var(--mf-bk-muted);
    font-size: 13px;
    line-height: 1.45;
}

.mf-choice-card.is-selected {
    border-color: var(--mf-bk-accent);
    box-shadow: 0 0 0 2px rgba(108, 223, 255, 0.18);
}

.mf-choice-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--mf-bk-border);
    border-radius: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.mf-choice-card--compact {
    padding: 7px 10px;
    border-radius: 999px;
}

.mf-choice-card:hover {
    border-color: var(--mf-bk-accent);
    transform: translateY(-1px);
}

.mf-choice-card input {
    margin: 0;
}

.mf-choice-icon {
    font-size: 12px;
    color: var(--mf-bk-muted);
}

.mf-choice-label {
    color: var(--mf-bk-text);
    font-weight: 600;
    font-size: 15px;
}

.mf-form-row {
    margin-bottom: 10px;
}

.mf-form-row input,
.mf-form-row textarea,
.mf-form-row select,
.mf-tracker-row input {
    width: 100%;
    border: 1px solid var(--mf-bk-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--mf-bk-glass);
    color: var(--mf-bk-text);
}

.mf-form-row input::placeholder,
.mf-form-row textarea::placeholder,
.mf-tracker-row input::placeholder {
    color: #b6cde2;
}

.mf-panel-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.mf-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
}

.mf-btn--primary {
    background: #76e1ff;
    color: #032239;
}

.mf-btn--secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #e4f2ff;
}

.mf-summary-box table {
    width: 100%;
    border-collapse: collapse;
}

.mf-summary-box th,
.mf-summary-box td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.mf-summary-box th {
    color: #b6cde2;
    width: 160px;
    font-weight: 600;
}

.mf-success-panel {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.mf-success-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
}

.mf-tracker-form p {
    color: var(--mf-bk-muted);
    margin-top: 4px;
}

.mf-tracker-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.mf-tracker-row input {
    flex: 1;
}

.mf-tracker-card {
    border: 1px solid var(--mf-bk-border);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.mf-tracker-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mf-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.mf-track-alert {
    border-radius: 10px;
    padding: 10px 12px;
}

.mf-track-alert.is-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ffd7d7;
}

@media (max-width: 700px) {

    .mf-service-grid {
        grid-template-columns: 1fr;
    }

    .mf-device-grid {
        grid-template-columns: 1fr;
    }

    .mf-booking-wrap,
    .mf-tracker-wrap {
        padding: 16px;
    }

    .mf-tracker-row {
        flex-direction: column;
    }

    .mf-panel-actions {
        flex-wrap: wrap;
    }
}