.form-check.terms-consent,
.consent.terms-consent {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.terms-consent-copy {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.45;
}

.terms-consent-copy label {
	display: inline;
	margin: 0;
	cursor: pointer;
}

/* Checkbox controls inherit the full text-input styling in both forms unless
   every box-model property is reset here. This keeps the native checkbox clean
   and aligns it with the first line of the consent copy. */
.terms-consent > input[type="checkbox"] {
	flex: 0 0 18px;
	align-self: flex-start;
	width: 18px;
	height: 18px;
	min-height: 18px;
	margin: .12em 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 2px;
	box-shadow: none;
	outline: 0;
	accent-color: var(--accent, #8e278f);
	transition: none;
}

.terms-consent > input[type="checkbox"]:focus {
	border: 0;
	box-shadow: none;
}

.terms-consent > input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--accent, #8e278f);
	outline-offset: 2px;
}

.terms-trigger {
	display: inline;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	appearance: none;
	color: var(--accent, #8e278f);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-weight: 700;
	line-height: inherit;
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}

.terms-trigger:hover {
	color: var(--accent-strong, #6f1d70);
	background: transparent;
}

.terms-trigger:focus-visible {
	outline: 3px solid rgba(142, 39, 143, .28);
	outline-offset: 2px;
}

.terms-dialog {
	width: min(780px, calc(100% - 32px));
	max-width: 780px;
	max-height: min(88vh, 820px);
	max-height: min(88dvh, 820px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	color: var(--adani-black, #231f20);
	background: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.terms-dialog::backdrop {
	background: rgba(20, 17, 18, .72);
	backdrop-filter: blur(2px);
}

.terms-dialog[open] {
	display: block;
}

.terms-dialog-shell {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(88vh, 820px);
	max-height: min(88dvh, 820px);
}

.terms-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px 18px;
	background: #fff;
	border-bottom: 1px solid #ddd;
}

.terms-dialog-kicker {
	margin: 0 0 3px;
	color: var(--accent, #8e278f);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.terms-dialog-title {
	margin: 0;
	color: var(--adani-purple, #8e278f);
	font-size: clamp(20px, 4vw, 27px);
	line-height: 1.25;
}

.terms-dialog-date {
	margin: 5px 0 0;
	color: var(--adani-grey, #6d6e71);
	font-size: 12px;
}

.terms-dialog-close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	min-width: 38px;
	height: 38px;
	min-height: 38px;
	margin: 0;
	padding: 0;
	color: var(--adani-black, #231f20);
	background: #f1f1f1;
	border: 1px solid #d3d3d3;
	border-radius: 50%;
	font: inherit;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.terms-dialog-close:hover,
.terms-dialog-close:focus-visible {
	background: #e5e5e5;
}

.terms-dialog-body {
	min-height: 0;
	padding: 20px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.terms-dialog-intro {
	margin: 0 0 18px;
	color: #454145;
	font-size: 14px;
}

.terms-list {
	display: grid;
	gap: 15px;
	margin: 0;
	padding-left: 22px;
}

.terms-list li {
	padding-left: 4px;
}

.terms-list h3 {
	margin: 0 0 3px;
	color: var(--adani-black, #231f20);
	font-size: 15px;
	line-height: 1.4;
}

.terms-list p {
	margin: 0;
	color: #514d50;
	font-size: 13px;
	line-height: 1.62;
}

.terms-dialog-footer {
	display: flex;
	justify-content: flex-end;
	padding: 15px 24px 18px;
	background: #fafafa;
	border-top: 1px solid #ddd;
}

.terms-dialog-done {
	width: auto;
	min-width: 130px;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	color: #fff;
	background: var(--accent, #8e278f);
	border: 1px solid var(--accent, #8e278f);
	border-radius: 5px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.terms-dialog-done:hover,
.terms-dialog-done:focus-visible {
	background: var(--accent-strong, #6f1d70);
}

body.terms-dialog-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.terms-dialog {
		width: calc(100% - 18px);
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 9px;
	}

	.terms-dialog-shell {
		max-height: 92vh;
		max-height: 92dvh;
	}

	.terms-dialog-header {
		padding: 17px 16px 14px;
	}

	.terms-dialog-body {
		padding: 16px;
	}

	.terms-dialog-footer {
		padding: 13px 16px 15px;
	}

	.terms-dialog-done {
		width: 100%;
	}
}
