/* 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 wheel picker (mirrors BirthdayInputField: 48px items, green pill highlight) */
.birthday { display: flex; gap: 12px; width: 286px; max-width: 100%; margin: 0 auto; }
.wheel { position: relative; flex: 1; height: 240px; }
.wheel:nth-child(1) { flex: 0.8; }
.wheel:nth-child(2) { flex: 1.7; }
.wheel__highlight { position: absolute; top: 96px; left: 4px; right: 4px; height: 48px; border-radius: 24px; background: var(--green-100); pointer-events: none; }
.wheel__list { position: relative; height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; padding: 96px 0; box-sizing: border-box; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.wheel__list::-webkit-scrollbar { display: none; }
.wheel__item { display: flex; align-items: center; justify-content: center; height: 48px; scroll-snap-align: center; font-size: 14px; color: var(--neutral-blue-900); cursor: pointer; user-select: none; transform: scale(0.9); transition: transform 0.2s ease; }
.wheel__item.selected { font-size: 16px; font-weight: 700; transform: none; }
.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; }
