:root {
	--goi-navy: #0d2b6b;
	--goi-navy-dark: #081a42;
	--goi-blue: #2f6fe0;
	--goi-blue-light: #4f86e8;
	--goi-blue-pale: #eaf1fc;
	--goi-gold: #dea874;
	--goi-green: #1c6b3c;
	--goi-red: #b3221e;
	--goi-bg: #f4f6fa;
	--goi-card: #ffffff;
	--goi-border: #dbe1ec;
	--goi-text: #1a2233;
	--goi-muted: #5b6478;
	--goi-radius: 10px;
}

.goi-body {
	background: var(--goi-bg);
	color: var(--goi-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 0;
	min-height: 100vh;
}

.goi-header {
	background: var(--goi-navy);
	color: #fff;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.goi-flag-band {
	height: 12px;
	line-height: 0;
}

.goi-flag-band svg {
	width: 100%;
	height: 100%;
	display: block;
}

.goi-header img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.goi-header .goi-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.goi-header .goi-subtitle {
	font-size: 0.8rem;
	color: var(--goi-gold);
}

.goi-header-portal .goi-title {
	font-size: 1.15rem;
}

/* Landing hero */
.goi-hero {
	max-width: 1080px;
	margin: 0 auto;
	padding: 56px 24px 60px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: center;
}

@media (max-width: 800px) {
	.goi-hero {
		grid-template-columns: 1fr;
		padding: 36px 20px 40px;
		text-align: center;
	}
}

.goi-hero-text h1 {
	font-size: 2.4rem;
	line-height: 1.18;
	margin: 0 0 22px;
	color: var(--goi-navy-dark);
	font-weight: 700;
}

@media (max-width: 800px) {
	.goi-hero-text h1 {
		font-size: 1.8rem;
	}
}

.goi-lang-select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--goi-card);
	border: 1px solid var(--goi-border);
	border-radius: 8px;
	padding: 9px 14px;
	margin-bottom: 26px;
	color: var(--goi-navy);
}

.goi-lang-select select {
	border: none;
	background: none;
	font-size: 0.9rem;
	color: var(--goi-text);
	font-weight: 600;
}

.goi-lang-select select:focus {
	outline: none;
}

.goi-hero-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 360px;
}

@media (max-width: 800px) {
	.goi-hero-actions {
		max-width: none;
		margin: 0 auto;
	}
}

.goi-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.goi-cta:hover {
	transform: translateY(-1px);
	text-decoration: none;
	color: #fff;
}

.goi-cta-dark {
	background: var(--goi-navy);
	box-shadow: 0 4px 14px rgba(13, 43, 107, 0.25);
}

.goi-cta-dark:hover {
	background: var(--goi-navy-dark);
}

.goi-cta-blue {
	background: var(--goi-blue);
	box-shadow: 0 4px 14px rgba(47, 111, 224, 0.3);
}

.goi-cta-blue:hover {
	background: var(--goi-blue-light);
}

.goi-cta .goi-icon {
	flex-shrink: 0;
}

.goi-hero-illustration svg {
	width: 100%;
	height: auto;
	max-width: 300px;
	display: block;
	margin: 0 auto;
}

.goi-hero .goi-notice {
	max-width: 460px;
	margin-top: 30px;
}

@media (max-width: 800px) {
	.goi-hero .goi-notice {
		max-width: none;
	}
}

.goi-container {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 20px 60px;
}

/* Big form name at the top of each form, so travellers always know which form they are on */
.goi-page-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.goi-page-heading h1 {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--goi-navy-dark);
}

.goi-page-heading p {
	margin: 4px 0 0;
	font-size: 1rem;
	color: var(--goi-muted);
}

.goi-page-heading p strong {
	color: var(--goi-navy);
}

.goi-page-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 14px;
	color: #fff;
}

.goi-page-icon-dark {
	background: linear-gradient(135deg, #0d2b6b, #081a42);
}

.goi-page-icon-bright {
	background: linear-gradient(135deg, #4f86e8, #2f6fe0);
}

@media (max-width: 560px) {
	.goi-page-heading h1 {
		font-size: 1.5rem;
	}

	.goi-page-icon {
		width: 48px;
		height: 48px;
	}
}

/* Landing chooser */
.goi-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 28px;
}

@media (max-width: 620px) {
	.goi-choice-grid {
		grid-template-columns: 1fr;
	}
}

.goi-choice-card {
	background: var(--goi-card);
	border: 1px solid var(--goi-border);
	border-radius: var(--goi-radius);
	padding: 28px 22px;
	text-align: center;
	text-decoration: none;
	color: var(--goi-text);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	box-shadow: 0 1px 2px rgba(13, 43, 107, 0.06);
}

.goi-choice-card:hover {
	box-shadow: 0 6px 18px rgba(13, 43, 107, 0.14);
	transform: translateY(-2px);
	text-decoration: none;
}

.goi-choice-card .goi-icon {
	color: var(--goi-navy);
}

.goi-choice-card h2 {
	margin: 4px 0 0;
	font-size: 1.1rem;
}

.goi-choice-card p {
	margin: 0;
	color: var(--goi-muted);
	font-size: 0.88rem;
}

.goi-notice {
	margin-top: 26px;
	background: var(--goi-blue-pale);
	border: 1px solid #c7dafa;
	border-radius: var(--goi-radius);
	padding: 14px 16px;
	font-size: 0.85rem;
	color: var(--goi-navy-dark);
	display: flex;
	gap: 10px;
}

/* Progress bar */
.goi-progress {
	display: flex;
	align-items: flex-start;
	margin-bottom: 26px;
}

.goi-progress-caption {
	display: none;
	margin: -14px 0 18px;
	text-align: center;
	font-weight: 700;
	color: var(--goi-navy);
}

.goi-progress-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
}

.goi-progress-step .goi-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--goi-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--goi-muted);
	z-index: 1;
}

.goi-progress-step.is-done .goi-dot {
	background: var(--goi-green);
	border-color: var(--goi-green);
	color: #fff;
}

.goi-progress-step.is-active .goi-dot {
	background: var(--goi-navy);
	border-color: var(--goi-navy);
	color: #fff;
}

.goi-progress-step .goi-label {
	font-size: 0.68rem;
	color: var(--goi-muted);
	text-align: center;
	max-width: 90px;
}

.goi-progress-step.is-active .goi-label {
	color: var(--goi-navy);
	font-weight: 600;
}

.goi-progress-line {
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--goi-border);
	z-index: 0;
}

.goi-progress-step:first-child .goi-progress-line {
	display: none;
}

.goi-progress-step.is-done .goi-progress-line,
.goi-progress-step.is-active .goi-progress-line {
	background: var(--goi-green);
}

/* Card / step */
.goi-card {
	background: var(--goi-card);
	border: 1px solid var(--goi-border);
	border-radius: var(--goi-radius);
	padding: 24px;
}

.goi-step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.goi-step-title .goi-icon {
	color: var(--goi-navy);
	flex-shrink: 0;
}

.goi-step-help {
	color: var(--goi-muted);
	font-size: 0.85rem;
	margin: 0 0 20px;
}

.goi-field {
	margin-bottom: 18px;
}

.goi-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
}

.goi-field .goi-req {
	color: var(--goi-red);
}

.goi-field .goi-help-text {
	font-size: 0.78rem;
	color: var(--goi-muted);
	margin: 4px 0 0;
}

.goi-field input,
.goi-field select,
.goi-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--goi-border);
	border-radius: 6px;
	font-size: 0.92rem;
	font-family: inherit;
	color: var(--goi-text);
	background: #fff;
	box-sizing: border-box;
}

.goi-field input:focus,
.goi-field select:focus,
.goi-field textarea:focus {
	outline: none;
	border-color: var(--goi-navy);
	box-shadow: 0 0 0 3px rgba(13, 43, 107, 0.12);
}

.goi-field.has-error input,
.goi-field.has-error select,
.goi-field.has-error textarea {
	border-color: var(--goi-red);
}

.goi-field-error {
	color: var(--goi-red);
	font-size: 0.78rem;
	margin-top: 4px;
	display: none;
}

.goi-field.has-error .goi-field-error {
	display: block;
}

.goi-checkbox-field {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.goi-checkbox-field input {
	width: auto;
	margin-top: 3px;
}

.goi-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 560px) {
	.goi-row {
		grid-template-columns: 1fr;
	}
}

/* Repeatable table sections (children / security questions) */
.goi-table-block {
	border: 1px dashed var(--goi-border);
	border-radius: 8px;
	padding: 36px 16px 0;
	margin-bottom: 14px;
	position: relative;
}

.goi-table-block .goi-remove-row {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	color: var(--goi-red);
	cursor: pointer;
	font-size: 0.8rem;
}

.goi-add-row {
	background: none;
	border: 1px dashed var(--goi-navy);
	color: var(--goi-navy);
	border-radius: 6px;
	padding: 9px 14px;
	font-size: 0.85rem;
	cursor: pointer;
	width: 100%;
}

.goi-empty-note {
	color: var(--goi-muted);
	font-size: 0.85rem;
	font-style: italic;
}

/* Loading state for lookups */
.goi-loading-note {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--goi-muted);
	font-size: 0.82rem;
}

.goi-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid var(--goi-border);
	border-top-color: var(--goi-navy);
	border-radius: 50%;
	animation: goi-spin 0.7s linear infinite;
}

@keyframes goi-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Review step */
.goi-review-section {
	margin-bottom: 18px;
}

.goi-review-section h3 {
	font-size: 0.9rem;
	margin: 0 0 8px;
	color: var(--goi-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.goi-review-edit {
	font-size: 0.78rem;
	color: var(--goi-navy);
	cursor: pointer;
	background: none;
	border: none;
	text-decoration: underline;
	padding: 0;
}

.goi-review-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
	font-size: 0.85rem;
}

.goi-review-grid dt {
	color: var(--goi-muted);
}

.goi-review-grid dd {
	margin: 0;
	font-weight: 500;
}

/* Nav buttons */
.goi-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
}

.goi-btn {
	border-radius: 7px;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}

.goi-btn-primary {
	background: var(--goi-navy);
	color: #fff;
}

.goi-btn-primary:hover {
	background: var(--goi-navy-dark);
}

.goi-btn-secondary {
	background: none;
	border-color: var(--goi-border);
	color: var(--goi-text);
}

.goi-btn-secondary:hover {
	background: #f0f2f7;
}

.goi-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Success screen */
.goi-success {
	text-align: center;
	padding: 30px 10px;
}

.goi-success .goi-icon {
	color: var(--goi-green);
}

.goi-success h2 {
	margin: 14px 0 6px;
}

.goi-reference {
	display: inline-block;
	margin-top: 14px;
	background: #eef4ee;
	border: 1px solid #cfe4cf;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--goi-green);
	letter-spacing: 0.5px;
}

.goi-form-alert {
	background: #fdeceb;
	border: 1px solid #f2c3c0;
	color: #7a1e1a;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 0.85rem;
	margin-bottom: 16px;
	display: none;
}

.goi-form-alert.is-visible {
	display: block;
}

/* Phones and tablets */
@media (max-width: 640px) {
	.goi-container {
		padding: 20px 16px 48px;
	}

	.goi-header {
		padding: 14px 16px;
	}

	.goi-header .goi-title {
		font-size: 0.95rem;
	}

	/* Seven labels don't fit side by side; show only the dots plus a caption. */
	.goi-progress-step .goi-label {
		display: none;
	}

	.goi-progress-caption {
		display: block;
	}

	.goi-page-desc {
		display: none;
	}

	.goi-card {
		padding: 18px 16px;
	}

	/* 16px stops iPhones from zooming in when a field is tapped. */
	.goi-field input,
	.goi-field select,
	.goi-field textarea {
		font-size: 16px;
		min-height: 44px;
	}

	.goi-actions .goi-btn {
		min-height: 48px;
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* Form name centred in the header; the seal stays on the left.
   Equal side columns keep the text centred on the page, not just in the leftover space. */
.goi-header {
	display: grid;
	grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr);
}

.goi-header .goi-page-heading {
	margin: 0;
	justify-content: center;
	text-align: center;
	min-width: 0;
}

.goi-header .goi-page-heading h1 {
	color: #fff;
	font-size: 1.6rem;
}

.goi-header .goi-page-heading p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.goi-header .goi-page-heading p strong {
	color: var(--goi-gold);
}

.goi-header .goi-page-icon {
	width: 52px;
	height: 52px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}


@media (max-width: 640px) {
	.goi-header .goi-page-heading h1 {
		font-size: 1.35rem;
	}

}

/* Readability in bright light (e.g. phones outdoors), kept clean:
   dark text and clearly visible field edges, without heavy outlines. */
:root {
	--goi-text: #0f172a;
	--goi-muted: #475467;
	--goi-border: #c5cddb;
	--goi-field-border: #8e99ad;
	--goi-gold: #ffc56b;
}

.goi-header .goi-page-heading h1,
.goi-header .goi-page-heading p {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.goi-header .goi-page-heading p {
	color: #fff;
}

.goi-body {
	background: #eef1f6;
}

.goi-card {
	border-color: #dde3ec;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.goi-step-title {
	margin-bottom: 20px;
	color: var(--goi-text);
}

.goi-field {
	margin-bottom: 20px;
}

.goi-field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--goi-text);
	margin-bottom: 6px;
}

.goi-field input,
.goi-field select,
.goi-field textarea {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--goi-field-border);
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.goi-field input:hover,
.goi-field select:hover,
.goi-field textarea:hover {
	border-color: #5b6780;
}

.goi-field input:focus,
.goi-field select:focus,
.goi-field textarea:focus {
	outline: none;
	border-color: var(--goi-blue);
	box-shadow: 0 0 0 4px rgba(47, 111, 224, 0.18);
}

.goi-progress-step .goi-dot {
	border-color: var(--goi-field-border);
	color: var(--goi-text);
	font-weight: 700;
}

.goi-progress-line {
	background: var(--goi-border);
}

.goi-progress-step .goi-label {
	font-size: 0.76rem;
	font-weight: 500;
	color: var(--goi-muted);
}

.goi-btn {
	font-family: inherit;
	font-weight: 600;
	border-radius: 10px;
	min-height: 46px;
	padding-left: 26px;
	padding-right: 26px;
}

.goi-btn-secondary {
	border-color: var(--goi-field-border);
	color: var(--goi-text);
}

@media (max-width: 640px) {
	.goi-card {
		padding: 20px 16px;
	}
}

/* Put fields side by side on tablets and computers to keep forms short.
   Six-column grid: thirds span 2, halves span 3, full width spans 6. */
@media (min-width: 641px) {
	.goi-field-grid {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		column-gap: 16px;
	}

	.goi-field-grid > .goi-field {
		grid-column: span 3;
	}

	.goi-field-grid > .goi-w-third {
		grid-column: span 2;
	}

	.goi-field-grid > .goi-w-two-thirds {
		grid-column: span 4;
	}

	.goi-field-grid > .goi-w-full {
		grid-column: 1 / -1;
	}
}

/* Custom dropdown arrow, spaced like the date field's calendar icon */
.goi-field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
	cursor: pointer;
}

/* Checkboxes: undo the text-field sizing above, line up with the first line of the label */
.goi-checkbox-field {
	align-items: flex-start;
	gap: 12px;
}

.goi-field.goi-checkbox-field input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	min-height: 0;
	margin: 1px 0 0;
	padding: 0;
	border: none;
	box-shadow: none;
	accent-color: var(--goi-navy);
	cursor: pointer;
}

.goi-field.goi-checkbox-field label {
	margin: 0;
	line-height: 1.5;
	cursor: pointer;
}

/* Segmented switch (e.g. International / Local address format) */
.goi-segmented {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	padding: 4px;
	background: #e3e8f0;
	border-radius: 999px;
}

.goi-segment {
	min-height: 42px;
	padding: 8px 12px;
	border: none;
	border-radius: 999px;
	background: none;
	color: var(--goi-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.goi-segment.is-active {
	background: var(--goi-navy-dark);
	color: #fff;
	box-shadow: 0 2px 6px rgba(8, 26, 66, 0.25);
}

.goi-segment:focus-visible {
	outline: 3px solid var(--goi-blue);
	outline-offset: 2px;
}

.goi-note {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--goi-blue-pale);
	color: var(--goi-navy);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
}

.goi-field-heading {
	margin: 8px 0 14px;
	padding-top: 16px;
	border-top: 1px solid var(--goi-border);
	font-size: 1rem;
	color: var(--goi-navy);
}

/* Paragraph boxes can be made taller by dragging the corner; sideways resizing would break the layout. */
.goi-field textarea {
	resize: vertical;
	min-height: 96px;
}

/* Pick-and-add list (e.g. countries visited) */
.goi-list-add {
	display: flex;
	gap: 12px;
}

.goi-list-add select {
	flex: 1;
	min-width: 0;
}

.goi-list-add .goi-btn {
	flex: none;
	white-space: nowrap;
}

.goi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.goi-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 14px;
	border-radius: 999px;
	background: var(--goi-blue-pale);
	color: var(--goi-navy);
	font-weight: 600;
}

.goi-chip button {
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: rgba(13, 43, 107, 0.12);
	color: var(--goi-navy);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

/* Add-a-row list (e.g. taxation articles): entry row with an Add button, then the added rows */
.goi-rowlist {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 12px 16px;
	align-items: end;
}

.goi-rowlist-entry .goi-field {
	margin-bottom: 0;
}

.goi-rowlist-add {
	white-space: nowrap;
}

.goi-rowlist-item {
	align-items: center;
	margin-top: 14px;
	padding: 12px 12px 12px 16px;
	border: 1px solid var(--goi-border);
	border-radius: 12px;
	background: var(--goi-blue-pale);
}

.goi-rowlist-cell span {
	display: block;
	font-size: 0.75rem;
	color: var(--goi-muted);
}

.goi-rowlist-cell strong {
	display: block;
	overflow-wrap: anywhere;
	color: var(--goi-text);
}

.goi-rowlist-remove {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--goi-red);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 640px) {
	.goi-rowlist {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.goi-rowlist-entry .goi-field:first-child,
	.goi-rowlist-add {
		grid-column: 1 / -1;
	}
}

/* Yes / No questions */
.goi-radio-field {
	margin: 0 0 22px;
	padding: 0;
	border: none;
}

.goi-radio-field legend {
	margin-bottom: 10px;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--goi-text);
}

.goi-radio-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.goi-radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 110px;
	min-height: 44px;
	padding: 8px 18px 8px 12px;
	border: 1px solid var(--goi-field-border);
	border-radius: 10px;
	background: #fff;
	font-weight: 600;
	cursor: pointer;
}

.goi-radio input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--goi-navy);
	cursor: pointer;
}

.goi-radio:has(input:checked) {
	border-color: var(--goi-navy);
	background: var(--goi-blue-pale);
	box-shadow: inset 0 0 0 1px var(--goi-navy);
}

/* Undo the text-field sizing for radio buttons so the circle sits beside its label */
.goi-field.goi-radio-field .goi-radio input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
}

.goi-field.goi-radio-field label.goi-radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

/* Yes / No answers look like checkboxes (square with a tick), but only one can be chosen */
.goi-field.goi-radio-field .goi-radio input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-content: center;
	width: 22px;
	height: 22px;
	border: 2px solid var(--goi-field-border);
	border-radius: 5px;
	background: #fff;
}

.goi-field.goi-radio-field .goi-radio input[type="radio"]::before {
	content: "";
	width: 12px;
	height: 12px;
	transform: scale(0);
	background: #fff;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.goi-field.goi-radio-field .goi-radio input[type="radio"]:checked {
	border-color: var(--goi-navy);
	background: var(--goi-navy);
}

.goi-field.goi-radio-field .goi-radio input[type="radio"]:checked::before {
	transform: scale(1);
}

.goi-field.goi-radio-field .goi-radio input[type="radio"]:focus-visible {
	outline: 3px solid var(--goi-blue);
	outline-offset: 2px;
}

/* Lighter, more refined form styling: slimmer fields, softer labels, tighter rhythm */
.goi-step-title {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.goi-field {
	margin-bottom: 16px;
}

.goi-field label,
.goi-radio-field legend {
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #1f2937;
}

.goi-field input,
.goi-field select,
.goi-field textarea {
	min-height: 40px;
	padding: 8px 12px;
	border-color: #848fa3; /* 3.3:1 on white - meets the 3:1 rule for field edges */
	border-radius: 8px;
	font-size: 0.95rem;
}

.goi-field select {
	padding-right: 38px;
	background-position: right 12px center;
	background-size: 16px 16px;
}

.goi-field textarea {
	min-height: 84px;
}

.goi-field-grid {
	column-gap: 14px;
}

.goi-btn {
	min-height: 42px;
	padding-left: 22px;
	padding-right: 22px;
	font-weight: 600;
}

.goi-radio {
	min-height: 40px;
}

/* Phones keep larger touch targets and 16px text (stops iPhone zoom on tap) */
@media (max-width: 640px) {
	.goi-field input,
	.goi-field select,
	.goi-field textarea {
		min-height: 44px;
		font-size: 16px;
	}

	.goi-btn {
		min-height: 46px;
	}
}

/* Added rows (taxation articles) as a clean table */
.goi-rowlist-table {
	width: 100%;
	margin-top: 16px;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.goi-rowlist-table th {
	padding: 0 12px 8px;
	border-bottom: 1px solid var(--goi-border);
	text-align: left;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--goi-muted);
}

.goi-rowlist-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e6eaf1;
	color: var(--goi-text);
	overflow-wrap: anywhere;
}

.goi-rowlist-table tbody tr:hover {
	background: #f7f9fc;
}

.goi-rowlist-table th:first-child,
.goi-rowlist-table td:first-child {
	width: 50%;
}

.goi-rowlist-table .goi-rowlist-actions {
	width: 1%;
	padding-right: 4px;
	text-align: right;
}

.goi-rowlist-table .goi-rowlist-remove {
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 6px;
	background: none;
	color: var(--goi-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.goi-rowlist-table .goi-rowlist-remove:hover,
.goi-rowlist-table .goi-rowlist-remove:focus-visible {
	background: #fdecec;
	color: var(--goi-red);
}

.goi-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Keep amounts and currency codes on one line; only the description wraps */
.goi-rowlist-table td:not(:first-child) {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.goi-rowlist-table th:first-child,
	.goi-rowlist-table td:first-child {
		width: auto;
	}

	.goi-rowlist-table th,
	.goi-rowlist-table td {
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* Articles table: light blue panel with more space above it */
.goi-rowlist-table {
	margin-top: 24px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid #cddcf5;
	border-radius: 10px;
	background: var(--goi-blue-pale);
}

.goi-rowlist-table th {
	padding-top: 12px;
	border-bottom-color: #cddcf5;
}

.goi-rowlist-table td {
	border-bottom-color: #d9e5f8;
}

.goi-rowlist-table tbody tr:last-child td {
	border-bottom: none;
}

.goi-rowlist-table tbody tr:hover {
	background: #dfeafb;
}

.goi-rowlist-table .goi-rowlist-remove:hover,
.goi-rowlist-table .goi-rowlist-remove:focus-visible {
	background: #fff;
}

/* Finer type scale for the forms (Inter, smaller sizes) */
.goi-body {
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}

.goi-header .goi-page-heading h1 {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.goi-header .goi-page-heading p {
	font-size: 0.85rem;
}

.goi-step-title {
	font-size: 1.05rem;
	font-weight: 600;
}

.goi-step-help,
.goi-field .goi-help-text {
	font-size: 0.8rem;
	font-weight: 400;
}

.goi-field label,
.goi-radio-field legend {
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 5px;
}

.goi-field-heading {
	font-size: 0.9rem;
	font-weight: 600;
}

.goi-field input,
.goi-field select,
.goi-field textarea {
	min-height: 36px;
	padding: 7px 11px;
	font-size: 0.875rem;
	border-radius: 7px;
}

.goi-field select {
	padding-right: 34px;
	background-size: 14px 14px;
}

.goi-field textarea {
	min-height: 76px;
}

.goi-field {
	margin-bottom: 14px;
}

.goi-btn {
	min-height: 38px;
	padding: 8px 18px;
	font-size: 0.875rem;
	border-radius: 8px;
}

.goi-segment {
	min-height: 36px;
	font-size: 0.85rem;
}

.goi-note {
	padding: 10px 14px;
	font-size: 0.8rem;
}

.goi-radio {
	min-height: 36px;
	font-size: 0.85rem;
}

.goi-radio-field legend {
	font-size: 0.85rem;
	line-height: 1.45;
}

.goi-progress-step .goi-label {
	font-size: 0.7rem;
}

.goi-progress-step .goi-dot {
	width: 28px;
	height: 28px;
	font-size: 0.75rem;
}

.goi-rowlist-table {
	font-size: 0.85rem;
}

.goi-rowlist-table th {
	font-size: 0.68rem;
}

.goi-card {
	padding: 24px;
}

/* Phones: keep 16px in fields (iPhones zoom in on smaller text) and comfortable tap sizes */
@media (max-width: 640px) {
	.goi-field input,
	.goi-field select,
	.goi-field textarea {
		min-height: 42px;
		font-size: 16px;
	}

	.goi-btn {
		min-height: 44px;
	}

	.goi-card {
		padding: 18px 14px;
	}
}

/* Compact Yes / No: small tick box and word, no card around each option */
.goi-radio-options {
	gap: 4px 28px;
}

.goi-field.goi-radio-field label.goi-radio {
	min-width: 0;
	min-height: 32px;
	padding: 4px 2px;
	gap: 8px;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 0.85rem;
	font-weight: 500;
}

.goi-field.goi-radio-field label.goi-radio:has(input:checked) {
	border: none;
	background: none;
	box-shadow: none;
}

.goi-field.goi-radio-field .goi-radio input[type="radio"] {
	width: 16px;
	height: 16px;
	border-width: 1.5px;
	border-radius: 4px;
}

.goi-field.goi-radio-field .goi-radio input[type="radio"]::before {
	width: 9px;
	height: 9px;
}

.goi-radio-field {
	margin-bottom: 18px;
}

.goi-radio-field legend {
	margin-bottom: 4px;
}
