/* =====================================================================
   Fuse Concierge — Kiosk stylesheet
   Small-screen-first: primary target is the Galaxy Tab A11 8.7" in
   portrait; scales up comfortably to the A11+ 11". Designed for public,
   touch-only use: large targets, big type, high contrast, calm + trusted.
   ===================================================================== */

:root {
    --navy:        #0b1f3a;
    --navy-700:    #13294b;
    --navy-600:    #1d3a66;
    --accent:      #f0a830;   /* warm amber accent */
    --accent-700:  #d4901f;
    --paper:       #f6f7f9;
    --ink:         #11151c;
    --ink-soft:    #46505f;
    --line:        #d9dee6;
    --white:       #ffffff;
    --good:        #2e8b57;
    --radius:      18px;
    --shadow:      0 8px 28px rgba(11,31,58,0.12);
    --tap:         64px;      /* minimum touch target height */
    --pad:         clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    height: 100%;
}

body.kiosk {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* prevent text selection / long-press menus on a public kiosk */
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.kiosk-frame {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 760px;          /* keeps the 11" from feeling sparse */
    margin: 0 auto;
}

/* ---- Header --------------------------------------------------------- */
.kiosk-header {
    padding: var(--pad);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--white);
}
.brand {
    font-weight: 800;
    font-size: clamp(20px, 5vw, 28px);
    letter-spacing: 0.5px;
}
.brand span {
    color: var(--accent);
    font-weight: 600;
    margin-left: 2px;
}
.building-name {
    font-size: clamp(13px, 3.4vw, 16px);
    color: rgba(255,255,255,0.82);
    text-align: right;
    font-weight: 500;
}

/* ---- Main card ------------------------------------------------------ */
.kiosk-main {
    flex: 1;
    padding: 0 var(--pad) var(--pad);
    display: flex;
    flex-direction: column;
}
.card {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--pad);
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: rise 320ms ease both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1.screen-title {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.15;
    margin: 4px 0 6px;
    color: var(--navy);
    font-weight: 800;
}
.screen-sub {
    font-size: clamp(15px, 4vw, 18px);
    color: var(--ink-soft);
    margin: 0 0 var(--pad);
}

/* ---- Big choice buttons (welcome) ----------------------------------- */
.choices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    margin-bottom: auto;
}
.choice {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    padding: 20px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    font-size: clamp(19px, 5vw, 24px);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 120ms ease, background 120ms ease;
    cursor: pointer;
    width: 100%;
}
.choice:active { transform: scale(0.98); }
.choice.secondary { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
.choice .ico {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(240,168,48,0.18);
    color: var(--accent);
    font-size: 24px;
}
.choice.secondary .ico { background: rgba(11,31,58,0.08); color: var(--navy); }

/* ---- Lists (tenants / contacts / visitors) -------------------------- */
.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--tap);
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(16px, 4.4vw, 20px);
    font-weight: 600;
    transition: border-color 120ms ease, transform 100ms ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.list-item:active { transform: scale(0.99); }
.list-item .meta {
    font-size: 0.78em;
    color: var(--ink-soft);
    font-weight: 500;
}
.list-item .chev { color: var(--accent); font-size: 1.3em; flex: none; }

/* ---- Forms ---------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: clamp(14px, 3.6vw, 16px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="search"],
.field textarea {
    width: 100%;
    min-height: var(--tap);
    padding: 14px 16px;
    font-size: clamp(17px, 4.6vw, 20px);
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    -webkit-user-select: text;
    user-select: text;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(240,168,48,0.18);
}
.field textarea { min-height: 96px; resize: none; }

/* ---- Action buttons ------------------------------------------------- */
.actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}
.btn {
    flex: 1;
    min-height: var(--tap);
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    font-size: clamp(17px, 4.6vw, 20px);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 120ms ease, background 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:active { background: var(--accent-700); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); flex: 0 0 auto; }

/* ---- Confirmation --------------------------------------------------- */
.confirm-icon {
    width: 92px; height: 92px;
    margin: 8px auto 18px;
    border-radius: 50%;
    background: rgba(46,139,87,0.12);
    color: var(--good);
    display: grid; place-items: center;
    font-size: 50px;
    animation: pop 380ms cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.directions-box {
    background: var(--white);
    border: 2px dashed var(--accent);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.45;
    color: var(--ink);
}
.directions-box .label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-700);
    font-weight: 800;
    margin-bottom: 6px;
}
.notify-line {
    font-size: clamp(15px, 4vw, 18px);
    color: var(--ink-soft);
    text-align: center;
    margin: 6px 0;
}
.call-box {
    background: var(--navy);
    color: var(--white);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    margin: 16px 0;
}
.call-box .num {
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
}

/* ---- Alerts --------------------------------------------------------- */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 600;
    margin-bottom: 16px;
}
.alert-error { background: #fdecec; color: #a12626; border: 1px solid #f3bcbc; }
.alert-info  { background: #eaf1fb; color: #1d3a66; border: 1px solid #c3d6f2; }

/* ---- Empty state ---------------------------------------------------- */
.empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 40px 16px;
    font-size: clamp(16px, 4.2vw, 18px);
}

/* ---- Footer --------------------------------------------------------- */
.kiosk-footer {
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ---- Back link ------------------------------------------------------ */
.backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(14px, 3.8vw, 16px);
    margin-bottom: 14px;
}
.backlink .chev { color: var(--accent); }

/* ---- Larger tablets (A11+ 11" and up) ------------------------------- */
@media (min-width: 680px) {
    :root { --pad: 36px; }
    .choices { gap: 20px; }
    .choice { min-height: 110px; }
}

/* ---- Landscape safety (if a tablet is mounted landscape) ------------ */
@media (orientation: landscape) and (max-height: 560px) {
    .kiosk-main { padding-bottom: 12px; }
    .card { padding: 20px; }
    .confirm-icon { width: 64px; height: 64px; font-size: 34px; margin-bottom: 10px; }
}
