/* Contact / Become Our Distributor — enhanced layout */

.distributor-page {
	--pg-green: #8fb40f;
	--pg-green-dark: #6f9008;
	--pg-forest: #102e19;
	--pg-ink: #1c2418;
	--pg-muted: #5f6b5a;
	--pg-line: rgba(16, 46, 25, 0.1);
	--pg-card: #ffffff;
	--pg-soft: #f3f7ea;
	position: relative;
	overflow: hidden;
	padding: 32px 0 64px;
	background: linear-gradient(165deg, #f7faef 0%, #eef5e0 42%, #f8f6ef 100%);
}

.distributor-page-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 40% at 8% 12%, rgba(143, 180, 15, 0.16), transparent 70%),
		radial-gradient(ellipse 45% 35% at 92% 18%, rgba(16, 46, 25, 0.08), transparent 65%),
		radial-gradient(ellipse 50% 40% at 70% 90%, rgba(143, 180, 15, 0.1), transparent 70%);
}

.distributor-page .container {
	position: relative;
	z-index: 1;
}

.distributor-layout {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Left — Quick contact */
.distributor-info {
	width: 100%;
}

.qc-panel {
	background: var(--pg-card);
	border-radius: 18px;
	padding: 24px 20px 20px;
	border: 1px solid var(--pg-line);
	box-shadow: 0 10px 30px rgba(16, 46, 25, 0.06);
	animation: qcRise 0.55s ease both;
}

.qc-panel-head {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pg-line);
}

.qc-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(143, 180, 15, 0.14);
	color: var(--pg-green-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.qc-title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	color: var(--pg-forest);
	line-height: 1.2;
}

.qc-lead {
	margin: 0;
	color: var(--pg-muted);
	font-size: 14px;
	line-height: 1.55;
}

.qc-block {
	display: flex;
	gap: 14px;
	padding: 16px 12px;
	margin: 0 -4px 8px;
	border-radius: 12px;
	transition: background 0.25s ease, transform 0.25s ease;
}

.qc-block:hover {
	background: var(--pg-soft);
	transform: translateY(-1px);
}

.qc-block:last-child {
	margin-bottom: 0;
}

.qc-block-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #9cc212, #6f9008);
	color: #fff;
	font-size: 16px;
	box-shadow: 0 6px 14px rgba(111, 144, 8, 0.25);
}

.qc-block-body {
	flex: 1;
	min-width: 0;
}

.qc-block-body h4 {
	margin: 2px 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pg-ink);
}

.qc-block-body > p {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--pg-muted);
}

.qc-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 7px 11px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	word-break: break-word;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.qc-chip i {
	font-size: 13px;
}

.qc-chip.phone {
	background: rgba(143, 180, 15, 0.12);
	color: var(--pg-forest) !important;
}

.qc-chip.phone:hover {
	background: rgba(143, 180, 15, 0.22);
}

.qc-chip.mail {
	background: rgba(16, 46, 25, 0.06);
	color: #1f4d8f !important;
}

.qc-chip.mail:hover {
	background: rgba(31, 77, 143, 0.1);
}

.qc-people {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.qc-people li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
}

.qc-people li:last-child {
	margin-bottom: 0;
}

.qc-person {
	font-size: 13px;
	font-weight: 700;
	color: var(--pg-ink);
}

.qc-wa {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 8px;
	background: #e8f8ef;
	color: #128c7e !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.qc-wa:hover {
	background: #d4f1e3;
	transform: translateX(2px);
}

.qc-wa i {
	color: #25d366;
	font-size: 15px;
}

/* Right — Form */
.distributor-wrap {
	width: 100%;
	margin: 0;
	padding: 0;
	animation: qcRise 0.65s ease 0.08s both;
}

.distributor-layout.form-only {
	justify-content: center;
}

.distributor-layout.form-only .distributor-wrap {
	max-width: 760px;
	margin: 0 auto;
	width: 100%;
}

.distributor-layout.contact-only {
	justify-content: center;
}

.distributor-layout.contact-only .distributor-info {
	max-width: 760px;
	margin: 0 auto;
	width: 100%;
}

.distributor-card {
	position: relative;
	overflow: hidden;
	background: var(--pg-card);
	border-radius: 18px;
	padding: 26px 18px 28px;
	border: 1px solid var(--pg-line);
	box-shadow: 0 14px 36px rgba(16, 46, 25, 0.08);
}

.distributor-card-accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #6f9008 0%, #9cc212 55%, #c5db55 100%);
}

.distributor-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 6px 0 14px;
}

.distributor-logos img {
	max-height: 64px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.distributor-card-head {
	text-align: center;
	margin-bottom: 22px;
}

.distributor-card-head h2 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--pg-forest);
	line-height: 1.25;
}

.distributor-card-head p {
	margin: 0 auto;
	max-width: 360px;
	color: var(--pg-muted);
	font-size: 14px;
	line-height: 1.5;
}

.distributor-form .form-group {
	margin-bottom: 14px;
}

.distributor-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pg-ink);
}

.distributor-form label .req {
	color: #d32f2f;
	margin-left: 2px;
}

.distributor-form input[type="text"],
.distributor-form input[type="email"],
.distributor-form input[type="tel"],
.distributor-form input[type="number"],
.distributor-form select,
.distributor-form textarea {
	width: 100%;
	display: block;
	height: 46px;
	padding: 10px 14px;
	border: 1px solid #d7ddd0;
	border-radius: 10px;
	background: #fbfcf8;
	font-size: 14px;
	color: var(--pg-ink);
	box-shadow: inset 0 1px 2px rgba(16, 46, 25, 0.03);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.distributor-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6b5a' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-color: #fbfcf8;
	padding-right: 36px;
}

.distributor-form textarea {
	height: auto;
	min-height: 92px;
	resize: vertical;
}

.distributor-form input:hover,
.distributor-form select:hover,
.distributor-form textarea:hover {
	border-color: #b7c4a8;
}

.distributor-form input:focus,
.distributor-form select:focus,
.distributor-form textarea:focus {
	border-color: var(--pg-green);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(143, 180, 15, 0.18);
}

.distributor-form .form-row {
	display: block;
}

.distributor-form .btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	margin-top: 10px;
	padding: 12px 30px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #9cc212 0%, #6f9008 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(111, 144, 8, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.distributor-form .btn-submit:hover,
.distributor-form .btn-submit:focus {
	color: #fff;
	filter: brightness(1.05);
	box-shadow: 0 10px 22px rgba(111, 144, 8, 0.34);
	transform: translateY(-1px);
}

.distributor-form .btn-submit:active {
	transform: translateY(0) scale(0.98);
}

.distributor-alert {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
}

.distributor-alert.success {
	background: #eaf6df;
	color: #2e5a12;
	border: 1px solid #c5e3a4;
}

.distributor-alert.error {
	background: #fdecea;
	color: #8a1f1b;
	border: 1px solid #f3b5b0;
}

.distributor-form .field-error {
	border-color: #e53935 !important;
}

.distributor-form .error-text {
	display: none;
	margin-top: 4px;
	font-size: 12px;
	color: #d32f2f;
}

.distributor-form .has-error .error-text {
	display: block;
}

.distributor-form .other-district-group {
	display: none;
}

.distributor-form .other-district-group.is-visible {
	display: block;
}

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

/* Desktop: left text, right form */
@media (min-width: 992px) {
	.distributor-page {
		padding: 52px 0 88px;
	}

	.distributor-layout {
		flex-direction: row;
		align-items: stretch;
		gap: 28px;
	}

	.distributor-info {
		flex: 0 0 40%;
		max-width: 40%;
	}

	.qc-panel {
		height: 100%;
		padding: 28px 24px 24px;
	}

	.qc-title {
		font-size: 32px;
	}

	.distributor-wrap {
		flex: 1;
		max-width: 60%;
	}

	.distributor-layout.form-only .distributor-wrap {
		flex: 0 1 760px;
		max-width: 760px;
	}

	.distributor-layout.contact-only .distributor-info {
		flex: 0 1 760px;
		max-width: 760px;
	}

	.distributor-card {
		padding: 30px 32px 36px;
	}

	.distributor-card-head h2 {
		font-size: 28px;
	}

	.distributor-logos img {
		max-height: 72px;
	}

	.distributor-form .form-row {
		display: flex;
		gap: 16px;
	}

	.distributor-form .form-row .form-group {
		flex: 1;
		min-width: 0;
	}

	.qc-people li {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}

	.qc-person {
		min-width: 120px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.distributor-page {
		padding: 40px 0 64px;
	}

	.distributor-card {
		padding: 28px 24px 32px;
	}

	.distributor-form .form-row {
		display: flex;
		gap: 14px;
	}

	.distributor-form .form-row .form-group {
		flex: 1;
		min-width: 0;
	}

	.qc-block {
		padding: 16px;
	}
}

@media (max-width: 480px) {
	.distributor-page {
		padding: 18px 0 42px;
	}

	.qc-panel,
	.distributor-card {
		padding: 18px 14px 20px;
		border-radius: 14px;
	}

	.qc-title {
		font-size: 24px;
	}

	.distributor-card-head h2 {
		font-size: 22px;
	}

	.qc-block {
		gap: 12px;
		padding: 14px 8px;
	}

	.qc-block-icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		border-radius: 10px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qc-panel,
	.distributor-wrap,
	.qc-block,
	.qc-wa,
	.distributor-form .btn-submit {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}
