/* Pulzi – Idős kioszk felület: szembarát magas kontraszt */
:root {
    --pulzi-dark: #253745;
    --pulzi-primary: #2d7276;
    --pulzi-accent: #439e97;
    --pulzi-gray: #7f8387;
    --pulzi-gray-light: #d9e3e3;
    --pulzi-light: #f9fdff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--pulzi-light);
    color: var(--pulzi-dark);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Az űrlapelemek alapból nem öröklik a betűtípust */
button, input, select, textarea { font-family: inherit; }

.senior-page {
    min-height: 100vh;
    padding: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.senior-page h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--pulzi-dark);
    margin: 12px 0 20px;
    text-align: center;
}

/* Szekciók: tiszta blokkok határozott szegéllyel */
.section {
    background: #FFFFFF;
    border: 2px solid var(--pulzi-accent);
    border-radius: 20px;
    padding: 20px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37, 55, 69, 0.08);
}

.section h2 {
    margin: 0 0 14px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pulzi-primary);
    letter-spacing: -0.3px;
}

.row-fields {
    display: flex;
    gap: 14px;
}

.field { flex: 1; min-width: 0; }

.field label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pulzi-dark);
    margin-bottom: 8px;
}

/* Beviteli mezők: vastag, kontrasztos keret sötét számmal */
.field input {
    width: 100%;
    height: 86px;
    font-size: 2.7rem;
    font-weight: 800;
    text-align: center;
    border: 3px solid var(--pulzi-gray);
    border-radius: 16px;
    background: #FFFFFF;
    color: var(--pulzi-dark);
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
    outline: none;
    border-color: var(--pulzi-primary);
    box-shadow: 0 0 0 5px rgba(67, 158, 151, 0.35);
    background: var(--pulzi-light);
}

.field input.invalid {
    border-color: #DC2626;
    background: #FEF2F2;
    color: #991B1B;
}

.hint {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pulzi-dark);
    margin-top: 8px;
}

.error-msg {
    display: none;
    background: #FEE2E2;
    border: 2px solid #DC2626;
    color: #991B1B;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.error-msg.show { display: block; }

/* Hatalmas Mentés gomb */
.btn-big {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 96px;
    font-size: 2.3rem;
    font-weight: 800;
    border: 0;
    border-radius: 20px;
    background: var(--pulzi-primary);
    color: var(--pulzi-light);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(45, 114, 118, 0.35);
    letter-spacing: .5px;
}

.btn-big:active {
    background: var(--pulzi-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(37, 55, 69, 0.3);
}

.btn-big:disabled {
    opacity: .6;
    background: var(--pulzi-gray);
    box-shadow: none;
}

.btn-big.secondary {
    background: var(--pulzi-dark);
    min-height: 80px;
    font-size: 1.8rem;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(37, 55, 69, 0.25);
}

.sync-status {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pulzi-dark);
    margin-top: 16px;
    min-height: 1.4em;
}

/* Megerősítő képernyő */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--pulzi-primary);
    color: var(--pulzi-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirm-overlay.show { display: flex; }
.confirm-overlay .tick { font-size: 11rem; line-height: 1; }
.confirm-overlay .msg { font-size: 2.4rem; font-weight: 800; padding: 0 24px; }

/* Kódbeíró mező a párosításhoz */
.code-input {
    width: 100%;
    height: 96px;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    border: 3px solid var(--pulzi-gray);
    border-radius: 16px;
    background: #FFFFFF;
    color: var(--pulzi-dark);
}

.code-input:focus {
    outline: none;
    border-color: var(--pulzi-primary);
    box-shadow: 0 0 0 5px rgba(67, 158, 151, 0.35);
}

.link-back {
    display: block;
    text-align: center;
    color: var(--pulzi-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 28px;
    text-decoration: underline;
}
