/* Vastra Custom Orders — product page form */
.vvco {
	--vv-maroon: #5A030F;
	--vv-deep: #3E020A;
	--vv-gold: #D4A23C;
	--vv-gold-l: #F1D58A;
	--vv-cream: #FBF5EC;
	--vv-line: #e6d9bf;
	--vv-ink: #2b2220;
	position: relative;
	width: 100%;
	margin: 22px 0;
	padding: clamp(18px, 3vw, 30px);
	background: #fff;
	border: 1px solid var(--vv-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(62, 2, 10, .08);
	color: var(--vv-ink);
	font-family: var(--ast-body-font-family, 'Montserrat', sans-serif);
	text-align: left;
}
.vvco *, .vvco *::before, .vvco *::after { box-sizing: border-box; }
.vvco [hidden], .vvco-modal[hidden] { display: none !important; }

.vvco-head { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--vv-line); }
.vvco-eyebrow { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--vv-gold); }
.vvco .vvco-title { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.2; color: var(--vv-deep); }
.vvco-lead { margin: 0; font-size: 14px; line-height: 1.55; color: #6b5c52; }

.vvco-step { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.vvco-step legend { display: flex; align-items: center; gap: 10px; float: none; width: 100%; margin: 0 0 12px; padding: 0; font-size: 15px; font-weight: 700; color: var(--vv-deep); }
.vvco-step legend small { margin-left: 2px; font-size: 12px; font-weight: 500; color: #9a8a7b; }
.vvco-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--vv-maroon); color: var(--vv-gold-l); font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; }
.vvco-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #7a6a60; }

.vvco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.vvco-f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: #4a3a30; }
.vvco-f > span:first-child i, .vvco-check i { color: #b42318; font-style: normal; }
.vvco-f--wide { margin-top: 14px; }

.vvco .vvco-f input[type=text], .vvco .vvco-f input[type=email], .vvco .vvco-f input[type=tel], .vvco .vvco-f input[type=date], .vvco .vvco-f select, .vvco .vvco-f textarea,
.vvco .vvco-colour input[type=text] {
	display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px;
	background: #fff; border: 1.5px solid var(--vv-line); border-radius: 10px; box-shadow: none;
	font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--vv-ink);
	transition: border-color .2s, box-shadow .2s;
}
.vvco .vvco-f textarea { height: auto; padding: 12px 14px; resize: vertical; }
.vvco .vvco-f input:focus, .vvco .vvco-f select:focus, .vvco .vvco-f textarea:focus, .vvco .vvco-colour input[type=text]:focus {
	outline: 0; border-color: var(--vv-gold); box-shadow: 0 0 0 3px rgba(212, 162, 60, .24);
}
.vvco-f.is-invalid input, .vvco-f.is-invalid select, .vvco-f.is-invalid textarea { border-color: #c0392b; }
.vvco-err { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #b42318; }

/* Colours */
.vvco-colour { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vvco-swatch { position: relative; flex: none; width: 46px; height: 46px; margin: 0; overflow: hidden; border: 2px solid var(--vv-gold); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.vvco-swatch input { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); padding: 0; border: 0; background: none; cursor: pointer; }
.vvco .vvco-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f3ebdc; color: var(--vv-maroon); font-size: 20px; line-height: 1; box-shadow: none; cursor: pointer; }
.vvco .vvco-x:hover { background: #ead9b8; color: var(--vv-deep); }
.vvco .vvco-link, .vvco .vvco-link:hover, .vvco .vvco-link:focus, .vvco .vvco-link:active { display: inline-block; width: auto; min-height: 0; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none; color: var(--vv-maroon); font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vvco .vvco-link:hover, .vvco .vvco-link:focus-visible { color: var(--vv-deep); text-decoration-color: var(--vv-gold); }
.vvco .vvco-seg label, .vvco .vvco-seg label:hover { background: none; }
.vvco .vvco-x:hover, .vvco .vvco-x:focus { background: #ead9b8; color: var(--vv-deep); }
.vvco .vvco-previews button:hover { background: var(--vv-deep); }
.vvco a:hover { background: none; }

/* Measurements */
.vvco-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vvco-seg { position: relative; display: inline-flex; padding: 3px; background: var(--vv-cream); border: 1.5px solid var(--vv-line); border-radius: 999px; }
.vvco-seg label { margin: 0; }
.vvco-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vvco-seg span { display: block; padding: 7px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #6b5c52; cursor: pointer; transition: background .2s, color .2s; }
.vvco-seg input:checked + span { background: var(--vv-maroon); color: var(--vv-gold-l); }
.vvco-seg input:focus-visible + span { outline: 2px solid var(--vv-gold); outline-offset: 2px; }
.vvco-unitwrap { position: relative; display: block; }
.vvco .vvco-unitwrap input { padding-right: 46px; }
.vvco-unitwrap em { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: 12px; font-style: normal; font-weight: 500; color: #9a8a7b; pointer-events: none; }

/* Photos */
.vvco-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; background: var(--vv-cream); border: 2px dashed var(--vv-gold); border-radius: 12px; text-align: center; cursor: pointer; transition: background .2s; }
.vvco-drop:hover, .vvco-drop:focus-visible, .vvco-drop.is-over { background: #f6ead0; outline: 0; }
.vvco-drop strong { font-size: 14px; color: var(--vv-deep); }
.vvco-drop small { font-size: 12px; color: #8a7a6b; }
.vvco-previews { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.vvco-previews li { position: relative; width: 84px; height: 84px; margin: 0; }
.vvco-previews img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--vv-line); border-radius: 10px; }
.vvco-previews button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--vv-maroon); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

/* Consent + submit */
.vvco-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 13px; line-height: 1.45; color: #4a3a30; cursor: pointer; }
.vvco-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--vv-maroon); }
.vvco-check.is-invalid span { color: #b42318; }
.vvco-msg:empty { display: none; }
.vvco-msg.is-error { margin: 12px 0; padding: 10px 14px; background: #fdecea; border: 1px solid #f3b8b1; border-radius: 8px; font-size: 13.5px; color: #8a1c12; }
.vvco .vvco-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 8px; padding: 0 20px; background: linear-gradient(180deg, #7a0a1c, var(--vv-maroon)); border: 1px solid var(--vv-gold); border-radius: 10px; color: var(--vv-gold-l); font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter .2s, transform .2s; }
.vvco .vvco-submit:hover { filter: brightness(1.15); color: #fff; transform: translateY(-1px); }
.vvco .vvco-submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.vvco .vvco-submit.is-loading::before { content: ''; width: 16px; height: 16px; border: 2px solid rgba(241, 213, 138, .4); border-top-color: var(--vv-gold-l); border-radius: 50%; animation: vvco-spin .7s linear infinite; }
.vvco .vvco-submit--ghost { width: auto; display: inline-flex; background: transparent; color: var(--vv-maroon); border-color: var(--vv-maroon); }
.vvco .vvco-submit--ghost:hover { background: var(--vv-maroon); color: var(--vv-gold-l); filter: none; }
@keyframes vvco-spin { to { transform: rotate(360deg); } }

/* Success */
.vvco-success { padding: 18px 0 6px; text-align: center; }
.vvco-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #15803d; color: #fff; font-size: 34px; line-height: 64px; box-shadow: 0 8px 20px rgba(21, 128, 61, .3); }
.vvco-success h3 { margin: 0 0 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 26px; color: var(--vv-deep); }
.vvco-success p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #5a4a40; }
.vvco-ref strong { padding: 3px 10px; border-radius: 6px; background: var(--vv-cream); border: 1px dashed var(--vv-gold); color: var(--vv-deep); letter-spacing: .06em; }

/* Measurement guide modal */
.vvco-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(30, 0, 5, .74); }
.vvco-modal__box { position: relative; max-width: min(720px, 96vw); max-height: 92vh; padding: 12px; overflow: auto; background: #fff; border-radius: 12px; }
.vvco-modal__box img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.vvco-modal__close { position: sticky; top: 0; float: right; z-index: 2; width: 36px; height: 36px; margin: 0 0 -36px; border: 0; border-radius: 50%; background: var(--vv-maroon); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Spam trap, keep off screen */
.vvco-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.vvco { padding: 18px 16px; border-radius: 14px; }
	.vvco-grid { grid-template-columns: minmax(0, 1fr); }
	.vvco-grid--m { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 430px) {
	.vvco-grid--m { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.vvco *, .vvco-submit { transition: none !important; animation: none !important; }
}

/* keep the floating WhatsApp / back-to-top buttons from covering form text on small screens */
@media (max-width: 640px) {
	.vvco-check span { padding-right: 52px; }
	.vvco-hint { padding-right: 40px; }
}
