.jaf-wrapper {
	--jaf-navy: #0a1d36;
	--jaf-gold: #C9A227;
	--jaf-gold-light: #E3D3A5;
	--jaf-cream: #F7F2E7;
	--jaf-cream-input: #FBF1E1;
	max-width: 820px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jaf-tabs {
	display: flex;
	border: 1px solid var(--jaf-gold-light);
	border-radius: 6px;
	overflow: hidden;
	background: var(--jaf-cream);
	margin-bottom: 24px;
}

.jaf-tab {
	flex: 1;
	padding: 16px 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	font-family: "Playfair Display", serif;
	font-weight: 600;
	font-size: 15px;
	color: var(--jaf-navy);
	transition: background .2s ease, color .2s ease;
}

.jaf-tab:hover {
	background: rgba(10, 29, 54, 0.06);
}

.jaf-tab-active,
.jaf-tab-active:hover {
	background: var(--jaf-navy);
	color: #ffffff;
}

.jaf-panel-container {
	border: 1px solid var(--jaf-gold-light);
	border-radius: 6px;
	background: #ffffff;
	padding: 32px;
}

.jaf-panel {
	display: none;
}

.jaf-panel-active {
	display: block;
}

.jaf-heading {
	font-family: "Playfair Display", sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2em;
	color: #0a1d36;
	margin: 0 0 24px 0;
}

.jaf-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.jaf-field {
	flex: 1;
	min-width: 220px;
	margin-bottom: 20px;
}

.jaf-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--jaf-navy);
	margin-bottom: 6px;
}

.jaf-optional {
	font-weight: 400;
	color: var(--jaf-gold);
	font-style: italic;
	font-size: 13px;
}

.jaf-field input[type="text"],
.jaf-field input[type="email"],
.jaf-field input[type="tel"],
.jaf-field select,
.jaf-field textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--jaf-cream-input);
	border: 1px solid var(--jaf-gold-light);
	border-radius: 4px;
	font-size: 15px;
	color: #333333;
	box-sizing: border-box;
	font-family: inherit;
}

.jaf-field textarea {
	resize: vertical;
}

.jaf-field input:focus,
.jaf-field select:focus,
.jaf-field textarea:focus {
	outline: none;
	border-color: var(--jaf-gold);
	box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.jaf-field.jaf-invalid input,
.jaf-field.jaf-invalid select,
.jaf-field.jaf-invalid textarea {
	border-color: #c0392b;
}

.jaf-error {
	display: block;
	color: #c0392b;
	font-size: 13px;
	margin-top: 4px;
	min-height: 16px;
}

.jaf-checkbox-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
}

.jaf-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	color: #333333;
	font-size: 15px;
}

.jaf-checkbox input {
	width: auto;
}

.jaf-note {
	font-size: 13px;
	color: #6b6b6b;
	margin: 4px 0 20px 0;
}

.jaf-submit {
	background: var(--jaf-gold);
	color: var(--jaf-navy);
	border: none;
	padding: 14px 28px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	font-size: 14px;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity .2s ease;
}

.jaf-submit:hover {
	opacity: .9;
}

.jaf-submit[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.jaf-form-error {
	color: #c0392b;
	margin-top: 12px;
	font-size: 14px;
}

.jaf-success {
	background: #eef7ee;
	border: 1px solid #bfe3bf;
	color: #245c24;
	padding: 24px;
	border-radius: 6px;
	text-align: center;
	font-size: 16px;
}

.jaf-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

@media (max-width: 640px) {
	.jaf-tabs {
		flex-direction: column;
	}
	.jaf-row {
		flex-direction: column;
		gap: 0;
	}
	.jaf-panel-container {
		padding: 20px;
	}
}
