/* ═══════════════════════════════════════════
   CHAGO VPN — order form page (port of order.css
   + multi-account repeater rows)
   ═══════════════════════════════════════════ */

/* Layout */
.order-wrap {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

/* Header */
.order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 36px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.back-link:hover {
	color: var(--text-main);
}

.back-link svg {
	width: 18px;
	height: 18px;
}

.logo-link {
	display: block;
}

.order-logo {
	height: 44px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.15));
}

/* Package Banner */
.selected-package-banner {
	margin-bottom: 28px;
	text-align: center;
}

.pkg-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 230, 118, 0.08);
	border: 1px solid rgba(0, 230, 118, 0.2);
	border-radius: 12px;
	padding: 10px 20px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--emerald);
}

.pkg-badge svg {
	width: 18px;
	height: 18px;
	stroke: var(--emerald);
}

.pkg-badge .pkg-price-tag {
	font-family: var(--font-mono);
	font-weight: 700;
	margin-left: 4px;
}

/* Form Card */
.form-title {
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 6px;
}

.form-sub {
	color: var(--text-muted);
	font-size: 0.92rem;
	margin-bottom: 28px;
}

.order-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Account Rows ── */
.vpn-accounts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vpn-account-row {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	padding: 18px;
	transition: border-color 0.2s;
}

.vpn-account-row:hover {
	border-color: rgba(255, 255, 255, 0.16);
}

.account-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.account-row-title {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--emerald);
	text-transform: uppercase;
}

.vpn-remove-account {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid rgba(255, 30, 66, 0.25);
	background: rgba(255, 30, 66, 0.08);
	color: #ff5c77;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.vpn-remove-account:hover {
	background: rgba(255, 30, 66, 0.18);
	border-color: rgba(255, 30, 66, 0.45);
	color: #fff;
}

/* New-account-only section (hidden for renewals) */
.vpn-new-only {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vpn-new-only[hidden] {
	display: none;
}

/* Adult OFF pill checkbox */
.adult-toggle {
	display: inline-flex;
	cursor: pointer;
}

.adult-toggle input {
	display: none;
}

.adult-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
	transition: all 0.2s ease;
}

.adult-toggle input:checked + .adult-pill {
	background: rgba(255, 30, 66, 0.12);
	border-color: rgba(255, 30, 66, 0.4);
	color: #ff5c77;
}

.adult-pill:hover {
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--text-main);
}

/* Add-account action */
.vpn-accounts-actions {
	margin: 0;
}

.add-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px dashed rgba(0, 230, 118, 0.35);
	border-radius: 10px;
	color: var(--emerald);
	font-family: var(--font-main);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 18px;
	cursor: pointer;
	transition: all 0.2s;
	width: 100%;
	justify-content: center;
}

.add-account-btn svg {
	width: 16px;
	height: 16px;
}

.add-account-btn:hover {
	background: rgba(0, 230, 118, 0.08);
	border-color: rgba(0, 230, 118, 0.5);
}

/* Submit button sits inside .btn-emerald from base.css */
.submit-btn {
	width: 100%;
}

.submit-btn.spinning svg {
	animation: spin 0.8s linear infinite;
}

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

/* Missing service state */
.missing-service .btn-emerald {
	margin-top: 16px;
}

/* Responsive */
@media (max-width: 480px) {
	.order-wrap {
		padding: 28px 16px 60px;
	}

	.form-card {
		padding: 24px 18px;
	}

	.order-logo {
		height: 36px;
	}

	.vpn-account-row {
		padding: 14px;
	}
}
