/* "Moje konto" stage dashboard — mobile-first */
.account { max-width: 760px; }
/* greeting row (2026-10-07): name + person icon with a drop-down menu */
.account__greeting { gap: 1rem; }
.account__hello { color: #004472; font-size: 1.15rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu__toggle { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #cce2f1; background: #fff; color: #004472; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.account-menu__toggle:hover, .account-menu__toggle[aria-expanded="true"] { border-color: #00c3ff; color: #00c3ff; }
.account-menu__list { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 200px; background: #fff; border: 2px solid #cce2f1; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,68,114,.12); padding: .35rem 0; z-index: 50; }
.account-menu__list[hidden] { display: none; }
.account-menu__item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem 1.1rem; color: #004472; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.account-menu__item:hover { background: #eef7fc; color: #004472; text-decoration: none; }
.account-menu__item--danger { color: #dc3545; border-top: 1px solid #e9eef3; margin-top: .25rem; padding-top: .7rem; }
.account-menu__item--danger:hover { color: #dc3545; background: #fff3f4; }

.policy-card { max-width: none; }
.policy-card__title { color: #004472; font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem; }
.policy-card .info-text { color: #004472; }
/* coupon box (2026-09-15) */
.coupon-card { max-width: none; padding: 1.25rem 1.5rem !important; }   /* compact: the auth-card p-md-5 top padding (3rem) is too much for one line */
@media (max-width: 767px) { .coupon-card { padding: 1rem !important; } }
.coupon-card[hidden] { display: none !important; }
.coupon-toggle { margin-top: -1rem; }
.coupon-toggle a { color: #004472; text-decoration: underline; font-size: .95rem; }
.coupon-card__title { color: #004472; font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem; }
.coupon-card__row { display: flex; gap: .5rem; }
.coupon-card__row .form-control { flex: 1 1 auto; text-transform: uppercase; }
.coupon-card__row .btn { flex: 0 0 auto; min-width: 0; padding: 0 1.25rem; }
.coupon-card__active { display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: #155724; }
.coupon-card__active .btn-link { background: none; border: 0; padding: 0; color: #6c757d; text-decoration: underline; cursor: pointer; }
.coupon-card .info-text { color: #155724; }
.coupon-card .error-text { display: none; color: #ff0000; }
.policy-card .info-text[hidden] { display: none !important; }

.stages { display: flex; flex-direction: column; gap: 1rem; }

.stage {
    border: 0.25rem solid #cce2f1;
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fff;
}
.stage__head { display: flex; align-items: flex-start; gap: .9rem; }
.stage__num {
    flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem;
    border-radius: 50%; background: #cce2f1; color: #004472;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.stage__titles { flex: 1 1 auto; min-width: 0; }
.stage__title { color: #004472; font-weight: 600; font-size: 1.05rem; }
.stage__desc { color: #6c757d; font-size: .9rem; }
.stage__badge {
    flex: 0 0 auto; align-self: flex-start;
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 1rem; background: #e9ecef; color: #6c757d;
}
.stage__note { color: #6c757d; margin-top: .75rem; padding-left: 3.15rem; }
.stage__action { margin-top: 1rem; padding-left: 3.15rem; }
.stage__action .btn { max-width: 100%; }
/* "what to prepare" box on a survey card (2026-11-01) */
.stage__hint { margin-top: .9rem; background: #eef7fc; border-left: 4px solid #00c3ff; border-radius: 8px; padding: .75rem 1rem; color: #004472; font-size: .875rem; }
.stage__hint b { display: block; margin-bottom: .25rem; }
.stage__hint ul { margin: .35rem 0; padding-left: 1.1rem; }
.stage__hint li { list-style: disc; }   /* the theme strips list markers */
/* extra survey cards (data-stage="0") have no number circle, so nothing to align with (2026-10-20) */
.stage[data-stage="0"] .stage__note, .stage[data-stage="0"] .stage__action { padding-left: 0; }

.stage--open   { border-color: #007bff; }
.stage--open   .stage__num   { background: #007bff; color: #fff; }
.stage--open   .stage__badge { background: #007bff; color: #fff; }
.stage--done   .stage__num   { background: #28a745; color: #fff; }
.stage--done   .stage__badge { background: #d4edda; color: #155724; }
.stage--pending .stage__badge { background: #fff3cd; color: #856404; }
.stage--locked { background: #f8f9fa; }
.stage--locked .stage__title, .stage--wait .stage__title { color: #6c757d; }

@media (max-width: 575.98px) {
    .stage__head { flex-wrap: wrap; }
    .stage__badge { order: 3; margin-left: 0; margin-top: .5rem; }
    .stage__note, .stage__action { padding-left: 0; }
    .stage__action .btn { width: 100%; min-width: 0; }
    .account__greeting { margin-bottom: 1rem !important; }
}

.stage__link { display: block; margin-top: .6rem; text-decoration: underline; }

/* test-only button: theme paints every .btn white-on-transparent, give it its own grey look */
.stage__test, .stage__test:hover, .stage__test:focus { display: block; margin-top: .5rem; font-size: .8rem; background: #6c757d; border: 1px solid #6c757d; color: #fff !important; }
.stage__test:hover, .stage__test:focus { background: #5a6268; border-color: #5a6268; }
.stage__test + .stage__test { margin-top: .35rem; }
/* while filling: Bootstrap's .btn-outline-secondary:disabled goes transparent (white box, invisible text) -> black with white text */
.stage__test:disabled, .stage__test[disabled] { background: #212529 !important; border-color: #212529 !important; color: #fff !important; opacity: 1; cursor: wait; }

/* PESEL modal */
.pesel-modal { border: 0.25rem solid #cce2f1; border-radius: 1rem; }
.pesel-modal .modal-header, .pesel-modal .modal-footer { border: 0; }
.pesel-modal .modal-title { color: #004472; }
.pesel-modal .modal-footer { justify-content: center; }
.pesel-modal .error-text { display: none; color: #ff0000; }

/* Single view (2026-09-17): the partner sells only the AI survey -> one card, no stage number (class set by the template) */
.stages--single .stage__num { display: none; }
.stages--single .stage__note, .stages--single .stage__action { padding-left: 0; }
/* test tools (2026-09-23): destructive buttons in red outline; the "delete account" link in the greeting */
.stage__test--danger, .stage__test--danger:hover, .stage__test--danger:focus { background: #fff !important; color: #dc3545 !important; border-color: #dc3545 !important; }
.account__test-tools .stage__test { display: inline-block; margin-top: 0; }
/* report button + 'Wypełnij ponownie' on one card: two equal buttons in one row, stacked on phones */
.stage__action .btn-blue + .btn-blue { margin-left: .5rem; }
@media (max-width: 575.98px) { .stage__action .btn-blue + .btn-blue { margin-left: 0; margin-top: .5rem; } }

/* "Moje dane" (2026-10-06) */
.data-card { max-width: none; }
.data-card__title { color: #004472; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.data-card__list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.data-card__list dt { color: #6c757d; font-weight: 400; }
.data-card__list dd { margin: 0; color: #004472; font-weight: 600; }
.data-card #password-form { max-width: 420px; }
@media (max-width: 575.98px) { .data-card__list { grid-template-columns: 1fr; gap: 0 } .data-card__list dt { margin-top: .5rem; } }
