/* Ukiyo Free Pickup Form — premium animated styles */

.ukiyo-pf-wrap {
	--ukiyo-purple: #3f1d6e;
	--ukiyo-purple-dark: #2d1450;
	--ukiyo-purple-light: #6d3fb0;
	--ukiyo-bg-field: #f2f2f4;
	--ukiyo-text: #1b1b1f;
	--ukiyo-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.ukiyo-pf-wrap *,
.ukiyo-pf-wrap *::before,
.ukiyo-pf-wrap *::after,
.ukiyo-pf-modal *,
.ukiyo-pf-modal *::before,
.ukiyo-pf-modal *::after {
	box-sizing: border-box;
}

.ukiyo-pf-card {
	max-width: 720px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 22px;
	padding: 44px 48px 32px;
	box-shadow: 0 10px 40px rgba(31, 12, 60, 0.12), 0 2px 8px rgba(31, 12, 60, 0.06);
	animation: ukiyo-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ukiyo-card-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ukiyo-pf-title {
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--ukiyo-text);
	margin: 0 0 30px;
}

.ukiyo-pf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.ukiyo-pf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ukiyo-pf-field.ukiyo-pf-full {
	margin-bottom: 8px;
}

.ukiyo-pf-field label {
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ukiyo-text);
}

.ukiyo-pf-field input,
.ukiyo-pf-field textarea {
	width: 100%;
	background: var(--ukiyo-bg-field);
	border: 1.5px solid transparent;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
	color: var(--ukiyo-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	outline: none;
	font-family: inherit;
}

.ukiyo-pf-field input::placeholder,
.ukiyo-pf-field textarea::placeholder {
	color: #8a8a90;
}

.ukiyo-pf-field input:focus,
.ukiyo-pf-field textarea:focus {
	background: #ffffff;
	border-color: var(--ukiyo-purple-light);
	box-shadow: 0 0 0 4px rgba(109, 63, 176, 0.14);
}

.ukiyo-pf-field input.ukiyo-pf-invalid,
.ukiyo-pf-field textarea.ukiyo-pf-invalid {
	border-color: #d33a3a;
	box-shadow: 0 0 0 4px rgba(211, 58, 58, 0.1);
}

.ukiyo-pf-field textarea {
	resize: vertical;
	min-height: 90px;
}

.ukiyo-pf-error {
	display: block;
	min-height: 16px;
	font-size: 12.5px;
	color: #d33a3a;
	font-weight: 600;
}

.ukiyo-pf-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ukiyo-pf-submit-wrap {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.ukiyo-pf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 200px;
	padding: 15px 42px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ukiyo-purple) 0%, var(--ukiyo-purple-dark) 100%);
	background-size: 160% 160%;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.5s ease;
	box-shadow: 0 8px 20px rgba(63, 29, 110, 0.35);
}

.ukiyo-pf-submit::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	animation: ukiyo-shine 2.8s ease-in-out infinite;
}

@keyframes ukiyo-shine {
	0% { left: -60%; }
	45% { left: 130%; }
	100% { left: 130%; }
}

.ukiyo-pf-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(63, 29, 110, 0.45);
	background-position: 100% 0;
}
.ukiyo-pf-submit:active {
	transform: translateY(0);
}
.ukiyo-pf-submit:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.ukiyo-pf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ukiyo-spin 0.7s linear infinite;
}
.ukiyo-pf-submit.ukiyo-loading .ukiyo-pf-spinner { display: inline-block; }
.ukiyo-pf-submit.ukiyo-loading .ukiyo-pf-btn-text { opacity: 0.7; }

@keyframes ukiyo-spin {
	to { transform: rotate(360deg); }
}

.ukiyo-pf-general-error {
	text-align: center;
	color: #d33a3a;
	font-weight: 600;
	font-size: 14px;
	margin: 14px 0 0;
	min-height: 18px;
}

.ukiyo-pf-brand {
	text-align: center;
	font-size: 12px;
	color: #9a9aa2;
	margin: 22px 0 0;
}
.ukiyo-pf-brand a {
	color: var(--ukiyo-purple-light);
	text-decoration: none;
	font-weight: 600;
}
.ukiyo-pf-brand a:hover {
	text-decoration: underline;
}

/* ---------- Modal ---------- */

.ukiyo-pf-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 8, 40, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
	opacity: 0;
	animation: ukiyo-fade-in 0.25s ease forwards;
}
.ukiyo-pf-modal-overlay[hidden] { display: none; }

@keyframes ukiyo-fade-in {
	to { opacity: 1; }
}

.ukiyo-pf-modal {
	position: relative;
	background: #fff;
	border-radius: 20px;
	max-width: 440px;
	width: 100%;
	padding: 40px 34px 32px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px) scale(0.95);
	opacity: 0;
	animation: ukiyo-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@keyframes ukiyo-modal-in {
	to { transform: translateY(0) scale(1); opacity: 1; }
}

.ukiyo-pf-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9a9aa2;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}
.ukiyo-pf-modal-close:hover {
	color: #333;
	transform: rotate(90deg);
}

.ukiyo-pf-modal-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
}
.ukiyo-pf-modal-icon svg { width: 100%; height: 100%; }

.ukiyo-pf-check-circle {
	stroke: var(--ukiyo-purple-light, #6d3fb0);
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: ukiyo-draw-circle 0.5s ease forwards 0.15s;
}
.ukiyo-pf-check-mark {
	stroke: var(--ukiyo-purple-light, #6d3fb0);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: ukiyo-draw-check 0.35s ease forwards 0.55s;
}
@keyframes ukiyo-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes ukiyo-draw-check { to { stroke-dashoffset: 0; } }

.ukiyo-pf-modal-title {
	font-size: 21px;
	font-weight: 800;
	color: var(--ukiyo-text, #1b1b1f);
	margin: 0 0 8px;
}

.ukiyo-pf-modal-subtitle {
	font-size: 14.5px;
	color: #6a6a72;
	margin: 0 0 26px;
	line-height: 1.5;
}

.ukiyo-pf-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ukiyo-pf-choice-btn {
	width: 100%;
	padding: 14px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	border: 1.5px solid transparent;
}

.ukiyo-pf-choice-primary {
	background: linear-gradient(135deg, #3f1d6e 0%, #2d1450 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(63, 29, 110, 0.35);
}
.ukiyo-pf-choice-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(63, 29, 110, 0.45);
}

.ukiyo-pf-choice-secondary {
	background: #fff;
	color: var(--ukiyo-purple, #3f1d6e);
	border-color: #e1d9f0;
}
.ukiyo-pf-choice-secondary:hover {
	background: #f6f1fc;
	transform: translateY(-2px);
}

.ukiyo-pf-modal-final {
	margin-top: 18px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ukiyo-purple, #3f1d6e);
	animation: ukiyo-fade-in 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 620px) {
	.ukiyo-pf-card {
		padding: 32px 22px 26px;
		border-radius: 18px;
	}
	.ukiyo-pf-title { font-size: 21px; }
	.ukiyo-pf-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Popup form (opened by a button linking to #ukiyo-pickup) ---------- */

.ukiyo-pf-form-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 8, 40, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
	overflow-y: auto;
	opacity: 0;
	animation: ukiyo-fade-in 0.25s ease forwards;
}
.ukiyo-pf-form-overlay[hidden] { display: none; }

.ukiyo-pf-popup-card {
	position: relative;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	margin: auto;
}

/* Optional ready-made button from [ukiyo_pickup_button] */
.ukiyo-pf-open-btn {
	display: inline-block;
	background: linear-gradient(135deg, #3f1d6e 0%, #2d1450 100%);
	color: #fff !important;
	padding: 14px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(63, 29, 110, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ukiyo-pf-open-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(63, 29, 110, 0.45);
}
