/*
 * Check-in kiosk: Flexiqueue theme for a customer-facing touchscreen (usually a tablet).
 * Very large tap targets, one clear step per screen.
 * Loaded last so it overrides the old intl-tel-input example styles (styles.css) and dl.css.
 */

/* ---------- Base ---------- */
html, body { background: #f5f7f8 !important; }
body { font-family: "Inter UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; color: #2f3a4a; -webkit-tap-highlight-color: transparent; }
a, button, .digit { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
#umMainCanvas { min-height: 100vh; }

/* undo the example stylesheet's blue buttons */
.btn { font-size: 1.05rem; font-weight: 700; border-radius: 14px; padding: .75rem 1.5rem; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn:active { box-shadow: none; }
.btn .ph-duotone { font-size: 1.4em; vertical-align: 0; }
.fq-btn-primary { background: #22847a !important; border: 1px solid #22847a !important; color: #fff !important; }
.fq-btn-primary:hover, .fq-btn-primary:focus { background: #1b6e65 !important; border-color: #1b6e65 !important; color: #fff !important; }
.fq-btn-outline { background: #fff !important; border: 2px solid #e3e7ea !important; color: #2f3a4a !important; }
.fq-btn-outline:hover { border-color: #22847a !important; color: #22847a !important; }
.fq-btn-light { background: #e3f3f0 !important; border: 1px solid #e3f3f0 !important; color: #2f3a4a !important; }

/* ---------- Screens ---------- */
.fq-k-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; text-align: center; }
.fq-k-screen .fq-k-screen { min-height: auto; padding: 0; }
.fq-k-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: #2f3a4a; font-size: 1.1rem; margin-bottom: 2rem; }
.fq-k-brand img { width: auto; height: 46px; }
.fq-k-hero { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; color: #2f3a4a; margin: 0 0 .5rem; }
.fq-k-lead { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #4f5b63; margin: 0 0 2.25rem; }
.fq-k-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #2f3a4a; margin: 0 0 .6rem; }
.fq-k-text { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #4f5b63; margin: 0 auto 1.5rem; max-width: 34rem; }
.fq-k-panel { background: #fff; border: 1px solid #e3e7ea; border-radius: 24px; box-shadow: 0 1rem 2.5rem rgba(47, 58, 74, .08); padding: 2.5rem 2rem; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }
.fq-k-panel-wide { max-width: 640px; }
.fq-k-icon { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e3f3f0; color: #22847a; margin-bottom: 1.25rem; }
.fq-k-icon .ph-duotone { font-size: 3.25rem; }
.fq-k-icon.fq-ok { background: #e1f1e5; color: #2f7a4a; }
.fq-k-icon.fq-warn { background: #fbf1df; color: #a16207; }
.fq-k-icon.fq-fb { background: #e8edf6; color: #3b5998; }
.fq-k-owner { font-size: .95rem; color: #6b7780; background: #f5f7f8; border-radius: 12px; padding: .75rem 1rem; margin: .5rem 0 1.25rem; max-width: 34rem; }

/* ---------- Start: three big tiles ---------- */
.fq-k-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; width: 100%; max-width: 980px; }  /* centred, so one or two enabled channels sit in the middle */
.fq-k-tiles > .fq-k-tile { flex: 0 1 calc((100% - 2.5rem) / 3); min-width: 0; }
.fq-k-tile {
    display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.25rem 1.25rem; min-height: 260px; justify-content: flex-start;   /* icons line up across tiles */
    background: #fff; border: 2px solid #e3e7ea; border-radius: 24px; color: #2f3a4a; text-decoration: none;
    box-shadow: 0 .5rem 1.5rem rgba(47, 58, 74, .06); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.fq-k-tile:hover, .fq-k-tile:focus { border-color: #22847a; color: #2f3a4a; text-decoration: none; box-shadow: 0 1rem 2rem rgba(47, 58, 74, .12); outline: none; }
.fq-k-tile:active { transform: scale(.98); background: #f6f8f9; }
.fq-k-tile strong { font-size: 1.5rem; font-weight: 800; }
.fq-k-tile > span:last-child { font-size: 1.05rem; color: #6b7780; line-height: 1.4; }
.fq-k-tile-icon { width: 104px; height: 104px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: #e3f3f0; color: #22847a; margin-bottom: .4rem; }
.fq-k-tile-icon .ph-duotone { font-size: 3.5rem; }
.fq-k-tile-icon.fq-wa { background: #e3f6ea; color: #1f9d55; }
.fq-k-tile-icon.fq-fb { background: #e8edf6; color: #3b5998; }

/* ---------- Number entry ---------- */
.fq-k-entry { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.fq-k-phone { margin: .25rem 0 1.25rem; }
.fq-k-phone .iti { width: 100%; }
.fq-k-phone #phone { width: 100%; height: 72px; font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; border: 2px solid #e3e7ea; border-radius: 16px; padding-top: 0; padding-bottom: 0; color: #2f3a4a; background: #fff; }
.fq-k-phone #phone:focus { outline: none; border-color: #22847a; box-shadow: 0 0 0 .25rem rgba(34, 132, 122, .15); }
.fq-k-phone .iti__flag-container { padding: 0 .25rem; }
.fq-k-phone .iti__selected-flag { border-radius: 14px 0 0 14px; padding: 0 .75rem; }
.fq-k-phone .alert-info { background: #e3f3f0; border-color: #c4e3de; color: #2f3a4a; border-radius: 12px; }
.fq-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.fq-keypad .digit, .fq-keypad .fq-key {
    height: 80px; margin: 0; padding: 0 !important; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: #2f3a4a; background: #fff; border: 2px solid #e3e7ea !important; border-radius: 18px !important;
    cursor: pointer; box-shadow: 0 .25rem .75rem rgba(47, 58, 74, .05);
}
.fq-keypad .digit:active { background: #e3f3f0; border-color: #22847a !important; transform: scale(.97); }
.fq-keypad .digit.border-success { border-color: #22847a !important; background: #e3f3f0; }
/* Clear and backspace keep their "C" and "<" values for the dial pad script, but show a label or icon */
.fq-keypad .fq-key-fn { font-size: 0; background: #f5f7f8; }
.fq-keypad .fq-key-fn span { font-size: 1.15rem; font-weight: 700; color: #4f5b63; }
.fq-keypad .fq-key-fn .ph-duotone { font-size: 2.1rem; color: #4f5b63; }
.fq-k-btn { min-height: 72px; font-size: 1.4rem; border-radius: 18px; width: 100%; }
.fq-k-btn-sm { min-height: 56px; font-size: 1.1rem; }
.fq-k-back { margin-top: .75rem; align-self: center; }

/* ---------- Results ---------- */
.fq-k-token { display: flex; flex-direction: column; align-items: center; background: #f5f7f8; border-radius: 20px; padding: 1.25rem 2.5rem; margin: .25rem 0 1.25rem; }
.fq-k-token span { font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7780; }
.fq-k-token strong { font-size: 6rem; font-weight: 800; line-height: 1; color: #22847a; font-variant-numeric: tabular-nums; }
.fq-k-reset { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: .5rem; color: #6b7780; font-size: 1.05rem; }
.fq-k-reset strong { color: #2f3a4a; font-variant-numeric: tabular-nums; }
.fq-k-qr { background: #fff; border: 2px solid #e3e7ea; border-radius: 20px; padding: 1rem; margin: 0 0 1.5rem; }
.fq-k-qr #FBqrcode { width: 220px; height: 220px; }
.fq-k-list { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; width: 100%; max-width: 30rem; }
.fq-k-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid #eef1f3; font-size: 1.1rem; }
.fq-k-list li:first-child { border-top: 0; }
.fq-k-list .ph-duotone { font-size: 1.6rem; color: #22847a; }

/* spinner while verifying */
#numberVerificationResult .spinner-border { color: #22847a !important; width: 4rem !important; height: 4rem !important; }
#numberVerificationResult .text-center { font-size: 1.2rem; color: #4f5b63; margin-top: .75rem; }

/* dialogs */
.fq-modal .modal-footer .btn { min-height: 52px; font-size: 1.05rem; }

/* ---------- Portrait tablets and phones ---------- */
@media (max-width: 820px) {
    .fq-k-tiles { display: grid; grid-template-columns: 1fr; max-width: 520px; gap: 1rem; }
    .fq-k-tile { flex-direction: row; min-height: 120px; padding: 1.25rem 1.5rem; text-align: left; gap: 1.1rem; }
    .fq-k-tile-icon { width: 80px; height: 80px; flex-shrink: 0; margin: 0; border-radius: 22px; }
    .fq-k-tile-icon .ph-duotone { font-size: 2.75rem; }
    .fq-k-tile strong { font-size: 1.35rem; }
    .fq-k-tile { display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto auto; column-gap: 1.1rem; row-gap: .2rem; align-items: center; }
    .fq-k-tile-icon { grid-row: 1 / 3; }
    .fq-k-tile > span:last-child { font-size: 1rem; }
}
@media (max-width: 420px) {
    .fq-keypad .digit, .fq-keypad .fq-key { height: 68px; }
    .fq-k-token strong { font-size: 4.5rem; }
    .fq-k-panel { padding: 2rem 1.25rem; }
}
