/* Countertop order form. Loads on BOTH the public /countertops/ page (where no portal
   CSS is present) and the portal's Countertops section — so it is self-contained and
   carries its own Gallery·Sage tokens rather than inheriting them. */
.ndp-ct {
	--ct-dark:#2c2622; --ct-mid:#574d43; --ct-muted:#9a9186;
	--ct-rule:#d8cfc0; --ct-rule-lt:#e7e1d7; --ct-sage:#5c7a55; --ct-paper:#faf8f4;
	max-width:900px; margin:0 auto; color:var(--ct-mid);
	font-family:'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.ndp-ct h3 {
	font-family:'Playfair Display', Georgia, serif; font-weight:500;
	font-size:1.35rem; color:var(--ct-dark); margin:0 0 .35rem;
}
.ndp-ct-err {
	background:#fdf0ee; border:1px solid #e8c4bd; color:#8c2f22;
	padding:.85rem 1rem; border-radius:6px; margin-bottom:1.25rem;
}
.ndp-ct-ok {
	background:#eef3ec; border:1px solid #c6d8c0; color:#33502c;
	padding:1rem 1.15rem; border-radius:6px; margin-bottom:1.5rem; line-height:1.5;
}
.ndp-ct-login {
	background:var(--ct-paper); border:1px solid var(--ct-rule-lt);
	padding:.85rem 1rem; border-radius:6px; margin-bottom:1.5rem;
}
.ndp-ct-login a { color:var(--ct-sage); font-weight:600; }

.ndp-ct-sec { border-top:1px solid var(--ct-rule-lt); padding:1.75rem 0 .5rem; }
.ndp-ct-sec:first-of-type { border-top:0; padding-top:0; }
.ndp-ct-hint { font-size:.85rem; color:var(--ct-muted); line-height:1.5; margin:.3rem 0 1rem; }
.ndp-ct-opt  { font-size:.75rem; color:var(--ct-muted); font-weight:400; text-transform:none; }
.ndp-ct-req  { color:#c0392b; font-weight:700; margin-left:1px; }

.ndp-ct-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem 1.25rem; }
.ndp-ct-wide { grid-column:1 / -1; }
@media (max-width:640px) { .ndp-ct-grid { grid-template-columns:1fr; } }

/* Labels are block, not flex-column, so the required "*" stays inline with the label
   text instead of dropping to its own line. The control below gets its gap from margin. */
.ndp-ct label {
	display:block;
	font-size:.78rem; font-weight:600; letter-spacing:.04em;
	text-transform:uppercase; color:var(--ct-dark);
}
.ndp-ct input[type=text], .ndp-ct input[type=email], .ndp-ct input[type=tel],
.ndp-ct input[type=password], .ndp-ct input[type=number],
.ndp-ct select, .ndp-ct textarea {
	display:block; width:100%; margin-top:.35rem;
	padding:.7rem .75rem; font-size:1rem; font-weight:400;
	text-transform:none; letter-spacing:0; color:var(--ct-dark);
	background:#fff; border:1px solid var(--ct-rule); border-radius:4px;
	font-family:inherit;
}
.ndp-ct textarea { resize:vertical; }
.ndp-ct :is(input,select,textarea):focus {
	outline:none; border-color:var(--ct-sage); box-shadow:0 0 0 3px rgba(92,122,85,.14);
}

.ndp-ct-check {
	display:flex; flex-direction:row; align-items:flex-start; gap:.6rem;
	text-transform:none; letter-spacing:0; font-size:.95rem; font-weight:400;
	color:var(--ct-mid); line-height:1.45;
}
.ndp-ct-check input { margin-top:.2rem; width:18px; height:18px; accent-color:var(--ct-sage); flex:0 0 auto; }
.ndp-ct-ready {
	background:var(--ct-paper); border:1px solid var(--ct-rule-lt);
	border-radius:6px; padding:1rem 1.15rem; margin:1.75rem 0 1.25rem;
}
.ndp-ct-ready .ndp-ct-hint { display:block; margin:.35rem 0 0; }

/* Colours grouped by level. */
.ndp-ct-level { margin:0 0 1.5rem; }
.ndp-ct-level-hd {
	display:flex; align-items:baseline; gap:.6rem; margin:0 0 .7rem;
	font-family:'Playfair Display', Georgia, serif; font-size:1.1rem; color:var(--ct-dark);
	padding-bottom:.4rem; border-bottom:1px solid var(--ct-rule-lt);
}
.ndp-ct-level-hd span { font-family:inherit; font-size:.85rem; color:var(--ct-sage); font-weight:600; }

/* Colour swatches — the radio is the label. */
.ndp-ct-colors {
	display:grid; grid-template-columns:repeat(auto-fill, minmax(150px,1fr));
	gap:1rem; margin:0;
}
/* Backsplash + overhang share a row. */
.ndp-ct-inline { display:flex; gap:1.5rem; align-items:flex-end; flex-wrap:wrap; }
.ndp-ct-inline > label { flex:0 0 auto; }
.ndp-ct-inline > label:last-child { flex:1 1 200px; }
.ndp-ct-color {
	display:flex; flex-direction:column; gap:.4rem;
	position:relative; text-transform:none; letter-spacing:0;
	border:1px solid var(--ct-rule-lt); border-radius:6px; padding:.6rem;
	cursor:pointer; background:#fff; transition:border-color .15s, box-shadow .15s;
}
.ndp-ct-color:hover { border-color:var(--ct-rule); }
.ndp-ct-color input { position:absolute; opacity:0; pointer-events:none; }
.ndp-ct-color:has(input:checked) {
	border-color:var(--ct-sage); box-shadow:0 0 0 2px rgba(92,122,85,.18);
}
.ndp-ct-swatch {
	display:block; aspect-ratio:4/3; border-radius:4px;
	background:#efece6 center/cover no-repeat; border:1px solid var(--ct-rule-lt);
}
.ndp-ct-cname { font-size:.9rem; font-weight:600; color:var(--ct-dark); }
.ndp-ct-crate { font-size:.78rem; color:var(--ct-muted); }

/* Selectable + expandable swatches: a select dot (bottom-right) + a magnifier (top-right). */
.ndp-ct-swatch { position:relative; }
.ndp-ct-seldot {
	position:absolute; right:6px; bottom:6px; width:20px; height:20px; border-radius:50%;
	background:rgba(255,255,255,.55); border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.3); pointer-events:none;
}
.ndp-ct-color:has(input:checked) .ndp-ct-seldot { background:var(--ct-sage); }
.ndp-ct-color:has(input:checked) .ndp-ct-seldot::after {
	content:''; position:absolute; left:6px; top:3px; width:5px; height:9px;
	border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg);
}
.ndp-ct-zoom {
	position:absolute; right:6px; top:6px; width:26px; height:26px; border-radius:50%; border:0; padding:0;
	background:rgba(255,255,255,.92); color:var(--ct-dark); cursor:pointer;
	display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.ndp-ct-zoom:hover { background:#fff; color:var(--ct-sage); }
.ndp-ct-zoom svg { display:block; }

/* Colour lightbox. */
.ndp-ct-lightbox { position:fixed; inset:0; z-index:9600; display:flex; align-items:center; justify-content:center; }
.ndp-ct-lightbox[hidden] { display:none; }
.ndp-ct-lb-backdrop { position:absolute; inset:0; background:rgba(20,17,14,.86); }
.ndp-ct-lb-inner { position:relative; z-index:1; max-width:94vw; max-height:92vh; text-align:center; }
.ndp-ct-lb-close { position:absolute; right:0; top:-42px; background:none; border:0; color:#fff; font-size:34px; line-height:1; cursor:pointer; }
.ndp-ct-lb-name { color:#fff; font-size:16px; font-weight:600; letter-spacing:.04em; margin-bottom:10px; }
.ndp-ct-lb-strip { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px; max-width:94vw; }
.ndp-ct-lb-strip img { flex:0 0 auto; scroll-snap-align:center; max-height:74vh; max-width:90vw; object-fit:contain; border-radius:4px; background:#fff; }
.ndp-ct-lb-hint { color:rgba(255,255,255,.7); font-size:12px; margin-top:10px; }

/* Additional areas. */
.ndp-ct-area {
	border:1px solid var(--ct-rule); border-radius:8px; padding:1.1rem 1.15rem;
	margin:0 0 1rem; background:var(--ct-paper);
}
.ndp-ct-area-hd { display:flex; gap:.8rem; align-items:center; margin:0 0 .8rem; }
.ndp-ct-area-name {
	flex:1 1 auto; font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important;
	margin-top:0 !important;
}
.ndp-ct-area-rm {
	flex:0 0 auto; background:none; border:0; color:#c0392b; cursor:pointer;
	font-size:.85rem; font-weight:600; padding:.3rem .2rem;
}
.ndp-ct-area-rm:hover { text-decoration:underline; }
.ndp-ct-addarea {
	background:none; border:1px dashed var(--ct-sage); color:var(--ct-sage-deep,var(--ct-sage));
	border-radius:6px; padding:.75rem 1.1rem; cursor:pointer; font-size:.9rem; font-weight:600;
	font-family:inherit; color:var(--ct-sage);
}
.ndp-ct-addarea:hover { background:#eef3ec; }

.ndp-ct-btn {
	display:inline-block; background:var(--ct-dark); color:#fff; border:0;
	padding:.95rem 1.9rem; border-radius:4px; cursor:pointer;
	font-size:.82rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
	font-family:inherit;
}
.ndp-ct-btn:hover { background:var(--ct-sage); }

.ndp-ct-table td, .ndp-ct-table th { vertical-align:middle; }
