:root {
	--registration-ink: #172b26;
	--registration-muted: #66756f;
	--registration-error: #b42318;
	--registration-border: #dce5e1;
	--registration-accent: #12634e;
	--registration-accent-dark: #0b4939;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	justify-content: center;
	padding: 48px 18px;
	background: radial-gradient(ellipse at 50% 0%, #e6f1ec 0, #f5f8f6 48%, #f2f5f3 100%);
	color: var(--registration-ink);
	font-family: InterVariable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.card {
	width: min(760px, 100%);
	align-self: flex-start;
	overflow: hidden;
	border: 1px solid #dfe8e3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(27, 54, 40, 0.09);
}

.card-header { padding: 24px 34px 22px; border-bottom: 1px solid #e8eeeb; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 38px; height: 38px; flex: none; border-radius: 11px; object-fit: cover; }
.brand-row strong, .brand-row span { display: block; }
.brand-row strong { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.brand-row span { margin-top: 2px; color: var(--registration-muted); font-size: 11px; }
.heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--registration-accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.card-header h1 { margin: 0; color: var(--registration-ink); font-size: clamp(23px, 4vw, 29px); font-weight: 650; letter-spacing: -.035em; }
.intro { max-width: 480px; margin: 8px 0 0; color: var(--registration-muted); font-size: 14px; line-height: 1.55; }
.required-note { margin: 22px 0 0; color: var(--registration-muted); font-size: 12px; }
.required-note span { color: #bd4a3c; font-weight: 700; }
.card-body { padding: 0 34px 26px; }
.form-section { padding: 24px 0 4px; }
.form-section + .form-section { border-top: 1px solid #e8eeeb; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.section-number { display: grid; width: 29px; height: 29px; flex: none; place-items: center; border-radius: 9px; background: #edf5f1; color: var(--registration-accent); font-size: 11px; font-weight: 700; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.section-heading p { margin: 4px 0 0; color: var(--registration-muted); font-size: 12px; line-height: 1.45; }
.optional-label { margin-left: 4px; color: #87948d; font-size: 11px; font-weight: 400; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.field { min-width: 0; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: #344b42; font-size: 12px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--registration-border); border-radius: 8px; background: #fff; color: #263a32; font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover { border-color: #b7cbc1; }
.field input:focus, .field select:focus { border-color: var(--registration-accent); outline: 0; box-shadow: 0 0 0 3px rgba(18, 99, 78, .12); }
.field input[type="file"] { padding: 7px; color: #5d6d66; font-size: 12px; }
.field input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid #d2e1d9; border-radius: 6px; background: #f4f8f6; color: #245542; font: inherit; font-weight: 600; cursor: pointer; }
.field input[type="file"]::file-selector-button:hover { background: #eaf3ee; }
.phone-input-wrap { display: flex; align-items: center; width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid var(--registration-border); border-radius: 8px; background: #fff; }
.phone-input-wrap:focus-within { border-color: var(--registration-accent); box-shadow: 0 0 0 3px rgba(18, 99, 78, .12); }
.phone-input-wrap #phone-country-code { flex: none; padding-right: 10px; border-right: 1px solid var(--registration-border); color: #607168; font-size: 13px; }
.phone-input-wrap input, .phone-input-wrap input:focus { width: auto; min-width: 0; min-height: 42px; flex: 1; padding: 9px 10px; border: 0; outline: 0; box-shadow: none; background: transparent; }
.field small { display: block; margin-top: 7px; color: #718078; font-size: 11px; line-height: 1.45; }
#document-section { padding-top: 18px; }
.document-section .field { padding: 13px; border: 1px solid #e3ebe7; border-radius: 8px; background: #fafcfb; }
.document-section .field label { margin-bottom: 8px; }
.document-section .field input[type="file"] { background: #fff; }
.submit-area { padding-top: 13px; }
button[type="submit"] { width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: var(--registration-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s; }
button[type="submit"]:hover:not(:disabled) { background: var(--registration-accent-dark); }
button[type="submit"]:active:not(:disabled) { transform: translateY(1px); }
button[type="submit"]:focus-visible { outline: 3px solid rgba(18, 99, 78, .28); outline-offset: 2px; }
button[type="submit"]:disabled { opacity: .65; cursor: wait; }
.submit-area > small { display: block; margin-top: 10px; color: #718078; text-align: center; font-size: 11px; }
.message { display: none; margin-top: 15px; padding: 13px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.message.success { display: block; border-color: #a7d7c0; background: #edf8f2; color: #176b45; }
.message.error { display: block; border-color: #edb8b2; background: #fff5f3; color: #a52b23; }
.login-link { margin-top: 21px; text-align: center; color: #68766f; font-size: 13px; }
.login-link a { color: var(--registration-accent-dark); font-weight: 650; text-decoration: none; }
.login-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 620px) {
	.row.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.row.contact-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 619px) {
	body { padding: 14px 10px 24px; }
	.card { border-radius: 12px; }
	.card-header { padding: 21px 20px 18px; }
	.card-body { padding: 0 20px 22px; }
	.heading-row { margin-top: 23px; }
}
@media (max-width: 400px) {
	.heading-row { display: block; }
}
