/* PHWO UX kit — shared form helpers. Brand: teal #0D5C63, gold #E8A33D. */
.ux-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.ux-form select,
.ux-form textarea { font-size: 16px; min-height: 48px; }
.ux-form textarea { min-height: 96px; }
.ux-form button, .ux-form .phwo-submit, .ux-form .phwo-photo-btn { min-height: 48px; }

.ux-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Two languages side by side */
.ux-t2, .ux-alt { display: inline-block; font-weight: 400; color: #5d6d72; font-size: .9em; }
[lang=ur].ux-t1, [lang=ur].ux-t2, .ux-alt[lang=ur], .ux-hint [lang=ur] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif; line-height: 2; }
.ux-alt { display: block; margin-top: 1px; }
.ux-hint { display: block; margin: 4px 0 0; font-size: 13.5px; color: #5d6d72; line-height: 1.5; }
.ux-hint [lang=ur] { display: inline-block; }

/* Chips (select -> tap buttons) */
.ux-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.ux-chip { appearance: none; border: 1.5px solid #cfdcdd; background: #fff; color: #33454a; border-radius: 8px; padding: 10px 14px; min-height: 48px; font-size: 15px; line-height: 1.35; cursor: pointer; text-align: start; }
.ux-chip:hover { border-color: #0D5C63; }
.ux-chip:focus-visible { outline: 3px solid #E8A33D; outline-offset: 2px; }
.ux-chip.is-on { background: #0D5C63; border-color: #0D5C63; color: #fff; font-weight: 600; }
.ux-chip.is-on .ux-t2, .ux-chip.is-on small { color: #d9eef0; }
.ux-chip small { display: block; font-size: 12.5px; color: #5d6d72; font-weight: 400; }
.ux-chips-radio .phwo-chip > span, .ux-chips-radio label > span { min-height: 48px; }

/* Date of birth */
.ux-dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; margin-top: 4px; }
.ux-dob select { width: 100%; }

/* City search */
.ux-city { position: relative; }
.ux-city input { width: 100%; }
.ux-city-list { position: absolute; z-index: 50; inset-inline: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cfdcdd; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 300px; overflow: auto; }
.ux-city-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 48px; cursor: pointer; font-size: 15px; }
.ux-city-list li:hover { background: #eef6f6; }
.ux-city-list li [lang=ur] { color: #5d6d72; font-family: "Noto Naskh Arabic", serif; }
.ux-city-q { margin-bottom: 6px; width: 100%; }

/* Errors */
.ux-err { margin: 6px 0 4px; color: #b42318; font-weight: 600; font-size: 14px; line-height: 1.6; }
.ux-err .ux-t2 { color: #b42318; font-weight: 500; }
.is-invalid > input, .is-invalid > select, .is-invalid > textarea, .is-invalid .ux-city input, .is-invalid .ux-dob select { border-color: #b42318 !important; box-shadow: 0 0 0 2px rgba(180,35,24,.12); }
.ux-chips.is-invalid .ux-chip, .is-invalid > .ux-chips .ux-chip { border-color: #e7a19b; }

/* Photo notes */
.ux-imgnote { margin: 6px 0 0; font-size: 14px; color: #5d6d72; }
.ux-imgnote.is-ok { color: #106b3a; font-weight: 600; }
.ux-imgnote.is-busy { color: #8a5300; }

/* WhatsApp help */
.ux-wa { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; padding: 10px 14px; min-height: 48px; border-radius: 8px; background: #eaf7ef; color: #106b3a !important; text-decoration: none !important; font-weight: 600; font-size: 15px; border: 1px solid #bfe5cc; }
.ux-wa:hover { background: #dcf2e4; }
.ux-wa .ux-t2 { color: #106b3a; }

/* Continue where you left off */
.ux-resume { margin: 0 0 16px; padding: 14px 16px; border-radius: 8px; background: #fff8ea; border: 1px solid #f1d39c; color: #4a3a12; }
.ux-resume p { margin: 0 0 10px; line-height: 1.7; }
.ux-resume-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ux-btn { appearance: none; min-height: 48px; padding: 10px 16px; border-radius: 6px; border: 1px solid #cfdcdd; background: #fff; color: #33454a; font-size: 15px; cursor: pointer; }
.ux-btn-main { background: #0D5C63; border-color: #0D5C63; color: #fff; font-weight: 600; }
.ux-btn-main .ux-t2 { color: #d9eef0; }

/* Collapsible optional parts */
details.ux-more { margin: 16px 0; border: 1px dashed #cfdcdd; border-radius: 8px; padding: 0 14px; background: #fbfdfd; }
details.ux-more > summary { cursor: pointer; padding: 14px 0; min-height: 48px; font-weight: 600; color: #0D5C63; list-style-position: inside; }
details.ux-more[open] { padding-bottom: 14px; }

/* Group headings on single-page forms */
.ux-group-title { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: #0D5C63; }

.is-busy { opacity: .7; pointer-events: none; }

@media (max-width: 480px) {
	.ux-chip { flex: 1 1 calc(50% - 8px); }
	.ux-chips.ux-wide .ux-chip { flex-basis: 100%; }
	.ux-dob { grid-template-columns: 1fr 1.5fr 1.2fr; gap: 6px; }
}

/* Fixes after first screenshots */
.ux-form fieldset { min-width: 0; max-width: 100%; }
.ux-form legend span.ux-t1, .ux-form legend span.ux-t2 { display: inline; width: auto; height: auto; min-width: 0; padding: 0; margin: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; line-height: inherit; }
.ux-form legend span.ux-t2 { font-size: .8em; color: #5d6d72; font-weight: 400; }
html:not([lang^=ur]) .ux-alt[dir=rtl], html:not([lang^=ur]) .ux-t2[dir=rtl] { text-align: left; unicode-bidi: plaintext; }
html[lang^=ur] .ux-alt[dir=ltr] { text-align: right; }
.ux-form .phwo-role-text .ux-alt { margin: 2px 0; }
