/* Mirrors registration step UI of webapp-responsive (Step, SelectBox, CheckList components) */
:root {
	--white: #ffffff;
	--green-050: #eff6f0;
	--green-100: #deede0;
	--green-500: #5aa564;
	--green-700: #2f6b37;
	--green-900: #122114;
	--sapphire-050: #fafcf8;
	--sapphire-100: #f2f6ee;
	--neutral-blue-050: #f6f7f9;
	--neutral-blue-100: #edeff3;
	--neutral-blue-200: #d7dae0;
	--neutral-blue-500: #8a919c;
	--neutral-blue-900: #3a404a;
	--font-worksans: 'Work Sans', sans-serif;
	--font-recife: 'Recife Display', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--neutral-blue-050); font-family: var(--font-worksans); color: var(--neutral-blue-900); }
button { font-family: inherit; }

.step-register { display: flex; flex-direction: column; height: 100%; max-width: 480px; margin: 0 auto; background: var(--white); }

.header-register { display: flex; align-items: center; padding: 8px 16px 0; }
.back-button { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 12px; margin-right: 16px; border: 0; border-radius: 1000px; background: none; color: var(--neutral-blue-900); cursor: pointer; }
.back-button[hidden] { display: flex; visibility: hidden; }
.right-button { width: 48px; margin-left: 16px; }
.progress { flex: 1; height: 4px; border-radius: 4px; background: var(--green-100); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--green-500); transition: width 0.3s ease; }

.content-register { display: flex; flex-direction: column; flex: 1; padding: 10px 32px 24px; overflow-y: auto; }
.content-register > * { flex-shrink: 0; } /* long lists must scroll, not squeeze siblings */
.wrap-title { text-align: center; margin-bottom: 24px; }
.title-step-register { margin: 0; font-family: var(--font-recife); font-size: 32px; font-weight: 600; line-height: 42px; }
.subtitle-step-register { margin-top: 8px; font-size: 14px; font-weight: 500; }

.footer-register { padding: 16px 32px 24px; }
.btn-primary, .btn-secondary { width: 100%; height: 48px; border-radius: 1000px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary { border: 0; background: var(--green-900); color: var(--white); }
.btn-primary:disabled { background: var(--neutral-blue-100); color: var(--neutral-blue-500); cursor: not-allowed; }
.btn-secondary { border: 1px solid var(--neutral-blue-200); background: var(--white); color: var(--neutral-blue-900); }

/* SelectBox (gender) */
.select-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 0; list-style: none; }
.select-box li { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--green-050); border-radius: 16px; cursor: pointer; }
.select-box li.active { background: var(--sapphire-100); border: 2px solid var(--sapphire-050); box-shadow: 0 2px 4px rgba(58, 64, 74, 0.16); }
.select-box .icon { margin: 0; font-size: 48px; }
.select-box .name { margin: 8px 0 0; font-size: 16px; font-weight: 700; }

/* CheckList (origin / city / wedding) */
.search { display: block; width: 100%; height: 48px; margin-bottom: 16px; padding: 0 20px; -webkit-appearance: none; appearance: none; border: 1px solid var(--neutral-blue-200); border-radius: 1000px; background: var(--white); font: 400 16px var(--font-worksans); color: var(--neutral-blue-900); outline: none; }
.search:focus { border-color: var(--green-900); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--green-700); border-radius: 24px; background: var(--neutral-blue-050); color: var(--green-700); font-size: 12px; font-weight: 500; cursor: pointer; }
.section-label { margin: 8px 0; font-size: 12px; font-weight: 600; color: var(--neutral-blue-500); text-transform: uppercase; }
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list .item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 1000px; cursor: pointer; font-size: 16px; font-weight: 500; }
.check-list .item:hover { background: var(--neutral-blue-050); }
.check-list .item.active { background: var(--green-050); font-weight: 600; }
.check-list .item .flag { width: 24px; height: 24px; border-radius: 12px; object-fit: cover; }
.check-list .item .check { margin-left: auto; color: var(--green-500); visibility: hidden; }
.check-list .item.active .check { visibility: visible; }
.text-autofill { margin-bottom: 16px; font-size: 14px; text-align: center; }
.empty { color: var(--neutral-blue-500); text-align: center; font-size: 14px; }

/* Birthday picker */
.birthday { display: flex; gap: 8px; }
.birthday select { flex: 1; height: 48px; padding: 0 12px; border: 1px solid var(--neutral-blue-200); border-radius: 12px; background: var(--white); font: 600 16px var(--font-worksans); color: var(--neutral-blue-900); }
.age { margin-top: 24px; text-align: center; font-size: 14px; font-weight: 500; }

/* Confirm modal */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18, 33, 20, 0.5); }
.modal[hidden] { display: none; }
.modal__box { width: 100%; max-width: 360px; padding: 24px; border-radius: 24px; background: var(--white); text-align: center; }
.modal__icon { margin: 0; font-size: 48px; }
.modal__title { font-family: var(--font-recife); font-size: 22px; font-weight: 600; }
.modal__actions { display: flex; gap: 8px; }
