/* POD Order Forms – Frontend Styles
   Matches the Floitrends / Solarmax design language */

.podof-wrap {
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 28px 24px;
	box-shadow: 0 2px 20px rgba(0,0,0,.08);
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.podof-product-name {
	font-size: 20px;
	font-weight: 700;
	color: #111;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

/* ── Form fields ── */

.podof-form {
	display: block;
}

.podof-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 520px) {
	.podof-row {
		grid-template-columns: 1fr;
	}
	.podof-wrap {
		padding: 20px 16px;
	}
}

.podof-field {
	margin-bottom: 18px;
}

.podof-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #555;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.podof-input,
.podof-select {
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	color: #111;
	background: #f8f8f8;
	border: 1.5px solid #e8e8e8;
	border-radius: 10px;
	outline: none;
	transition: border-color .15s, background .15s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.podof-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 d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.podof-input:focus,
.podof-select:focus {
	border-color: #f72585;
	background: #fff;
}

.podof-input::placeholder {
	color: #bbb;
}

/* ── Submit button ── */

.podof-btn {
	width: 100%;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
	border: none;
	cursor: pointer;
	margin-top: 8px;
	transition: opacity .2s, transform .1s;
	display: block;
	box-sizing: border-box;
	line-height: 1.4;
}

.podof-btn:hover {
	opacity: .9;
}

.podof-btn:active {
	transform: scale(.99);
}

.podof-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.podof-btn-loading::after {
	content: ' …';
}

/* ── Privacy note ── */

.podof-privacy {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin: 10px 0 0;
}

/* ── Messages ── */

.podof-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 14px;
	font-size: 14px;
}

.podof-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	border-radius: 8px;
	padding: 20px 16px;
	margin-top: 14px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

/* ── Same-day / next-day notice ── */

.podof-sameday-notice {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	display: none; /* shown by JS */
	line-height: 1.5;
}

.podof-notice-sameday {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	color: #166534;
}

.podof-notice-nextday {
	background: #eff6ff;
	border: 1.5px solid #93c5fd;
	color: #1e40af;
}

/* ── After-2pm cutoff note ── */

.podof-cutoff-note {
	background: #fffbeb;
	border: 1.5px solid #fcd34d;
	color: #92400e;
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 600;
	display: none; /* shown by JS */
}

/* ── Custom date picker ── */

.podof-datepicker-wrap {
	display: none; /* shown by JS */
}

.podof-datepicker {
	cursor: pointer;
}

.podof-datepicker::-webkit-calendar-picker-indicator {
	opacity: .5;
	cursor: pointer;
}

/* ── County dropdown optgroup labels ── */

.podof-county-select optgroup {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}

.podof-county-select optgroup option {
	font-weight: 400;
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	color: #111;
}

/* ── Field validation ── */

.podof-input.podof-invalid,
.podof-select.podof-invalid {
	border-color: #ef4444;
	background: #fff5f5;
}
