/* ============================================================
   Axion Plumbing — Booking Modal
   ============================================================ */

/* ── Overlay ───────────────────────────────────────────────── */
.axion-bm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.axion-bm-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.axion-modal-open {
    overflow: hidden;
}

/* ── Modal container ────────────────────────────────────────── */
.axion-bm-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transform: translateY(24px);
    transition: transform 0.25s ease;
}

.axion-bm-overlay.is-open .axion-bm-modal {
    transform: translateY(0);
}

/* ── Header ─────────────────────────────────────────────────── */
.axion-bm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #121A22;
    padding: 16px 20px;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.axion-bm-logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.axion-bm-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.axion-bm-header-text strong {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.axion-bm-header-text span {
    color: #a0b4c8;
    font-size: 12px;
    line-height: 1.3;
}

.axion-bm-close {
    background: none;
    border: none;
    color: #a0b4c8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.axion-bm-close:hover {
    color: #fff;
}

/* ── Progress bar ───────────────────────────────────────────── */
.axion-bm-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    flex-shrink: 0;
    gap: 0;
}

.axion-bm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.axion-bm-progress-step span {
    font-size: 11px;
    color: #9aabb8;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.axion-bm-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #d1dce8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #9aabb8;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.axion-bm-progress-step.is-active .axion-bm-step-circle,
.axion-bm-progress-step.is-done .axion-bm-step-circle {
    border-color: #107CDF;
    background: #107CDF;
    color: #fff;
}

.axion-bm-progress-step.is-active span {
    color: #107CDF;
    font-weight: 600;
}

.axion-bm-progress-step.is-done span {
    color: #107CDF;
}

.axion-bm-progress-line {
    flex: 1;
    height: 2px;
    background: #d1dce8;
    margin-bottom: 22px;
    transition: background 0.2s;
    min-width: 16px;
}

.axion-bm-progress-line.is-done {
    background: #107CDF;
}

/* ── Error banner ───────────────────────────────────────────── */
.axion-bm-error {
    background: #fff5f5;
    border-left: 4px solid #d63638;
    color: #d63638;
    font-size: 13px;
    padding: 10px 20px;
    margin: 0 20px 0;
    border-radius: 0 4px 4px 0;
}

/* ── Panels ─────────────────────────────────────────────────── */
.axion-bm-panel {
    padding: 24px 24px 0;
    flex: 1;
}

.axion-bm-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #121A22;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* ── Service grid ───────────────────────────────────────────── */
.axion-bm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.axion-bm-service-card {
    border: 2px solid #e3eaf1;
    border-radius: 8px;
    padding: 14px 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    background: #fff;
    position: relative;
}

.axion-bm-service-card:hover {
    border-color: #107CDF;
    box-shadow: 0 2px 12px rgba(16, 124, 223, 0.12);
}

.axion-bm-service-card.is-selected {
    border-color: #107CDF;
    background: #eef5fd;
    box-shadow: 0 2px 12px rgba(16, 124, 223, 0.15);
}

.axion-bm-service-card.is-selected::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #107CDF;
}

.axion-bm-service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axion-bm-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.axion-bm-service-card span {
    font-size: 12px;
    font-weight: 600;
    color: #121A22;
    line-height: 1.35;
}

/* ── Form inputs ────────────────────────────────────────────── */
.axion-bm-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.axion-bm-form input,
.axion-bm-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d8e3ee;
    border-radius: 6px;
    font-size: 14px;
    color: #121A22;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    outline: none;
}

.axion-bm-form input:focus,
.axion-bm-form textarea:focus {
    border-color: #107CDF;
    box-shadow: 0 0 0 3px rgba(16, 124, 223, 0.12);
}

.axion-bm-form input::placeholder,
.axion-bm-form textarea::placeholder {
    color: #9aabb8;
}

.axion-bm-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Schedule: date + slots ─────────────────────────────────── */
.axion-bm-schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.axion-bm-date-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.axion-bm-date-wrap > span {
    font-size: 13px;
    font-weight: 600;
    color: #687693;
}

.axion-bm-date-wrap input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid #d8e3ee;
    border-radius: 6px;
    font-size: 14px;
    color: #121A22;
    background: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s;
    width: 100%;
    box-sizing: border-box;
}

.axion-bm-date-wrap input[type="date"]:focus {
    border-color: #107CDF;
}

.axion-bm-slots-title {
    font-size: 13px;
    font-weight: 600;
    color: #687693;
    margin: 0;
}

.axion-bm-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.axion-bm-slot-btn {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #d8e3ee;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #121A22;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.axion-bm-slot-btn:hover {
    border-color: #107CDF;
    background: #eef5fd;
}

.axion-bm-slot-btn.is-selected {
    border-color: #107CDF;
    background: #107CDF;
    color: #fff;
}

/* ── Panel footer ───────────────────────────────────────────── */
.axion-bm-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 24px;
    gap: 10px;
    border-top: 1px solid #eef1f6;
    margin-top: 20px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.axion-bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
    text-decoration: none;
    white-space: nowrap;
}

.axion-bm-btn--primary {
    background: #107CDF;
    color: #fff;
    border-color: #107CDF;
}

.axion-bm-btn--primary:hover {
    background: #0d6bc7;
    border-color: #0d6bc7;
    color: #fff;
}

.axion-bm-btn--primary:disabled {
    background: #9ac3ef;
    border-color: #9ac3ef;
    cursor: not-allowed;
    opacity: 0.75;
}

.axion-bm-btn--ghost {
    background: transparent;
    color: #687693;
    border-color: #d8e3ee;
}

.axion-bm-btn--ghost:hover {
    background: #f0f4f9;
    color: #121A22;
    border-color: #b8c8d8;
}

.axion-bm-call-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #107CDF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    white-space: nowrap;
}

.axion-bm-call-link:hover {
    color: #0d6bc7;
    text-decoration: underline;
}

/* ── Success panel ──────────────────────────────────────────── */
.axion-bm-success-panel {
    text-align: center;
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.axion-bm-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.axion-bm-success-panel h3 {
    font-size: 22px;
    font-weight: 700;
    color: #121A22;
    margin: 4px 0 0;
}

.axion-bm-success-panel p {
    font-size: 14px;
    color: #687693;
    max-width: 380px;
    line-height: 1.6;
    margin: 0;
}

.axion-bm-close-success {
    margin-top: 4px;
    font-size: 13px;
    padding: 8px 20px;
}

/* ── "Book Now" header button ───────────────────────────────── */
.wpo-site-header .header-right .axion-book-now-btn {
    background: #107CDF;
    color: #fff !important;
    border-color: #107CDF;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s;
    border: 2px solid #107CDF;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpo-site-header .header-right .axion-book-now-btn:hover {
    background: #0d6bc7;
    border-color: #0d6bc7;
    color: #fff !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 575px) {
    .axion-bm-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .axion-bm-panel {
        padding: 18px 16px 0;
    }

    .axion-bm-panel-footer {
        padding: 16px 0 20px;
    }

    .axion-bm-header {
        padding: 12px 16px;
    }

    .axion-bm-logo {
        height: 36px;
    }

    .axion-bm-header-text strong {
        font-size: 11px;
    }

    .axion-bm-progress {
        padding: 14px 12px 12px;
    }

    .axion-bm-progress-step {
        min-width: 44px;
    }

    .axion-bm-progress-step span {
        font-size: 10px;
    }

    .axion-bm-step-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .axion-bm-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .axion-bm-panel-title {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .axion-bm-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wpo-site-header .header-right .axion-book-now-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
