/* POD Order Forms – Frontend Styles v1.4.0 */

.podof-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
	max-width: 520px;
	margin: 0 auto;
	padding: 0 4px;
}

/* ── Notices ───────────────────────────────────────────────────────────────── */

.podof-sameday-notice {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	display: none;
	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;
}

.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;
}

/* ── Form fields ───────────────────────────────────────────────────────────── */

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

.podof-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
	letter-spacing: 0.01em;
}

.podof-input,
.podof-select {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.podof-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 38px;
	cursor: pointer;
}

.podof-input:focus,
.podof-select:focus {
	outline: none;
	border-color: #f72585;
	box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.12);
}

/* County optgroup styling */
.podof-county-select optgroup {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.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;
}

/* ── Date picker ───────────────────────────────────────────────────────────── */

.podof-datepicker-wrap {
	display: none;
	margin-top: 8px;
}

.podof-datepicker {
	cursor: pointer;
}

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

/* ── Validation ────────────────────────────────────────────────────────────── */

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

.podof-error {
	background: #fef2f2;
	border: 1.5px solid #fca5a5;
	color: #b91c1c;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 14px;
	display: none;
}

.podof-success {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	color: #166534;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	display: none;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */

.podof-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	margin-top: 6px;
}

.podof-btn:hover:not(:disabled) {
	opacity: 0.88;
	transform: translateY(-1px);
}

.podof-btn:active:not(:disabled) {
	transform: translateY(0);
}

.podof-btn:disabled,
.podof-btn-loading {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Privacy note ──────────────────────────────────────────────────────────── */

.podof-privacy {
	margin-top: 12px;
	font-size: 12px;
	color: #9ca3af;
	text-align: center;
	line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.podof-input,
	.podof-select {
		font-size: 16px; /* prevents iOS zoom */
	}
}
