/* Auto Offer Payment — Premium overrides */

.aop-page {
	--clr-main-300: #e06a6e;
	--clr-main-500: #d12127;
	--clr-main-800: #731215;
	--clr-main-900: #580e10;
	--clr-neutral-700: #131013;
	--clr-neutral-500: #1b171b;
	--clr-neutral-300: #666466;
	--clr-neutral-200: #969496;
	--clr-white-50: #f5f5f5;
	--clr-border-primary: #d4d4d8;
	--clr-sky-600: #3498db;
	--clr-soft-red: #fce8e9;
	--clr-soft-red-2: #f8d4d5;
	background: linear-gradient(180deg, #faf7f7 0%, #f5f5f5 40%, #fff 100%);
	min-height: 75vh;
	padding: 2.5rem 0 4rem;
	overflow-x: hidden;
	color: var(--clr-neutral-500);
}

body:has(.aop-page) .back-to-top,
body:has(.aop-page) .whatsapp,
body:has(.aop-page) .btn-whatsapp {
	display: none !important;
}

.aop-container {
	max-width: 1120px;
}

.aop-form-wrap {
	width: 100%;
}

.aop-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.aop-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: linear-gradient(135deg, var(--clr-main-500) 0%, var(--clr-main-800) 100%);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: .4rem 1rem;
	border-radius: 50px;
	margin-bottom: 1rem;
}

.aop-hero-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--clr-neutral-500);
	margin-bottom: .35rem;
	letter-spacing: -.3px;
}

.aop-hero-subtitle {
	color: var(--clr-neutral-300);
	font-size: .95rem;
	margin: 0;
}

.aop-hero-subtitle strong {
	color: var(--clr-main-500);
}

.aop-section {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 2px 16px rgba(209, 33, 39, .04);
	transition: box-shadow .25s ease;
}

.aop-section:hover {
	box-shadow: 0 6px 24px rgba(209, 33, 39, .08);
}

.aop-section-header {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f0f0f0;
}

.aop-section-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.aop-section-icon--invoice {
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, var(--clr-soft-red-2) 100%);
	color: var(--clr-main-500);
}

.aop-section-icon--delivery {
	background: linear-gradient(135deg, #eef6fc 0%, #d6eaf8 100%);
	color: var(--clr-sky-600);
}

.aop-section-icon--contact {
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, var(--clr-soft-red-2) 100%);
	color: var(--clr-main-500);
}

.aop-type-card {
	display: flex;
	align-items: center;
	gap: .85rem;
	width: 100%;
	padding: 1rem 1.1rem;
	border: 2px solid var(--clr-border-primary);
	border-radius: 12px;
	background: #fafbfc;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	margin: 0;
}

.aop-type-card:hover {
	border-color: var(--clr-main-300);
	background: #fffbfb;
}

.aop-type-card.active {
	border-color: var(--clr-main-500);
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, #fff5f5 100%);
	box-shadow: 0 4px 16px rgba(209, 33, 39, .12);
}

.aop-type-card-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.aop-type-card-icon--individual {
	background: var(--clr-white-50);
	color: var(--clr-neutral-700);
}

.aop-type-card-icon--corporate {
	background: var(--clr-soft-red);
	color: var(--clr-main-500);
}

.aop-type-card-text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.aop-type-card-text strong {
	font-size: .95rem;
	color: var(--clr-neutral-500);
}

.aop-type-card-text small {
	font-size: .78rem;
	color: var(--clr-neutral-300);
}

.aop-customer-fields[disabled-section] {
	opacity: .5;
}

.aop-section-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--clr-neutral-500);
	margin: 0;
}

.aop-section-desc {
	font-size: .8rem;
	color: var(--clr-neutral-300);
	margin: 0;
}

.aop-form-label {
	font-weight: 600;
	font-size: .78rem;
	color: var(--clr-neutral-300);
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: .4rem;
}

.aop-form-label.required::after {
	content: ' *';
	color: var(--clr-main-500);
}

.aop-form-control,
.aop-form-select {
	border: 1.5px solid var(--clr-border-primary);
	border-radius: 10px;
	padding: .7rem 1rem;
	font-size: .92rem;
	min-height: 46px;
	transition: border-color .2s ease, box-shadow .2s ease;
	background: #fafbfc;
}

.aop-form-control:focus,
.aop-form-select:focus {
	border-color: var(--clr-main-500);
	box-shadow: 0 0 0 3px rgba(209, 33, 39, .12);
	background: #fff;
	outline: none;
}

.aop-submit-wrap {
	padding-top: .5rem;
	text-align: center;
}

.aop-btn-submit {
	background: linear-gradient(135deg, var(--clr-main-500) 0%, var(--clr-main-800) 100%);
	border: none;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: .9rem 2.5rem;
	border-radius: 12px;
	letter-spacing: .2px;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 4px 20px rgba(209, 33, 39, .25);
}

.aop-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(209, 33, 39, .35);
	color: #fff;
}

.aop-trust-row {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.aop-trust-item {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .78rem;
	color: #6c757d;
}

.aop-trust-item i {
	color: var(--clr-main-500);
}

.aop-alert {
	border: none;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	font-size: .9rem;
}

.aop-alert-danger {
	background: #fef2f2;
	color: #b91c1c;
	border-left: 4px solid #e63946;
}

.aop-summary-highlight {
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, var(--clr-soft-red-2) 100%);
	border: 1px solid var(--clr-soft-red-2);
	border-radius: 10px;
	padding: .85rem 1rem;
	margin-bottom: 1rem;
	font-size: .85rem;
	color: var(--clr-main-800);
	line-height: 1.5;
}

.aop-summary-highlight i {
	color: var(--clr-main-500);
	margin-right: .35rem;
}

/* Wizard shell */
.aop-wizard-shell {
	position: relative;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(209, 33, 39, .08);
	overflow: hidden;
}

.aop-lookup-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .72);
	backdrop-filter: blur(2px);
}

.aop-lookup-overlay[hidden] {
	display: none !important;
}

.aop-lookup-overlay-card {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	padding: .75rem 1.15rem;
	border-radius: 999px;
	background: var(--clr-main-500);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(209, 33, 39, .22);
}

.aop-lookup-spinner {
	width: 1rem;
	height: 1rem;
	border-width: .15em;
}

.aop-wizard-shell.is-lookup-loading {
	pointer-events: none;
	user-select: none;
}

.aop-wizard-progress {
	padding: 1.5rem 1.75rem 0;
	background: linear-gradient(180deg, #fffbfb 0%, #fff 100%);
}

.aop-wizard-progress-track {
	height: 4px;
	background: #f0ecec;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.aop-wizard-progress-fill {
	height: 100%;
	width: 33.33%;
	background: linear-gradient(90deg, var(--clr-main-500) 0%, var(--clr-main-300) 100%);
	border-radius: 999px;
	transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.aop-wizard-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .75rem;
	padding-bottom: 1.25rem;
}

.aop-wizard-step-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .45rem;
	text-align: center;
	opacity: .55;
	transition: opacity .25s ease, transform .25s ease;
}

.aop-wizard-step-indicator.is-active,
.aop-wizard-step-indicator.is-complete {
	opacity: 1;
}

.aop-wizard-step-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .82rem;
	font-weight: 700;
	background: #edf2ef;
	color: #6c757d;
	border: 2px solid transparent;
	transition: all .25s ease;
}

.aop-wizard-step-indicator.is-active .aop-wizard-step-dot {
	background: linear-gradient(135deg, var(--clr-main-500) 0%, var(--clr-main-800) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(209, 33, 39, .28);
}

.aop-wizard-step-indicator.is-complete .aop-wizard-step-dot {
	background: var(--clr-soft-red-2);
	color: var(--clr-main-800);
	border-color: #95d5b2;
}

.aop-wizard-step-label {
	font-size: .78rem;
	font-weight: 600;
	color: #495057;
	letter-spacing: .2px;
}

.aop-wizard-panel {
	display: none;
	padding: 0 1.75rem 1.75rem;
	animation: aopFadeUp .35s ease;
}

.aop-wizard-panel.is-active {
	display: block;
}

@keyframes aopFadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.aop-section--wizard {
	margin-bottom: 0;
	border: none;
	box-shadow: none;
	padding: 1.25rem 0 0;
}

.aop-section--wizard:hover {
	box-shadow: none;
}

.aop-section-icon--summary {
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, var(--clr-soft-red-2) 100%);
	color: var(--clr-main-500);
}

.aop-wizard-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f0f0f0;
	margin-top: .5rem;
}

.aop-wizard-actions--final {
	padding-top: 1.5rem;
}

.aop-btn-next,
.aop-btn-back {
	border: none;
	border-radius: 12px;
	font-weight: 700;
	padding: .8rem 1.35rem;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.aop-btn-next {
	background: linear-gradient(135deg, var(--clr-main-500) 0%, var(--clr-main-800) 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(209, 33, 39, .22);
}

.aop-btn-next:hover {
	transform: translateY(-1px);
	color: #fff;
	box-shadow: 0 8px 22px rgba(209, 33, 39, .3);
}

.aop-btn-back {
	background: var(--clr-white-50);
	color: #495057;
}

.aop-btn-back:hover {
	background: #f0ecec;
	color: var(--clr-main-800);
}

.aop-inline-note {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .9rem 1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--clr-soft-red) 0%, #fff5f5 100%);
	border: 1px solid var(--clr-soft-red-2);
	color: var(--clr-main-800);
	font-size: .86rem;
	line-height: 1.5;
}

.aop-inline-note i {
	font-size: 1rem;
	margin-top: .1rem;
}

.aop-field-hint {
	margin-top: .45rem;
	font-size: .78rem;
	color: #6c757d;
	display: flex;
	align-items: center;
	gap: .35rem;
}

.aop-field-hint i {
	color: var(--clr-main-500);
}

.aop-summary-card {
	background: linear-gradient(180deg, #fffbfb 0%, #fff 100%);
	border: 1px solid var(--clr-soft-red-2);
	border-radius: 16px;
	padding: 1.1rem 1.25rem;
}

.aop-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: .9rem;
	color: #495057;
}

.aop-summary-row strong {
	color: #212529;
	font-weight: 700;
}

.aop-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	margin-top: .25rem;
}

.aop-summary-total span {
	font-size: 1rem;
	font-weight: 700;
	color: var(--clr-neutral-500);
}

.aop-summary-total strong {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--clr-main-500);
}

.aop-form-control.is-invalid,
.aop-form-select.is-invalid {
	border-color: #e63946;
	box-shadow: 0 0 0 3px rgba(230, 57, 70, .12);
}

.aop-wizard-error {
	display: none;
	margin-top: 1rem;
	padding: .85rem 1rem;
	border-radius: 10px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: .86rem;
	border-left: 4px solid #e63946;
}

.aop-wizard-error.is-visible {
	display: block;
}

@media (max-width: 991.98px) {
	.aop-page {
		padding: 1.25rem 0 calc(6.75rem + env(safe-area-inset-bottom));
	}

	.aop-container {
		padding-left: .85rem;
		padding-right: .85rem;
		max-width: 100%;
	}

	.aop-hero {
		margin-bottom: 1.25rem;
		padding: 0 .15rem;
	}

	.aop-hero-title {
		font-size: 1.35rem;
		line-height: 1.3;
	}

	.aop-hero-subtitle {
		font-size: .88rem;
		line-height: 1.5;
	}

	.aop-hero-badge {
		font-size: .7rem;
		padding: .35rem .85rem;
	}

	.aop-section {
		padding: 1.15rem;
	}

	.aop-wizard-shell {
		border-radius: 16px;
		box-shadow: 0 8px 28px rgba(209, 33, 39, .07);
	}

	.aop-wizard-progress {
		padding: 1.1rem 1rem 0;
	}

	.aop-wizard-panel {
		padding: 0 1rem 1.25rem;
	}

	.aop-wizard-panel.is-active .aop-wizard-actions {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		margin: 0;
		padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
		border-top: 1px solid #e6ece9;
		background: rgba(255, 255, 255, .97);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		box-shadow: 0 -10px 30px rgba(209, 33, 39, .12);
		flex-direction: row;
		align-items: stretch;
		gap: .65rem;
	}

	.aop-wizard-steps {
		gap: .35rem;
	}

	.aop-wizard-step-dot {
		width: 30px;
		height: 30px;
		font-size: .75rem;
	}

	.aop-wizard-step-label {
		font-size: .68rem;
	}

	.aop-section-header {
		align-items: flex-start;
		gap: .65rem;
	}

	.aop-section-icon {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}

	.aop-section-title {
		font-size: .98rem;
	}

	.aop-section-desc {
		font-size: .76rem;
	}

	.aop-type-card {
		padding: .9rem;
	}

	.aop-type-card-text strong {
		font-size: .9rem;
	}

	.aop-form-label {
		font-size: .74rem;
	}

	.aop-form-control,
	.aop-form-select {
		font-size: 16px;
		min-height: 48px;
	}

	textarea.aop-form-control {
		min-height: 110px;
	}

	.aop-wizard-actions > span:empty {
		display: none;
	}

	.aop-wizard-actions .aop-btn-next,
	.aop-wizard-actions .aop-btn-submit {
		flex: 1 1 auto;
		width: auto;
		justify-content: center;
		min-height: 50px;
		font-size: .92rem;
		padding: .8rem 1rem;
	}

	.aop-wizard-actions .aop-btn-back {
		flex: 0 0 auto;
		width: auto;
		min-width: 5.5rem;
		justify-content: center;
		min-height: 50px;
	}

	.aop-wizard-actions:not(:has(.aop-btn-back)) .aop-btn-next {
		width: 100%;
	}

	.aop-btn-submit {
		padding: .85rem 1.25rem;
		font-size: .95rem;
	}

	.aop-summary-row {
		flex-direction: column;
		align-items: flex-start;
		gap: .25rem;
		font-size: .86rem;
	}

	.aop-summary-total {
		flex-direction: column;
		align-items: flex-start;
		gap: .35rem;
	}

	.aop-summary-total strong {
		font-size: 1.2rem;
	}

	.aop-trust-row {
		flex-direction: column;
		align-items: center;
		gap: .65rem;
		margin-top: 1.25rem;
		margin-bottom: .5rem;
		padding: 0 .5rem;
	}

	.aop-inline-note {
		font-size: .82rem;
	}
}

@media (max-width: 575.98px) {
	.aop-page {
		padding: 1rem 0 calc(7rem + env(safe-area-inset-bottom));
	}

	.aop-container {
		padding-left: .65rem;
		padding-right: .65rem;
	}

	.aop-hero-title {
		font-size: 1.2rem;
	}

	.aop-wizard-shell {
		border-radius: 14px;
		border-left: none;
		border-right: none;
	}

	.aop-wizard-progress {
		padding: .95rem .85rem 0;
	}

	.aop-wizard-panel {
		padding: 0 .85rem 1rem;
	}

	.aop-wizard-panel.is-active .aop-wizard-actions {
		padding-left: .75rem;
		padding-right: .75rem;
	}

	.aop-wizard-step-label {
		font-size: .62rem;
	}

	.aop-section--wizard {
		padding-top: .85rem;
	}

	.aop-wizard-actions .aop-btn-next,
	.aop-wizard-actions .aop-btn-submit {
		font-size: .88rem;
		padding-inline: .75rem;
	}

	.aop-submit-text {
		font-size: .86rem;
	}
}

@media (min-width: 992px) {
	.aop-page {
		padding: 3rem 0 4.5rem;
	}

	.aop-hero {
		margin-bottom: 2.25rem;
	}

	.aop-hero-title {
		font-size: 2rem;
	}

	.aop-hero-subtitle {
		font-size: 1.02rem;
		max-width: 640px;
		margin-inline: auto;
	}

	.aop-wizard-shell {
		padding-bottom: .5rem;
	}

	.aop-wizard-progress {
		padding: 1.5rem 2rem 0;
	}

	.aop-wizard-panel {
		padding: 0 2rem 2rem;
	}

	.aop-section--wizard {
		padding-top: 1.5rem;
	}

	.aop-form-control,
	.aop-form-select {
		min-height: 50px;
		font-size: .98rem;
	}

	.aop-wizard-actions {
		padding-top: 1.5rem;
	}

	.aop-btn-next,
	.aop-btn-back,
	.aop-btn-submit {
		min-height: 52px;
		padding-inline: 1.5rem;
	}
}
