/**
 * AMBS Doctor Registration — Form Styles
 * Matches the AMBS pay-invoice page visual language.
 */

/* Allan Custom **/
.ambs-field.ambs-country select {
	pointer-events: none;
	background: #f6f6f6;
}

/* ============================================================
   Form container & root
   ============================================================ */

.ambs-form input[type=file]:focus {
	border-color: transparent;
	box-shadow: none;
}

.ambs-form-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 16px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2b2b3d;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ambs-form,
.ambs-form *,
.ambs-form *::before,
.ambs-form *::after {
	box-sizing: border-box;
}

.ambs-form button {
	font-family: inherit;
}

/* ============================================================
   Section blocks
   ============================================================ */
.ambs-section {
	background: #e6f7f9;
	border-radius: 14px;
	padding: 28px;
	margin-bottom: 20px;
}

.ambs-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ambs-section-header h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1f1f3a;
	margin: 0;
	line-height: 1.3;
}

.ambs-required-note,
.ambs-section-help {
	color: #ee2a5b;
	font-style: italic;
	font-weight: 600;
	font-size: 13px;
}

.ambs-section-help {
	color: #5a6373;
	font-style: normal;
	font-weight: 500;
}

/* ============================================================
   Field grid
   ============================================================ */
.ambs-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 16px;
}

.ambs-field {
	flex: 0 0 100%;
	min-width: 0;
	position: relative;
}

.ambs-field.ambs-half {
	flex: 0 0 calc(50% - 8px);
}

.ambs-field.ambs-third {
	flex: 0 0 calc(33.333% - 11px);
}

.ambs-field.ambs-quarter {
	flex: 0 0 calc(25% - 12px);
}

.ambs-field.ambs-full {
	flex: 0 0 100%;
}

/* ============================================================
   Labels & required asterisk
   ============================================================ */
.ambs-form label,
.ambs-form .ambs-group-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #1f1f3a;
	margin-bottom: 8px;
	line-height: 1.4;
}

.ambs-form .ambs-required {
	color: #ee2a5b;
	font-weight: 700;
	margin-left: 2px;
}

.ambs-label-hidden {
	visibility: hidden;
}

.ambs-field.no-label>label {
	display: none;
}

/* ============================================================
   Inputs (text, email, tel, number, select, textarea)
   ============================================================ */
.ambs-form input[type=text],
.ambs-form input[type=email],
.ambs-form input[type=tel],
.ambs-form input[type=number],
.ambs-form select,
.ambs-form textarea {
	width: 100%;
	background: #fff;
	border: 1px solid #e3e5ec;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	color: #2b2b3d;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.ambs-form input:focus,
.ambs-form select:focus,
.ambs-form textarea:focus {
	outline: none;
	border-color: #2db5b8;
	box-shadow: 0 0 0 3px rgba(45, 181, 184, .15);
}

.ambs-form input::placeholder,
.ambs-form textarea::placeholder {
	color: #b6bac4;
}

/* Native select arrow (browsers strip it via -webkit-appearance) */
.ambs-form select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236e7280' d='M6 8 0 0h12z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

/* Phone block — dial-code dropdown + tel input share a single half-width field.
   Dial-code is fixed-narrow; the phone input fills remaining space. */
.ambs-phone-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.ambs-phone-row .ambs-dial-code {
	flex: 0 0 132px;
	min-width: 0;
	padding-right: 28px;
	/* room for the dropdown arrow inside narrow width */
	background-position: right 8px center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.ambs-phone-row .ambs-phone-input {
	flex: 1 1 auto;
	min-width: 0;
	/* allows the input to actually shrink in flex */
}

@media (max-width: 480px) {
	.ambs-phone-row .ambs-dial-code {
		flex: 0 0 110px;
	}
}

/* ============================================================
   Custom radio buttons
   ============================================================ */
.ambs-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding-top: 4px;
}

.ambs-radio {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	font-weight: 500;
	margin: 0;
}

.ambs-radio input[type=radio] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.ambs-radio-mark {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #cdd2dd;
	border-radius: 50%;
	background: #fff;
	margin-right: 10px;
	position: relative;
	transition: border-color .15s, box-shadow .15s;
	flex-shrink: 0;
	vertical-align: bottom;
}

.ambs-radio input[type=radio]:checked+.ambs-radio-mark {
	border-color: #2db5b8;
}

.ambs-radio input[type=radio]:checked+.ambs-radio-mark::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2db5b8;
}

.ambs-radio input[type=radio]:focus+.ambs-radio-mark {
	box-shadow: 0 0 0 3px rgba(45, 181, 184, .18);
}

.ambs-radio-text {
	font-weight: 500;
	color: #2b2b3d;
}

/* ============================================================
   Custom checkboxes
   ============================================================ */
.ambs-checkbox {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	margin: 0 0 8px 0;
}

.ambs-checkbox input[type=checkbox] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.ambs-checkbox-mark {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #cdd2dd;
	border-radius: 4px;
	background: #fff;
	margin-right: 12px;
	margin-top: 2px;
	position: relative;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
	flex-shrink: 0;
	vertical-align: sub;
}

.ambs-checkbox input[type=checkbox]:checked+.ambs-checkbox-mark {
	border-color: #2db5b8;
	background: #2db5b8;
}

.ambs-checkbox input[type=checkbox]:checked+.ambs-checkbox-mark::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 5px;
	width: 6px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ambs-checkbox input[type=checkbox]:focus+.ambs-checkbox-mark {
	box-shadow: 0 0 0 3px rgba(45, 181, 184, .18);
}

.ambs-checkbox-text {
	font-weight: 400;
	font-size: 14px;
	color: #2b2b3d;
	line-height: 1.55;
}

/* ============================================================
   File upload
   ============================================================ */
.ambs-file-wrap {
	background: #f3f5f9;
	border: 1.5px dashed #cdd2dd;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	transition: border-color .15s, background-color .15s;
}

.ambs-file-wrap:hover,
.ambs-file-wrap:focus-within {
	border-color: #2db5b8;
	background: #f0f9fa;
}

.ambs-file-wrap input[type=file] {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 8px;
	font-size: 13px;
	color: #2b2b3d;
	cursor: pointer;
}

.ambs-file-hint {
	display: block;
	font-size: 12px;
	color: #6e7280;
	font-weight: 500;
}

/* ============================================================
   Repeater (Practice details)
   ============================================================ */
.ambs-repeater-rows {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 16px;
}

.ambs-practice {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.ambs-practice-header {
	background: #2db5b8;
	color: #fff;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ambs-practice-title {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
}

.ambs-remove-row {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .85);
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 22px;
	line-height: 1;
	font-weight: 700;
	transition: background-color .15s, color .15s;
}

.ambs-remove-row:hover {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.ambs-practice-body {
	padding: 24px;
}

.ambs-add-row {
	background: #b7ecee;
	color: #1f1f3a;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .15s, transform .05s;
}

.ambs-add-row:hover {
	background: #1B2446;
}

.ambs-add-row:active {
	transform: translateY(1px);
}

/* ============================================================
   Submit button
   ============================================================ */
.ambs-submit-wrap {
	text-align: center;
	margin-top: 28px;
}

.ambs-submit {
	background: #d0238b;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 16px 56px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: .2px;
	transition: background-color .15s, transform .05s, opacity .15s;
}

.ambs-submit:hover {
	background: #b51c75;
}

.ambs-submit:active {
	transform: translateY(1px);
}

.ambs-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* ============================================================
   Error & feedback states
   ============================================================ */
.ambs-error {
	display: none;
	color: #d92558;
	font-size: 12px;
	margin-top: 6px;
	font-weight: 500;
}

.ambs-form .ambs-field.has-error .ambs-error {
	display: block;
}

.ambs-form .ambs-field.has-error input[type=text],
.ambs-form .ambs-field.has-error input[type=email],
.ambs-form .ambs-field.has-error input[type=tel],
.ambs-form .ambs-field.has-error select {
	border-color: #ee2a5b;
	background: #fff5f7;
}

.ambs-form .ambs-field.has-error .ambs-radio-mark,
.ambs-form .ambs-field.has-error .ambs-checkbox-mark {
	border-color: #ee2a5b;
}

.ambs-form .ambs-field.has-error .ambs-file-wrap {
	border-color: #ee2a5b;
	background: #fff5f7;
}

.ambs-form-feedback {
	margin: 16px 0;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	display: none;
}

.ambs-form-feedback.is-error {
	display: block;
	background: #fdecef;
	color: #b51c4d;
	border: 1px solid #f6c2cf;
}

.ambs-form-feedback.is-success {
	display: block;
	background: #e7f8e9;
	color: #1d6128;
	border: 1px solid #b6e3bd;
}

/* ============================================================
   Thank you state
   ============================================================ */
.ambs-thank-you {
	background: #e6f7f9;
	border-radius: 14px;
	padding: 48px 32px;
	text-align: center;
}

.ambs-thank-you h2 {
	font-size: 26px;
	color: #1f1f3a;
	margin: 0 0 12px;
	font-weight: 700;
}

.ambs-thank-you p {
	font-size: 15px;
	color: #5a6373;
	margin: 0;
	line-height: 1.6;
}

/* ============================================================
   Honeypot — visually hidden, off-screen, but reachable to bots
   ============================================================ */
.ambs-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ============================================================
   Label + tooltip row (for fields with an info icon)
   ============================================================ */
.ambs-label-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.ambs-label-row>label {
	margin-bottom: 0;
}

/* ============================================================
   Tooltip
   ============================================================ */
.ambs-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ambs-tooltip-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #2db5b8;
	color: #fff;
	cursor: help;
	align-items: center;
	justify-content: center;
	transition: background-color .15s, transform .1s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.ambs-tooltip-icon:hover,
.ambs-tooltip-icon:focus {
	background: #248d8f;
	outline: none;
	transform: scale(1.05);
}

.ambs-tooltip-icon:focus-visible {
	box-shadow: 0 0 0 3px rgba(45, 181, 184, .25);
}

.ambs-tooltip-icon svg {
	display: block;
}

.ambs-tooltip-content {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #1f1f3a;
	color: #fff;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.55;
	width: 300px;
	max-width: calc(100vw - 32px);
	z-index: 100;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s, visibility .15s;
}

.ambs-tooltip-content::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1f1f3a;
}

.ambs-tooltip:hover .ambs-tooltip-content,
.ambs-tooltip-icon:focus+.ambs-tooltip-content,
.ambs-tooltip-icon:focus-visible+.ambs-tooltip-content {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 480px) {
	.ambs-tooltip-content {
		width: 240px;
		left: auto;
		right: 0;
		transform: none;
	}

	.ambs-tooltip-content::after {
		left: auto;
		right: 6px;
		transform: none;
	}
}

/* ============================================================
   Responsive — stack on narrow screens
   ============================================================ */
@media (max-width: 720px) {
	.ambs-section {
		padding: 20px 18px;
	}

	.ambs-section-header h2 {
		font-size: 20px;
	}

	.ambs-field.ambs-half,
	.ambs-field.ambs-third,
	.ambs-field.ambs-quarter {
		flex: 0 0 100%;
	}

	.ambs-form .ambs-label-hidden {
		visibility: visible;
	}

	.ambs-practice-body {
		padding: 18px;
	}

	.ambs-radio-group {
		gap: 16px;
	}

	.ambs-submit {
		padding: 14px 36px;
		width: 100%;
	}
}

/* ============================================================
   Review / Summary panel
   ============================================================ */
.ambs-review-panel {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2b2b3d;
}

.ambs-review-header {
	background: #e6f7f9;
	border-radius: 14px;
	padding: 28px 32px;
	margin-bottom: 20px;
}

.ambs-review-header h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1f1f3a;
	margin: 0 0 8px;
	line-height: 1.3;
}

.ambs-review-header p {
	margin: 0;
	font-size: 14px;
	color: #5a6373;
	line-height: 1.5;
}

.ambs-review-section {
	background: #e6f7f9;
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 16px;
}

.ambs-review-section-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f1f3a;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #b7ecee;
	line-height: 1.3;
}

.ambs-review-table {
	width: 100%;
	border-collapse: collapse;
}

.ambs-review-th {
	text-align: left;
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	padding: 12px 16px 12px 0;
	width: 230px;
	vertical-align: top;
}

.ambs-review-td {
	font-size: 16px;
	color: #2b2b3d;
	padding: 12px 16px;
	word-break: break-word;
}

.ambs-review-table th {
	background-color: transparent;
	color: #1B2446;
}

.ambs-review-table tr {
	border-bottom: 1px solid #d8eef0;
}

.ambs-review-table td {
	background-color: transparent !important;
}



.ambs-review-empty {
	color: #b6bac4;
	font-style: italic;
}

.ambs-review-feedback {
	margin: 20px 0 0;
}

.ambs-review-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
	margin: 32px 0 0;
	flex-wrap: wrap;
}

.ambs-review-edit {
	background: transparent;
	color: #2db5b8;
	border: 2px solid #2db5b8;
	border-radius: 999px;
	padding: 14px 36px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: .2px;
	transition: background-color .15s, color .15s;
}

.ambs-review-edit:hover {
	background: #1B2446;
}

.ambs-review-edit:active {
	transform: translateY(1px);
}

.ambs-review-confirm {
	background: #d0238b;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 16px 56px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: .2px;
	transition: background-color .15s, transform .05s, opacity .15s;
}

.ambs-review-confirm:hover {
	background: #b51c75;
}

.ambs-review-confirm:active {
	transform: translateY(1px);
}

.ambs-review-confirm:disabled {
	opacity: .55;
	cursor: not-allowed;
}

@media (max-width: 720px) {
	.ambs-review-header {
		padding: 20px 18px;
	}

	.ambs-review-section {
		padding: 20px 18px;
	}

	.ambs-review-th {
		width: 150px;
		font-size: 12px;
	}

	.ambs-review-td {
		font-size: 12px;
	}

	.ambs-review-actions {
		flex-direction: column;
	}

	.ambs-review-edit,
	.ambs-review-confirm {
		width: 100%;
		text-align: center;
	}

	.ambs-review-confirm {
		padding: 14px 36px;
	}
}