/* ============================================================================
   CSS dla widoku "Sprawdź kolejkę" [kongres_sprawdz]
   Kongres Zdrowia Kobiet - System Kolejkowy v5.1
   Mobile-first: uczestniczki sprawdzają na telefonie
   ============================================================================ */

body, html {
    margin: 0;
    padding: 0;
    background: #fffafb;
    font-family: "Montserrat", sans-serif !important;
    height: 100%;
}

#wpadminbar,
header,
footer,
.site-header,
.site-footer,
.brx-header,
.brx-footer {
    display: none !important;
}

.kzk-check-wrapper,
.kzk-check-wrapper * {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif !important;
}

.kzk-check-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fffafb;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    z-index: 99999;
    overflow-y: auto;
}

.kzk-check-card {
    background: #ffffff;
    border: 2px solid #f9dae5;
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 20px rgba(217, 91, 139, 0.08);
    text-align: center;
    margin: auto;
}

.kzk-check-title {
    font-size: clamp(20px, 6vw, 26px) !important;
    font-weight: 800 !important;
    color: #d95b8b !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}

.kzk-check-subtitle {
    font-size: clamp(13px, 3.5vw, 15px) !important;
    color: #999 !important;
    font-weight: 500 !important;
    margin: 0 0 24px 0 !important;
}

/* --- Pole wpisywania numeru --- */

.kzk-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.kzk-check-input {
    flex: 1;
    font-size: clamp(20px, 6vw, 28px) !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 14px 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #222 !important;
    outline: none !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    min-width: 0; /* flex shrink fix */
}

.kzk-check-input::placeholder {
    color: #ccc !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    font-size: clamp(14px, 4vw, 18px) !important;
}

.kzk-check-input:focus {
    border-color: #d95b8b !important;
}

.kzk-btn-check {
    background: #d95b8b !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: clamp(14px, 4vw, 16px) !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(217, 91, 139, 0.3) !important;
    transition: all 0.2s !important;
}

.kzk-btn-check:active {
    background: #b8436e !important;
    transform: scale(0.95) !important;
}

.kzk-check-hint {
    font-size: 12px !important;
    color: #bbb !important;
    margin: 0 0 20px 0 !important;
    font-weight: 500 !important;
}

/* --- Wynik --- */

.kzk-result {
    display: none;
    margin-top: 20px;
    animation: kzkFadeIn 0.3s ease-out;
}

@keyframes kzkFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kzk-result-header {
    background: #fbe6ef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f9dae5;
}

.kzk-result-office {
    font-size: 13px !important;
    color: #888 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 2px;
}

.kzk-result-number {
    font-size: clamp(36px, 10vw, 48px) !important;
    font-weight: 800 !important;
    color: #222 !important;
    line-height: 1 !important;
    margin: 6px 0 !important;
}

.kzk-result-exam {
    font-size: 13px !important;
    color: #d95b8b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* --- Kafelki ze stanem --- */

.kzk-result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.kzk-stat-box {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}

.kzk-stat-label {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px;
}

.kzk-stat-value {
    font-size: clamp(22px, 7vw, 30px) !important;
    font-weight: 800 !important;
    color: #222 !important;
    line-height: 1.1 !important;
}

.kzk-stat-unit {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 600 !important;
}

/* --- Komunikat statusu --- */

.kzk-status-msg {
    border-radius: 12px;
    padding: 16px;
    font-size: clamp(14px, 4vw, 16px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.kzk-status-waiting {
    background: #fff3e0;
    border: 2px solid #ffe0b2;
    color: #e65100;
}

.kzk-status-soon {
    background: #e8f5e9;
    border: 2px solid #c8e6c9;
    color: #2e7d32;
}

.kzk-status-now {
    background: #e8f5e9;
    border: 2px solid #81c784;
    color: #1b5e20;
    font-size: clamp(16px, 5vw, 20px) !important;
}

.kzk-status-passed {
    background: #fbe6ef;
    border: 2px solid #f9dae5;
    color: #888;
}

.kzk-status-error {
    background: #fce4ec;
    border: 2px solid #f8bbd0;
    color: #c62828;
}

/* --- Obecnie obsługiwany --- */

.kzk-currently-serving {
    margin-top: 12px;
    font-size: 13px !important;
    color: #999 !important;
    font-weight: 600 !important;
}

.kzk-currently-serving strong {
    color: #d95b8b !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

/* --- Auto-odświeżanie info --- */

.kzk-auto-refresh {
    margin-top: 18px;
    font-size: 11px !important;
    color: #ccc !important;
    font-weight: 500 !important;
}

/* Przerwa w gabinecie */
.kzk-break-notice {
    margin-top: 10px;
    font-size: 13px !important;
    color: #e65100 !important;
    font-weight: 700 !important;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 8px 12px;
}

.kzk-refresh-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #81c784;
    margin-right: 4px;
    vertical-align: middle;
    animation: kzkPulse 2s infinite;
}

@keyframes kzkPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
