/**
 * Heritage Harvests - Bulk Order Page
 * Matches About / Policy: hero, leaves, sections, CTA; form styling.
 */

.hh-bulk-order {
	font-family: 'Outfit', sans-serif;
	position: relative;
	overflow-x: hidden;
	background: var(--hh-cream);
	color: var(--hh-text);
}

/* Visible by default; AOS adds .aos-animate for scroll animation when script is present */
.hh-bulk-order [data-aos] {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hh-bulk-order [data-aos="zoom-in"] {
	transform: scale(1);
}
/* When AOS script runs it toggles these; keep for compatibility if AOS is enqueued elsewhere */
.hh-bulk-order [data-aos].aos-animate {
	opacity: 1;
	transform: translateY(0);
}
.hh-bulk-order [data-aos="zoom-in"].aos-animate {
	transform: scale(1);
}

.hh-bulk-leaves {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
.hh-bulk-leaf {
	position: absolute;
	font-size: 20px;
	color: rgba(46, 125, 50, 0.06);
	animation: hhBulkLeafFloat 18s ease-in-out infinite;
}
.hh-bulk-leaf-1 { top: 12%; left: 6%; font-size: 26px; animation-delay: 0s; }
.hh-bulk-leaf-2 { top: 35%; right: 7%; font-size: 20px; animation-delay: 4s; }
.hh-bulk-leaf-3 { top: 60%; left: 4%; font-size: 22px; animation-delay: 8s; }
.hh-bulk-leaf-4 { top: 82%; right: 8%; font-size: 24px; animation-delay: 12s; }
@keyframes hhBulkLeafFloat {
	0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
	25% { transform: translateY(-20px) rotate(10deg); opacity: 0.7; }
	50% { transform: translateY(-10px) rotate(-5deg); opacity: 0.5; }
	75% { transform: translateY(-25px) rotate(8deg); opacity: 0.6; }
}

/* Hero */
.hh-bulk-hero {
	position: relative;
	min-height: 45vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 1;
}
.hh-bulk-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 40%, #2E7D32 70%, #33691E 100%);
	z-index: 0;
}
.hh-bulk-hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(27, 94, 32, 0.4) 0%, rgba(46, 125, 50, 0.2) 100%);
	z-index: 1;
}
.hh-bulk-hero-bg::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to top, var(--hh-cream), transparent);
	z-index: 1;
}
.hh-bulk-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 700px;
	padding: 100px 24px 70px;
}
.hh-bulk-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 8px 20px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 24px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.hh-bulk-hero-badge .bi { font-size: 16px; }
.hh-bulk-hero h1 {
	font-size: clamp(28px, 5vw, 44px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	line-height: 1.2 !important;
	margin: 0 0 16px !important;
}
.hh-bulk-hero h1 span { opacity: 0.95; }
.hh-bulk-hero p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	margin: 0;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

/* Intro */
.hh-bulk-intro {
	position: relative;
	z-index: 1;
	padding: 40px 24px 32px;
}
.hh-bulk-intro-inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.hh-bulk-intro-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hh-primary);
	margin-bottom: 16px;
}
.hh-bulk-intro h2 {
	font-size: clamp(22px, 4vw, 28px) !important;
	font-weight: 800 !important;
	color: var(--hh-primary-dark) !important;
	margin: 0 0 16px !important;
	line-height: 1.25;
}
.hh-bulk-intro p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--hh-text-light);
	margin: 0;
}

/* Form section */
.hh-bulk-form-section {
	position: relative;
	z-index: 1;
	padding: 0 24px 60px;
}
.hh-bulk-form-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 8px 40px rgba(46, 125, 50, 0.06);
	border: 1px solid rgba(46, 125, 50, 0.08);
	padding: 40px 36px 44px;
}
@media (max-width: 600px) {
	.hh-bulk-form-wrap {
		padding: 28px 20px 32px;
	}
}

.hh-bulk-message {
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 24px;
}
.hh-bulk-message-success {
	background: rgba(46, 125, 50, 0.12);
	color: var(--hh-primary-dark);
	border: 1px solid rgba(46, 125, 50, 0.25);
}
.hh-bulk-message-error {
	background: rgba(183, 28, 28, 0.08);
	color: #b71c1c;
	border: 1px solid rgba(183, 28, 28, 0.2);
}

/* Section cards (steps 1–5) */
.hh-bulk-section {
	border: none;
	margin: 0 0 36px 0;
	padding: 0 0 32px 0;
	border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}
.hh-bulk-section:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.hh-bulk-section-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 22px;
}
.hh-bulk-section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hh-primary) 0%, var(--hh-primary-dark) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
}
.hh-bulk-section-legend {
	font-size: 18px;
	font-weight: 700;
	color: var(--hh-primary-dark);
	margin: 0 0 4px 0;
	padding: 0;
}
.hh-bulk-section-desc {
	font-size: 14px;
	color: var(--hh-text-light);
	line-height: 1.5;
	margin: 0;
}
.hh-bulk-section-body {
	background: var(--hh-cream);
	border-radius: 16px;
	padding: 22px 20px;
	border: 1px solid rgba(46, 125, 50, 0.08);
}
/* Space after each field block before the next label */
.hh-bulk-section-body > .hh-bulk-field {
	margin-bottom: 24px;
}
.hh-bulk-section-body > .hh-bulk-field:last-child {
	margin-bottom: 0;
}
.hh-bulk-section-body > .hh-bulk-grid {
	margin-bottom: 24px;
}
.hh-bulk-section-body > .hh-bulk-grid:last-child {
	margin-bottom: 0;
}

.hh-bulk-grid {
	display: grid;
	gap: 24px;
}
.hh-bulk-grid-2 { grid-template-columns: 1fr 1fr; }
.hh-bulk-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) {
	.hh-bulk-grid-2,
	.hh-bulk-grid-3 { grid-template-columns: 1fr; }
}
.hh-bulk-field {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.hh-bulk-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--hh-text);
}
/* Visually hidden but available to screen readers (all contexts on this page) */
.hh-bulk-order .sr-only,
.hh-bulk-field .sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}
.hh-bulk-field .required { color: #c62828; }
.hh-bulk-field input[type="text"],
.hh-bulk-field input[type="email"],
.hh-bulk-field input[type="tel"],
.hh-bulk-field input[type="number"],
.hh-bulk-field textarea {
	width: 100%;
	padding: 14px 18px;
	font-size: 15px;
	font-family: 'Outfit', sans-serif;
	border: 1px solid rgba(46, 125, 50, 0.22);
	border-radius: 12px;
	background: #fff;
	color: var(--hh-text);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.hh-bulk-field input::placeholder,
.hh-bulk-field textarea::placeholder {
	color: var(--hh-text-light);
	opacity: 0.8;
}
.hh-bulk-field input:focus,
.hh-bulk-field textarea:focus {
	outline: none;
	border-color: var(--hh-primary);
	box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.hh-bulk-field textarea {
	resize: vertical;
	min-height: 110px;
}

/* Product table (catalog) */
.hh-bulk-product-table-wrap {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid rgba(46, 125, 50, 0.12);
	background: #fff;
}
.hh-bulk-product-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.hh-bulk-product-table thead {
	background: rgba(46, 125, 50, 0.08);
}
.hh-bulk-product-table th {
	text-align: left;
	font-weight: 700;
	color: var(--hh-primary-dark);
	padding: 14px 16px;
	border-bottom: 2px solid rgba(46, 125, 50, 0.15);
}
.hh-bulk-product-table tbody tr {
	border-bottom: 1px solid rgba(46, 125, 50, 0.08);
	transition: background 0.2s;
}
.hh-bulk-product-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.8);
}
.hh-bulk-product-table tbody tr.is-selected {
	background: rgba(46, 125, 50, 0.06);
}
.hh-bulk-product-table tbody tr:last-child {
	border-bottom: none;
}
.hh-bulk-product-table td {
	padding: 14px 16px;
	vertical-align: middle;
}
.hh-bulk-th-select,
.hh-bulk-td-select { width: 1%; white-space: nowrap; }
.hh-bulk-th-product,
.hh-bulk-td-product { min-width: 180px; }
.hh-bulk-th-qty,
.hh-bulk-td-qty { width: 100px; }
.hh-bulk-th-notes,
.hh-bulk-td-notes { min-width: 140px; }

.hh-bulk-product-check-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.hh-bulk-product-check {
	width: 18px;
	height: 18px;
	accent-color: var(--hh-primary);
	cursor: pointer;
}
.hh-bulk-check-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--hh-text-light);
}
.hh-bulk-product-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hh-bulk-product-thumb {
	display: block;
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--hh-cream);
}
.hh-bulk-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hh-bulk-product-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(46, 125, 50, 0.35);
	font-size: 20px;
}
.hh-bulk-product-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--hh-text);
	line-height: 1.3;
}
.hh-bulk-td-qty .hh-bulk-qty,
.hh-bulk-td-notes .hh-bulk-line-notes {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	font-family: 'Outfit', sans-serif;
	border: 1px solid rgba(46, 125, 50, 0.22);
	border-radius: 8px;
	background: #fff;
}
.hh-bulk-td-qty .hh-bulk-qty {
	text-align: center;
	max-width: 80px;
}
.hh-bulk-td-notes .hh-bulk-line-notes::placeholder {
	color: var(--hh-text-light);
	opacity: 0.8;
}
@media (max-width: 640px) {
	.hh-bulk-product-table thead { display: none; }
	.hh-bulk-product-table tbody tr {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid rgba(46, 125, 50, 0.12);
	}
	.hh-bulk-product-table td {
		display: block;
		padding: 8px 0 12px 0;
		border: none;
	}
	.hh-bulk-product-table td::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--hh-text-light);
		margin-bottom: 6px;
	}
	.hh-bulk-td-select::before { content: ''; margin-bottom: 0; }
	.hh-bulk-td-product::before { content: 'Product'; }
	.hh-bulk-td-qty::before { content: 'Quantity'; }
	.hh-bulk-td-notes::before { content: 'Notes'; }
	.hh-bulk-th-qty,
	.hh-bulk-td-qty { width: auto; }
	.hh-bulk-td-qty .hh-bulk-qty { max-width: 100%; }
}
.hh-bulk-no-products {
	font-size: 14px;
	color: var(--hh-text-light);
	margin: 0;
}
.hh-bulk-no-products a { color: var(--hh-primary); font-weight: 600; }

/* Custom products (other / not in list) */
.hh-bulk-custom-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.hh-bulk-custom-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.hh-bulk-custom-fields {
	display: grid;
	grid-template-columns: 1fr 80px 1fr;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
@media (max-width: 600px) {
	.hh-bulk-custom-fields {
		grid-template-columns: 1fr 70px;
	}
	.hh-bulk-custom-fields input:nth-child(3) {
		grid-column: 1 / -1;
	}
}
.hh-bulk-custom-fields input {
	padding: 12px 14px;
	font-size: 15px;
	font-family: 'Outfit', sans-serif;
	border: 1px solid rgba(46, 125, 50, 0.22);
	border-radius: 10px;
	background: #fff;
}
.hh-bulk-custom-fields input:focus {
	outline: none;
	border-color: var(--hh-primary);
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.12);
}
.hh-bulk-custom-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(183, 28, 28, 0.08);
	color: #b71c1c;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	margin-top: 0;
	align-self: center;
}
.hh-bulk-custom-remove:hover {
	background: rgba(183, 28, 28, 0.15);
}
.hh-bulk-custom-remove .bi { font-size: 22px; }
.hh-bulk-custom-row:only-child .hh-bulk-custom-remove {
	visibility: hidden;
	pointer-events: none;
}
.hh-bulk-custom-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Outfit', sans-serif;
	color: var(--hh-primary-dark) !important;
	background: rgba(46, 125, 50, 0.08);
	border: 1px dashed rgba(46, 125, 50, 0.4);
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.hh-bulk-custom-add:hover {
	background: rgba(46, 125, 50, 0.14);
	border-color: var(--hh-primary);
	color: var(--hh-primary-dark) !important;
}
.hh-bulk-custom-add:hover .bi {
	color: var(--hh-primary-dark);
}
.hh-bulk-custom-add:focus,
.hh-bulk-custom-add:active {
	background: rgba(46, 125, 50, 0.12);
	border-color: var(--hh-primary);
	color: var(--hh-primary-dark) !important;
	outline: none;
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
}
.hh-bulk-custom-add:focus:not(:focus-visible) {
	box-shadow: none;
}
.hh-bulk-custom-add:focus-visible {
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.4);
}
.hh-bulk-custom-add .bi {
	font-size: 18px;
	color: inherit;
}

.hh-bulk-submit-wrap {
	margin-top: 32px;
	text-align: center;
}
.hh-bulk-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 44px;
	background: linear-gradient(135deg, var(--hh-primary) 0%, var(--hh-primary-dark) 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	font-family: 'Outfit', sans-serif;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 20px rgba(46, 125, 50, 0.35);
}
.hh-bulk-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(46, 125, 50, 0.4);
}
.hh-bulk-submit .bi { font-size: 18px; }

/* AJAX loading overlay */
.hh-bulk-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hh-bulk-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}
.hh-bulk-overlay-inner {
	text-align: center;
	padding: 24px;
}
.hh-bulk-spinner {
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	border: 4px solid rgba(46, 125, 50, 0.2);
	border-top-color: var(--hh-primary);
	border-radius: 50%;
	animation: hhBulkSpin 0.8s linear infinite;
}
@keyframes hhBulkSpin {
	to { transform: rotate(360deg); }
}
.hh-bulk-overlay-text {
	font-size: 15px;
	font-weight: 600;
	color: var(--hh-primary-dark);
	margin: 0;
}

/* AJAX error message (inline) */
.hh-bulk-ajax-message {
	margin-bottom: 20px;
}

/* Success state (replaces form) */
.hh-bulk-success-block {
	text-align: center;
	padding: 48px 32px 56px;
}
.hh-bulk-success-block[hidden] {
	display: none !important;
}
.hh-bulk-success-inner {
	max-width: 400px;
	margin: 0 auto;
}
.hh-bulk-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
	background: rgba(46, 125, 50, 0.12);
	color: var(--hh-primary);
	border-radius: 50%;
}
.hh-bulk-success-icon .bi {
	font-size: 42px;
}
.hh-bulk-success-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--hh-primary-dark);
	margin: 0 0 12px;
	line-height: 1.2;
}
.hh-bulk-success-message {
	font-size: 16px;
	line-height: 1.6;
	color: var(--hh-text-light);
	margin: 0 0 28px;
}
.hh-bulk-success-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Outfit', sans-serif;
	color: var(--hh-primary-dark);
	background: rgba(46, 125, 50, 0.1);
	border: 2px solid rgba(46, 125, 50, 0.3);
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hh-bulk-success-reset:hover {
	background: rgba(46, 125, 50, 0.18);
	border-color: var(--hh-primary);
	transform: translateY(-2px);
}

/* CTA */
.hh-bulk-cta {
	position: relative;
	z-index: 1;
	padding: 80px 20px;
}
.hh-bulk-cta-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 40%, #2E7D32 70%, #43A047 100%);
}
.hh-bulk-cta-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23fff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
	opacity: 0.5;
}
.hh-bulk-cta-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
}
.hh-bulk-cta-icon {
	font-size: 48px;
	color: rgba(255, 255, 255, 0.2);
	display: block;
	margin-bottom: 16px;
}
.hh-bulk-cta h2 {
	font-size: clamp(24px, 4vw, 34px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 0 12px !important;
	line-height: 1.2;
}
.hh-bulk-cta p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin: 0 0 24px;
}
.hh-bulk-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: #fff;
	color: var(--hh-primary-dark) !important;
	font-weight: 700;
	font-size: 15px;
	border-radius: 50px;
	text-decoration: none !important;
	transition: all 0.3s;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.hh-bulk-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
	color: var(--hh-primary) !important;
}
