/* Onboarding Form Styles */
.swpba-onboarding-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* Plan Section */
.swpba-plan-section {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.swpba-plan-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.swpba-plan-title {
	display: flex;
	align-items: center;
	gap: 16px;
}

.swpba-plan-title h2 {
	margin: 0;
	font-size: 24px;
	color: #333;
}

.swpba-change-plan-btn {
	background: transparent;
	border: 1px solid #0066cc;
	color: #0066cc;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

.swpba-change-plan-btn:hover {
	background: #0066cc;
	color: #fff;
}

.swpba-plan-price {
	text-align: right;
}

.swpba-price-amount {
	font-size: 32px;
	font-weight: 700;
	color: #0066cc;
}

.swpba-price-period {
	font-size: 16px;
	color: #666;
}

.swpba-plan-description {
	margin: 0;
	color: #666;
	font-size: 15px;
}

/* Plan Modal */
.swpba-plan-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
}

.swpba-plan-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
}

.swpba-plan-modal-content {
	position: relative;
	background: #fff;
	margin: 40px auto;
	max-width: 1200px;
	border-radius: 12px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.swpba-plan-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	border-bottom: 1px solid #e0e0e0;
}

.swpba-plan-modal-header h3 {
	margin: 0;
	font-size: 24px;
	color: #333;
}

.swpba-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 32px;
	height: 32px;
	line-height: 1;
	transition: color 0.2s;
}

.swpba-modal-close:hover {
	color: #333;
}

/* Plans Grid */
.swpba-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 32px;
}

.swpba-plan-card {
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	position: relative;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
}

.swpba-plan-card:hover {
	border-color: #0066cc;
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
	transform: translateY(-2px);
}

.swpba-plan-card.active {
	border-color: #0066cc;
	background: #f8fbff;
}

.swpba-plan-badge {
	position: absolute;
	top: -12px;
	right: 24px;
	background: #ff6b35;
	color: #fff;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.swpba-plan-card h4 {
	margin: 0 0 16px 0;
	font-size: 20px;
	color: #333;
}

.swpba-plan-card-price {
	margin-bottom: 12px;
}

.swpba-plan-card-amount {
	font-size: 32px;
	font-weight: 700;
	color: #0066cc;
}

.swpba-plan-card-period {
	font-size: 14px;
	color: #666;
}

.swpba-plan-card-description {
	color: #666;
	font-size: 14px;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.swpba-plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
	flex: 1;
}

.swpba-plan-features li {
	padding: 8px 0;
	color: #333;
	font-size: 14px;
	position: relative;
	padding-left: 24px;
}

.swpba-plan-features li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #0066cc;
	font-weight: bold;
}

.swpba-select-plan-btn {
	width: 100%;
	padding: 12px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.swpba-select-plan-btn:hover {
	background: #0052a3;
}

.swpba-select-plan-btn.active {
	background: #28a745;
}

.swpba-select-plan-btn.active:hover {
	background: #218838;
}

/* Form Styles */
.swpba-onboarding-form {
	max-width: 600px;
	margin: 0 auto;
}

.swpba-errors {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.swpba-errors ul {
	margin: 0;
	padding-left: 20px;
}

.swpba-form {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swpba-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.swpba-form-field {
	margin-bottom: 20px;
}

.swpba-form-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.swpba-form-field input[type="text"],
.swpba-form-field input[type="email"],
.swpba-form-field input[type="tel"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.2s;
}

.swpba-form-field input:focus {
	outline: none;
	border-color: #0066cc;
}

.swpba-help-text {
	display: block;
	margin-top: 6px;
	color: #666;
	font-size: 14px;
}

.required {
	color: #d63638;
}

.swpba-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: normal;
}

.swpba-checkbox input[type="checkbox"] {
	margin-top: 4px;
}

.swpba-form-submit {
	margin-top: 30px;
	text-align: center;
}

.swpba-pricing-note {
	margin-top: 12px;
	color: #666;
	font-size: 14px;
	text-align: center;
}

.swpba-button {
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.swpba-button-primary {
	background: #0066cc;
	color: #fff;
	min-width: 250px;
}

.swpba-button-primary:hover {
	background: #0052a3;
}

/* Responsive */
@media (max-width: 1024px) {
	.swpba-plans-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin: 0 auto;
	}

	.swpba-plan-modal-content {
		margin: 20px;
		max-height: calc(100vh - 40px);
	}
}

@media (max-width: 600px) {
	.swpba-form-row {
		grid-template-columns: 1fr;
	}

	.swpba-plan-header {
		flex-direction: column;
		gap: 16px;
	}

	.swpba-plan-price {
		text-align: left;
	}

	.swpba-plan-modal-content {
		margin: 10px;
	}

	.swpba-plans-grid {
		padding: 16px;
		gap: 16px;
	}
}
