/* Jambliner order form (inc/front.php). Colors follow the theme's navy / amber. */
.wdp-jamb {
	--jn: var(--navy, #1e3a5f);
	--jn2: var(--navy-mid, #2d5a87);
	--ja: var(--amber, #f59e0b);
	--ji: #1e293b;
	--jm: #64748b;
	--jl: #dbe2ea;
	color: var(--ji);
	margin: 0 0 40px;
}
.wdp-jamb [hidden] { display: none !important; }
.wdp-jamb-lead { color: var(--jm); font-size: 1.05em; margin: 0 0 18px; }
.wdp-jamb-tabs { display: flex; border-bottom: 2px solid var(--jl); margin: 0 0 20px; }
.wdp-jamb-tabs button {
	background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
	padding: 12px 18px; font: inherit; font-weight: 600; color: var(--jm); cursor: pointer;
}
.wdp-jamb-tabs button[aria-selected="true"] { color: var(--jn); border-bottom-color: var(--ja); }
.wdp-jamb-tabs button:focus-visible { outline: 2px solid var(--jn2); outline-offset: 2px; }
.wdp-jamb-short { display: none; }
.wdp-jamb-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.wdp-jamb.is-quick .wdp-jamb-body, .wdp-jamb.is-done .wdp-jamb-body { grid-template-columns: minmax(0, 1fr); }
.wdp-jamb.is-quick .wdp-jamb-summary, .wdp-jamb.is-done .wdp-jamb-summary { display: none; }
.wdp-jamb-card { background: #fff; border: 1px solid var(--jl); border-radius: 10px; padding: 22px; }
.wdp-jamb-summary { position: sticky; top: 16px; font-size: 14px; }
.wdp-jamb-summary h3 { margin: 0 0 10px; font-size: 16px; color: var(--jn); }
.wdp-jamb-summary dl, .wdp-jamb-review dl { margin: 0 0 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; }
.wdp-jamb-summary dt, .wdp-jamb-review dt { color: var(--jm); }
.wdp-jamb-summary dd, .wdp-jamb-review dd { margin: 0; overflow-wrap: anywhere; }
.wdp-jamb-review { background: #f8fafc; border: 1px solid var(--jl); border-radius: 8px; padding: 14px 16px; margin: 0 0 14px; font-size: 15px; }
.wdp-jamb-review:empty { display: none; }

.wdp-jamb-prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--jm); margin: 0 0 14px; }
.wdp-jamb-bar { flex: 1; height: 6px; background: #e5eaf0; border-radius: 3px; overflow: hidden; }
.wdp-jamb-bar i { display: block; height: 100%; background: var(--ja); transition: width .2s; }
.wdp-jamb-form:not(.is-stepper) [data-stepbar], .wdp-jamb-form:not(.is-stepper) [data-stepnav], .wdp-jamb-form:not(.is-stepper) [data-stepphoto] { display: none; }

.wdp-jamb .q { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--jn); line-height: 1.25; }
.wdp-jamb .q:focus { outline: none; }
.wdp-jamb-help {
	display: flex; gap: 14px; align-items: center;
	background: #fff8e6; border-left: 4px solid var(--ja); padding: 10px 14px; border-radius: 6px;
	font-size: 15px; margin: 8px 0 16px;
}
.wdp-jamb-sillpic { width: 170px; flex: none; }
.wdp-jamb-choices { display: grid; gap: 14px; }
.wdp-jamb-choices.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wdp-jamb-choices.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wdp-jamb-ch {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
	border: 2px solid var(--jl); border-radius: 10px; padding: 12px; background: #fff; cursor: pointer;
	font: inherit; color: var(--ji); text-align: center; min-height: 64px;
}
.wdp-jamb-ch.is-text { justify-content: center; }
.wdp-jamb-ch:hover { border-color: var(--jn2); }
.wdp-jamb-ch.is-sel, .wdp-jamb-ch:focus-visible { border-color: var(--jn); box-shadow: 0 0 0 3px rgba(30, 58, 95, .15); outline: none; }
.wdp-jamb-ch img, .wdp-jamb-pic { width: 100%; height: 140px; object-fit: contain; background: #fff; margin: 0 0 6px; }
.wdp-jamb-ch b { font-size: 16px; }
.wdp-jamb-ch small { color: var(--jm); font-size: 13px; display: block; }
.wdp-jamb-dim { color: var(--jn2) !important; }
.wdp-jamb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wdp-jamb-photo-link { font-size: 14px; margin: 14px 0 0; color: var(--jm); }

.wdp-jamb-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ja); color: var(--ji); font: inherit; font-weight: 700; border-radius: 8px;
	padding: 11px 22px; border: 0; cursor: pointer; text-decoration: none; min-height: 44px;
}
.wdp-jamb-btn:hover { filter: brightness(.95); color: var(--ji); }
.wdp-jamb-btn.is-ghost { background: #fff; border: 1px solid var(--jl); color: var(--jn); }
.wdp-jamb-btn[disabled] { opacity: .6; cursor: wait; }

.wdp-jamb-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.wdp-jamb-group legend { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--jm); font-weight: 700; padding: 0; margin: 0 0 6px; }
.wdp-jamb-form:not(.is-stepper) .wdp-jamb-group + .wdp-jamb-group { border-top: 1px solid var(--jl); padding-top: 16px; }
.wdp-jamb-form.is-stepper .wdp-jamb-group:not(.is-current) { display: none; }
.wdp-jamb-form.is-stepper .wdp-jamb-group legend { font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--jn); margin-bottom: 8px; }
.wdp-jamb-form.is-stepper .wdp-jamb-group legend:focus { outline: none; }

.wdp-jamb-field { margin: 0 0 14px; }
.wdp-jamb-field > label, .wdp-jamb-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.wdp-jamb-field input[type=text], .wdp-jamb-field input[type=email], .wdp-jamb-field input[type=tel], .wdp-jamb-field input[type=number], .wdp-jamb-field textarea, .wdp-jamb-field select {
	width: 100%; padding: 10px 12px; border: 1px solid #c7d1dc; border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: var(--ji); box-sizing: border-box;
}
.wdp-jamb-field input:focus, .wdp-jamb-field textarea:focus, .wdp-jamb-field select:focus { outline: 2px solid var(--jn2); outline-offset: 0; border-color: var(--jn2); }
.wdp-jamb-inch { display: grid; grid-template-columns: minmax(0, 140px) 100px auto; gap: 8px; align-items: center; }
.wdp-jamb-unit { color: var(--jm); }
.wdp-jamb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wdp-jamb-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 12px; align-items: end; margin: 0 0 14px; }
.wdp-jamb-pair .wdp-jamb-field { margin: 0; }
.wdp-jamb-pair .wdp-jamb-or { padding-bottom: 12px; color: var(--jm); font-weight: 600; }
.wdp-jamb-wide { grid-column: 1 / -1; }
.wdp-jamb-note { font-size: 14px; color: var(--jm); margin: 6px 0 0; }
.wdp-jamb-err { color: #b42318; font-size: 14px; margin: 4px 0 0; font-weight: 600; }
.wdp-jamb-err:empty { display: none; }
.has-err input[type=text], .has-err input[type=email], .has-err input[type=tel], .has-err input[type=number] { border-color: #b42318; }
.wdp-jamb-warn { background: #fff4e5; border: 1px solid #f5c26b; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin: -4px 0 14px; }
.wdp-jamb-fixed { background: #f1f5f9; border-radius: 6px; padding: 8px 12px; font-size: 15px; margin: 0 0 14px; }

.wdp-jamb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wdp-jamb-pill { position: relative; cursor: pointer; }
.wdp-jamb-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wdp-jamb-pill span { display: inline-block; border: 1px solid #c7d1dc; border-radius: 999px; padding: 8px 14px; font-size: 15px; background: #fff; min-height: 20px; }
.wdp-jamb-pill input:checked + span { background: var(--jn); color: #fff; border-color: var(--jn); }
.wdp-jamb-pill input:focus-visible + span { outline: 2px solid var(--ja); outline-offset: 2px; }
.has-err .wdp-jamb-pill span { border-color: #e7a19a; }

.wdp-jamb-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wdp-jamb-scard { position: relative; cursor: pointer; display: block; }
.wdp-jamb-scard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wdp-jamb-scard-in { display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px solid var(--jl); border-radius: 10px; padding: 10px; height: 100%; box-sizing: border-box; background: #fff; }
.wdp-jamb-scard img { width: 100%; height: 80px; object-fit: contain; margin: 0 0 4px; }
.wdp-jamb-scard b { font-size: 15px; }
.wdp-jamb-scard small { color: var(--jm); font-size: 12.5px; line-height: 1.3; display: block; }
.wdp-jamb-scard.is-text .wdp-jamb-scard-in { justify-content: center; background: #f8fafc; }
.wdp-jamb-scard input:checked + .wdp-jamb-scard-in { border-color: var(--jn); box-shadow: 0 0 0 3px rgba(30, 58, 95, .15); }
.wdp-jamb-scard input:focus-visible + .wdp-jamb-scard-in { outline: 2px solid var(--ja); outline-offset: 2px; }

.wdp-jamb-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px; cursor: pointer; margin: 10px 0 0; }
.wdp-jamb-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.wdp-jamb-file { position: relative; overflow: hidden; margin-top: 8px; }
.wdp-jamb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wdp-jamb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wdp-jamb-thumb { position: relative; width: 72px; height: 72px; border: 1px solid var(--jl); border-radius: 6px; overflow: hidden; font-size: 11px; display: flex; align-items: center; justify-content: center; background: #f8fafc; }
.wdp-jamb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wdp-jamb-thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 36, 64, .8); color: #fff; cursor: pointer; line-height: 1; }
.is-flash { animation: wdp-jamb-flash 1.6s; border-radius: 8px; }
@keyframes wdp-jamb-flash { 0%, 60% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .6); } 100% { box-shadow: none; } }

.wdp-jamb-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wdp-jamb-sendrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 8px; }
.wdp-jamb-sendrow .wdp-jamb-or { color: var(--jm); }
.wdp-jamb-fine { font-size: 13px; color: var(--jm); margin: 0; }
.wdp-jamb-status { font-weight: 600; margin: 8px 0 0; }
.wdp-jamb-status:empty { display: none; }
.wdp-jamb-form.is-stepper .wdp-jamb-sendrow .wdp-jamb-btn { min-width: 200px; }
.wdp-jamb-done h2 { margin: 0 0 8px; color: var(--jn); }
.wdp-jamb-done:focus { outline: none; }

@media (max-width: 1000px) {
	.wdp-jamb-body { grid-template-columns: minmax(0, 1fr); }
	.wdp-jamb-summary { display: none; }
	.wdp-jamb-series { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.wdp-jamb-long { display: none; }
	.wdp-jamb-short { display: inline; }
	.wdp-jamb-tabs button { padding: 10px 12px; flex: 1; }
	.wdp-jamb-card { padding: 16px; }
	.wdp-jamb .q, .wdp-jamb-form.is-stepper .wdp-jamb-group legend { font-size: 20px; }
	.wdp-jamb-choices.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wdp-jamb-choices { gap: 10px; }
	.wdp-jamb-ch img, .wdp-jamb-pic { height: 90px; }
	.wdp-jamb-help { flex-direction: column; align-items: flex-start; font-size: 14px; }
	.wdp-jamb-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wdp-jamb-row { grid-template-columns: minmax(0, 1fr); }
	.wdp-jamb-pair { grid-template-columns: minmax(0, 1fr); }
	.wdp-jamb-pair .wdp-jamb-or { padding: 6px 0; }
	.wdp-jamb-inch { grid-template-columns: minmax(0, 1fr) 96px auto; }
	.wdp-jamb-nav .wdp-jamb-btn { flex: 1; }
	.wdp-jamb-form.is-stepper .wdp-jamb-sendrow .wdp-jamb-btn { width: 100%; }
}
.wdp-jamb-empty { color: var(--jm); grid-column: 1 / -1; }
.wdp-jamb-summary dl { display: block; }
.wdp-jamb-summary dt { font-size: 12.5px; margin-top: 8px; }
.wdp-jamb-summary dt:first-child { margin-top: 0; }
.wdp-jamb-summary dd { font-weight: 600; }
.wdp-jamb-field > label.wdp-jamb-file { display: inline-flex; font-weight: 700; }
/* Check your answers (1.1.0) */
.wdp-jamb-madeto { background: #fff7e6; border-left: 4px solid #f59e0b; border-radius: 6px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.wdp-jamb-rsec + .wdp-jamb-rsec { border-top: 1px solid var(--jl); padding-top: 10px; margin-top: 10px; }
.wdp-jamb-rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.wdp-jamb-rhead a { font-weight: 600; white-space: nowrap; padding: 4px 0 4px 12px; }
.wdp-jamb .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
	.wdp-jamb-review dl { display: block; }
	.wdp-jamb-review dt { font-size: 13px; margin-top: 6px; }
	.wdp-jamb-review dt:first-child { margin-top: 0; }
}
