/* MTF Callback Widget — visual draft 2026-04-19 */

.mtf-cb-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    background: #fff;
    color: #2a2a2a;
    border: 1.5px solid #e8a87c;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.18s ease-out;
}

.mtf-cb-fab:hover {
    background: #e8a87c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(232, 168, 124, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mtf-cb-fab .mtf-cb-fab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8a87c;
    color: #fff;
    font-size: 14px;
    transition: background 0.18s ease-out;
}
.mtf-cb-fab:hover .mtf-cb-fab__icon {
    background: #fff;
    color: #e8a87c;
}

@media (max-width: 640px) {
    .mtf-cb-fab {
        bottom: 16px;
        left: 16px;
        padding: 10px 16px 10px 12px;
        font-size: 14px;
    }
    .mtf-cb-fab__label {
        display: none;
    }
    .mtf-cb-fab__icon {
        margin: 0;
    }
}

/* ─── Backdrop ───────────────────────────────────── */
.mtf-cb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}
.mtf-cb-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Modal ──────────────────────────────────────── */
.mtf-cb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    z-index: 10000;
    width: 92vw;
    max-width: 460px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out, transform 0.22s cubic-bezier(0.2, 1, 0.4, 1);
    max-height: 92vh;
    overflow-y: auto;
}
.mtf-cb-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.mtf-cb-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.mtf-cb-modal__close:hover {
    background: #f3f3f3;
    color: #2a2a2a;
}

.mtf-cb-modal__body {
    padding: 32px 28px 28px;
}

.mtf-cb-modal__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}
.mtf-cb-modal__intro {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* ─── Form ───────────────────────────────────────── */
.mtf-cb-form .mtf-cb-field {
    display: block;
    margin-bottom: 16px;
}
.mtf-cb-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 6px;
}
.mtf-cb-form input[type="text"],
.mtf-cb-form input[type="tel"],
.mtf-cb-form select,
.mtf-cb-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.mtf-cb-form input:focus,
.mtf-cb-form select:focus,
.mtf-cb-form textarea:focus {
    outline: none;
    border-color: #e8a87c;
    box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.18);
}
.mtf-cb-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Time tiles */
.mtf-cb-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.mtf-cb-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.mtf-cb-tile:hover {
    border-color: #e8a87c;
    color: #1a1a1a;
}
.mtf-cb-tile.is-selected {
    border-color: #e8a87c;
    background: #fdf5ef;
    color: #1a1a1a;
    font-weight: 600;
}
.mtf-cb-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mtf-cb-custom-time {
    display: none;
    margin-top: 8px;
}
.mtf-cb-custom-time.is-visible {
    display: block;
}

/* ─── Submit button ──────────────────────────────── */
.mtf-cb-submit {
    width: 100%;
    padding: 13px 20px;
    margin-top: 6px;
    background: #e8a87c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s, transform 0.08s;
}
.mtf-cb-submit:hover:not(:disabled) {
    background: #d89560;
}
.mtf-cb-submit:active:not(:disabled) {
    transform: scale(0.98);
}
.mtf-cb-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ─── Legal hint ─────────────────────────────────── */
.mtf-cb-legal {
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}
.mtf-cb-legal a {
    color: #999;
    text-decoration: underline;
}

/* ─── Success state ──────────────────────────────── */
.mtf-cb-success {
    display: none;
    text-align: center;
    padding: 20px 0 4px;
}
.mtf-cb-success.is-visible {
    display: block;
}
.mtf-cb-success__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5ea;
    color: #2e8540;
    font-size: 32px;
    margin-bottom: 16px;
}
.mtf-cb-success h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}
.mtf-cb-success p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.55;
}

/* ─── Error ──────────────────────────────────────── */
.mtf-cb-error {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #fdecea;
    color: #b94040;
    border-radius: 6px;
    font-size: 13px;
}
.mtf-cb-error.is-visible {
    display: block;
}
