/* =============================================================
   Aerospace Payment Form — Premium UI
   ============================================================= */

:root {
	--aero-bg:          #f5f5f7;
	--aero-card:        #ffffff;
	--aero-border:      #e5e7eb;
	--aero-border-focus:#0071e3;
	--aero-accent:      #0071e3;
	--aero-accent-dark: #0058b3;
	--aero-text:        #1d1d1f;
	--aero-muted:       #6e6e73;
	--aero-success:     #00b140;
	--aero-error:       #cc0000;
	--aero-plan-sel:    #eff6ff;
	--aero-plan-sel-bd: #0071e3;
	--aero-shadow:      0 2px 8px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08);
	--aero-shadow-sm:   0 1px 4px rgba(0,0,0,.06);
	--aero-radius:      18px;
	--aero-radius-sm:   10px;
	--aero-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--aero-transition:  .18s cubic-bezier(.4,0,.2,1);
}

/* Wrapper */
.aero-wrap {
	font-family: var(--aero-font);
	color: var(--aero-text);
	-webkit-font-smoothing: antialiased;
	padding: 40px 16px 60px;
	background: var(--aero-bg);
	min-height: 60vh;
}

/* ───────────────────────────── Main Card ─────────────────────────────── */
.aero-card {
	background: var(--aero-card);
	border-radius: var(--aero-radius);
	box-shadow: var(--aero-shadow);
	max-width: 980px;
	margin: 0 auto;
	overflow: hidden;
	animation: aeroFadeUp .4s ease both;
}

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

/* Card Header */
.aero-card-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 32px 40px 24px;
	border-bottom: 1px solid var(--aero-border);
}

.aero-card-header-icon {
	width: 48px;
	height: 48px;
	background: #eff6ff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aero-accent);
	flex-shrink: 0;
}

.aero-card-title {
	margin: 0 0 2px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.3px;
}

.aero-card-subtitle {
	margin: 0;
	font-size: 13px;
	color: var(--aero-muted);
}

/* ───────────────────────────── Two-Column Layout ─────────────────────── */
.aero-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 0;
}

.aero-col-form {
	padding: 36px 40px 40px;
	border-right: 1px solid var(--aero-border);
}

.aero-col-summary {
	padding: 36px 28px 40px;
	background: #fafafa;
}

/* ───────────────────────────── Fieldset / Legend ─────────────────────── */
.aero-fieldset {
	border: none;
	margin: 0 0 32px;
	padding: 0;
}

.aero-legend {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--aero-muted);
	margin-bottom: 18px;
	display: block;
}

/* ───────────────────────────── Row helpers ───────────────────────────── */
.aero-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ───────────────────────────── Form Fields ───────────────────────────── */
.aero-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
}

.aero-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--aero-text);
	margin-bottom: 7px;
}

.aero-req {
	color: var(--aero-accent);
}

.aero-input {
	height: 46px;
	border: 1.5px solid var(--aero-border);
	border-radius: var(--aero-radius-sm);
	padding: 0 14px;
	font-size: 15px;
	font-family: var(--aero-font);
	color: var(--aero-text);
	background: #fff;
	outline: none;
	transition: border-color var(--aero-transition), box-shadow var(--aero-transition);
	width: 100%;
	box-sizing: border-box;
}

.aero-input:focus {
	border-color: var(--aero-accent);
	box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}

.aero-input.aero-input--error {
	border-color: var(--aero-error);
	box-shadow: 0 0 0 3px rgba(204,0,0,.1);
}

.aero-input.aero-input--valid {
	border-color: var(--aero-success);
}

/* Prefix input */
.aero-input-prefix-wrap {
	position: relative;
}

.aero-input-prefix {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: var(--aero-muted);
	pointer-events: none;
}

.aero-input--prefixed {
	padding-left: 26px;
}

.aero-error {
	font-size: 12px;
	color: var(--aero-error);
	margin-top: 5px;
	min-height: 16px;
	display: block;
	animation: aeroSlideIn .15s ease;
}

@keyframes aeroSlideIn {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────── Membership Cards ──────────────────────── */
.aero-membership-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 6px;
}

.aero-plan-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--aero-border);
	border-radius: var(--aero-radius-sm);
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color var(--aero-transition), background var(--aero-transition), box-shadow var(--aero-transition), transform var(--aero-transition);
	position: relative;
	font-family: var(--aero-font);
}

.aero-plan-card:hover {
	border-color: #c0d4f0;
	background: #f8fbff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,113,227,.1);
}

.aero-plan-card.is-selected {
	border-color: var(--aero-plan-sel-bd);
	background: var(--aero-plan-sel);
	box-shadow: 0 0 0 2px rgba(0,113,227,.15);
}

.aero-plan-card.is-selected .aero-plan-check {
	background: var(--aero-accent);
	border-color: var(--aero-accent);
}

.aero-plan-card.is-selected .aero-plan-check svg {
	stroke: #fff;
}

.aero-plan-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid var(--aero-border);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	transition: background var(--aero-transition), border-color var(--aero-transition);
}

.aero-plan-check svg {
	width: 11px;
	height: 11px;
	opacity: 0;
	transition: opacity var(--aero-transition);
}

.aero-plan-card.is-selected .aero-plan-check svg {
	opacity: 1;
}

.aero-plan-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aero-plan-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--aero-text);
}

.aero-plan-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--aero-accent);
}

.aero-plan-desc {
	font-size: 11px;
	color: var(--aero-muted);
}

.aero-plan-card--other .aero-plan-price {
	color: var(--aero-muted);
}

/* Custom amount */
.aero-custom-amount {
	margin-top: 14px;
	animation: aeroFadeUp .2s ease;
}

/* ───────────────────────────── PayPal Section ────────────────────────── */
.aero-paypal-section {
	margin-top: 24px;
	animation: aeroFadeUp .25s ease;
}

.aero-paypal-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.aero-paypal-divider::before,
.aero-paypal-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--aero-border);
}

.aero-paypal-divider span {
	font-size: 12px;
	font-weight: 500;
	color: var(--aero-muted);
	white-space: nowrap;
}

.aero-paypal-note {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--aero-muted);
	margin: 12px 0 0;
}

#aero-paypal-btn-container {
	min-height: 52px;
}

/* ───────────────────────────── Validate Button ───────────────────────── */
.aero-submit-wrap {
	margin-top: 28px;
}

.aero-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	background: var(--aero-accent);
	color: #fff;
	border: none;
	border-radius: var(--aero-radius-sm);
	font-size: 15px;
	font-weight: 600;
	font-family: var(--aero-font);
	cursor: pointer;
	transition: background var(--aero-transition), transform var(--aero-transition), box-shadow var(--aero-transition);
	letter-spacing: -.1px;
}

.aero-btn-primary:hover {
	background: var(--aero-accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0,113,227,.3);
}

.aero-btn-primary:active {
	transform: translateY(0);
}

/* ───────────────────────────── Summary Card ──────────────────────────── */
.aero-summary-card {
	position: sticky;
	top: 28px;
}

.aero-summary-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--aero-text);
}

.aero-summary-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 32px 0;
	color: var(--aero-muted);
	text-align: center;
}

.aero-summary-empty svg {
	opacity: .4;
}

.aero-summary-empty p {
	font-size: 13px;
	margin: 0;
	line-height: 1.5;
}

.aero-summary-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
}

.aero-summary-key {
	font-size: 13px;
	color: var(--aero-muted);
}

.aero-summary-val {
	font-size: 13px;
	font-weight: 500;
	color: var(--aero-text);
	text-align: right;
	max-width: 60%;
	word-break: break-word;
}

.aero-summary-badge {
	background: #eff6ff;
	color: var(--aero-accent);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 100px;
	letter-spacing: .03em;
}

.aero-summary-sep {
	height: 1px;
	background: var(--aero-border);
	margin: 6px 0;
}

.aero-summary-total-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0 6px;
	margin-top: 4px;
	border-top: 2px solid var(--aero-text);
}

.aero-summary-total-label {
	font-size: 15px;
	font-weight: 700;
}

.aero-summary-total-val {
	font-size: 20px;
	font-weight: 700;
	color: var(--aero-accent);
}

.aero-summary-note {
	font-size: 11px;
	color: var(--aero-muted);
	margin: 12px 0 0;
	line-height: 1.5;
}

/* Trust Badges */
.aero-trust-badges {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--aero-border);
}

.aero-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--aero-muted);
}

.aero-trust-item svg {
	color: var(--aero-success);
	flex-shrink: 0;
}

/* ───────────────────────────── Result Cards ──────────────────────────── */
.aero-result-card {
	max-width: 520px;
	margin: 0 auto;
	background: var(--aero-card);
	border-radius: var(--aero-radius);
	box-shadow: var(--aero-shadow);
	padding: 56px 48px;
	text-align: center;
	animation: aeroFadeUp .4s ease both;
}

.aero-result-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.aero-result-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.aero-result-icon svg {
	width: 36px;
	height: 36px;
}

.aero-result-icon--success {
	background: #d1fae5;
	color: #059669;
}

.aero-result-icon--error {
	background: #fee2e2;
	color: #dc2626;
}

.aero-result-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
	letter-spacing: -.3px;
}

.aero-result-subtitle {
	font-size: 15px;
	color: var(--aero-muted);
	margin: 0 0 32px;
	line-height: 1.5;
}

.aero-error-message {
	font-size: 13px;
	color: var(--aero-error);
	margin: 0 0 24px;
	padding: 12px 16px;
	background: #fff5f5;
	border-radius: var(--aero-radius-sm);
	border: 1px solid #fecaca;
	width: 100%;
	box-sizing: border-box;
}

.aero-result-details {
	width: 100%;
	background: #f9fafb;
	border-radius: var(--aero-radius-sm);
	padding: 20px 24px;
	margin-bottom: 32px;
	text-align: left;
	box-sizing: border-box;
}

.aero-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 9px 0;
	border-bottom: 1px solid var(--aero-border);
	gap: 16px;
}

.aero-detail-row:last-child {
	border-bottom: none;
}

.aero-detail-row--total {
	padding-top: 12px;
	margin-top: 4px;
}

.aero-detail-label {
	font-size: 13px;
	color: var(--aero-muted);
	flex-shrink: 0;
}

.aero-detail-val {
	font-size: 13px;
	font-weight: 500;
	color: var(--aero-text);
	text-align: right;
	word-break: break-all;
}

.aero-detail-row--total .aero-detail-label,
.aero-detail-row--total .aero-detail-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--aero-text);
}

.aero-btn-ghost {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 28px;
	border: 1.5px solid var(--aero-border);
	border-radius: var(--aero-radius-sm);
	background: #fff;
	color: var(--aero-text);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--aero-font);
	cursor: pointer;
	transition: border-color var(--aero-transition), box-shadow var(--aero-transition);
}

.aero-btn-ghost:hover {
	border-color: var(--aero-accent);
	box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}

/* ───────────────────────────── Responsive ────────────────────────────── */
@media (max-width: 780px) {
	.aero-wrap {
		padding: 20px 12px 48px;
	}

	.aero-card-header {
		padding: 24px 20px 20px;
	}

	.aero-layout {
		grid-template-columns: 1fr;
	}

	.aero-col-form {
		padding: 24px 20px;
		border-right: none;
		border-bottom: 1px solid var(--aero-border);
	}

	.aero-col-summary {
		padding: 24px 20px;
	}

	.aero-summary-card {
		position: static;
	}

	.aero-membership-grid {
		grid-template-columns: 1fr;
	}

	.aero-row-2 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.aero-result-card {
		padding: 40px 24px;
	}
}

@media (max-width: 480px) {
	.aero-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
