/*
 * CTD My Design - shared look (v1.8, 2026-11-05: main site header, #1499)
 *
 * Linked last in <head> of every My Design page, after each page's own <style>.
 * Every rule sits under body.ctd-md, so nothing outside the My Design pages is touched
 * and the pages' own rules stay as the fallback.
 *
 * Values are the OpenCart / Journal theme's own (read from the live pages):
 *   text        Outfit 15px / 1.7, #575757
 *   headings    Cormorant Garamond 300, #1A1A1A, -0.5px
 *   gold        #C2A559 (hover #B3944F), button text #F8F6F3, links #C2A559
 *   page        #FAF8F4, header #F8F6F3, title band #EDE9E3, menu and footer #000000
 *   radius      6px; form fields 40px high
 * No behaviour lives here: no field, id or name is changed by this file.
 */

/* ---------- base ---------- */
body.ctd-md {
	--colour-bg: #FAF8F4;
	--colour-surface: #EDE9E3;
	--colour-surface-alt: #EDE9E3;
	--colour-text: #1A1A1A;
	--colour-text-muted: #575757;
	--colour-border: #E5E0D6;
	--colour-accent: #C2A559;
	--colour-accent-hover: #B3944F;
	--colour-cta: #C2A559;
	--colour-cta-hover: #B3944F;
	--radius: 6px;
	--max-width: 1200px;
	margin: 0;
	padding: 0;
	font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: #575757;
	background-color: #FAF8F4;
	/* #4654 Full-height digits in Cormorant Garamond headings (default is old-style). */
	font-variant-numeric: lining-nums;
}
/* Only inside the page's own blocks: the date-picker calendar is added to <body> by its
   library and keeps its own box model. */
body.ctd-md > :not(.flatpickr-calendar),
body.ctd-md > :not(.flatpickr-calendar) *,
body.ctd-md > :not(.flatpickr-calendar) *::before,
body.ctd-md > :not(.flatpickr-calendar) *::after {
	box-sizing: border-box;
}
/* #100165 / #1499 Not inside the main site header or footer (.ctd-site-header, .ctd-site-footer),
   which keep Journal's own styles. :where() adds no specificity, so these rules weigh the same as before. */
body.ctd-md h1:where(:not(.ctd-site-footer *, .ctd-site-header *)),
body.ctd-md h2:where(:not(.ctd-site-footer *, .ctd-site-header *)),
body.ctd-md h3:where(:not(.ctd-site-footer *, .ctd-site-header *)) {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: #1A1A1A;
}
body.ctd-md a:where(:not(.ctd-site-footer *, .ctd-site-header *)) {
	color: var(--colour-accent);
}
body.ctd-md a:where(:not(.ctd-site-footer *, .ctd-site-header *)):hover {
	color: #B3944F;
}
body.ctd-md p:where(:not(.ctd-site-footer *, .ctd-site-header *)) {
	font-size: 15px;
	line-height: 1.7;
}

/* ---------- main site header (includes/site-footer.php, #1499) ----------
   The Journal header, menu and mobile menu are copied from the main site, so they look and
   work as on every other page. Not scoped to body.ctd-md, so success.php (no body class) gets
   these too. */
/* The off-canvas panels (mobile menu, basket) are wrapped only so the page styles stay off them */
.ctd-site-header--panels {
	display: contents;
}
/* Journal's .site-wrapper is a flex column, which would shrink the pages' centred blocks
   (margin: 0 auto) to the width of their content */
.site-wrapper.ctd-md-site {
	display: block;
}

/* Fallback header, only shown when the main site header cannot be loaded: logo and phone */
.ctd-md-wrap {
	max-width: 1424px;
	margin: 0 auto;
	padding: 0 32px;
}
.ctd-md-header {
	background-color: #F8F6F3;
}
.ctd-md-header .ctd-md-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 100px;
}
.ctd-md-header__logo {
	display: block;
	line-height: 0;
}
.ctd-md-header__logo img {
	display: block;
	width: 300px;
	max-width: 60vw;
	height: auto;
}
.ctd-md-header__phone {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- breadcrumb + title band (as on the store's pages) ---------- */
.ctd-md-crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 13px 32px;
	background-color: #EDE9E3;
	font-size: 13px;
	line-height: 1.3;
	color: #575757;
}
body.ctd-md .ctd-md-crumbs a {
	color: #575757;
	text-decoration: none;
}
body.ctd-md .ctd-md-crumbs a:hover {
	color: #C2A559;
}
.ctd-md-band {
	margin: 0;
	padding: 32px 16px;
	background-color: #EDE9E3;
	text-align: center;
}
.ctd-md-band__title {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: #1A1A1A;
}
body.ctd-md p.ctd-md-band__title {
	font-size: 24px;
	line-height: 1.2;
}
@media (min-width: 768px) {
	.ctd-md-band {
		padding: 48px 16px;
	}
	.ctd-md-band__title,
	body.ctd-md p.ctd-md-band__title {
		font-size: clamp(28px, 3.4vw, 48px);
	}
}

/* ---------- buttons (the store's gold button) ---------- */
body.ctd-md .submit-btn,
body.ctd-md .hero__cta,
body.ctd-md .cta-band__btn,
body.ctd-md .success-panel__cta,
body.ctd-md .upload-btn {
	display: inline-block;
	padding: 16px 32px;
	background-color: #C2A559;
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: #F8F6F3 !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
body.ctd-md .submit-btn:hover,
body.ctd-md .hero__cta:hover,
body.ctd-md .cta-band__btn:hover,
body.ctd-md .success-panel__cta:hover,
body.ctd-md .upload-btn:hover {
	background-color: #B3944F;
	transform: none;
}
body.ctd-md .submit-btn {
	display: block;
	width: 100%;
	margin-top: 28px;
}
body.ctd-md .submit-btn:disabled {
	background-color: #BDB7AB;
	cursor: not-allowed;
}

/* ---------- forms: upload-page.php and details-page.php ---------- */
body.ctd-md .logo {
	display: none; /* the shared header carries the logo */
}
body.ctd-md .form-container {
	max-width: 640px;
	margin: 32px auto 56px;
	padding: 32px;
	background-color: #FFFFFF;
	border: 1px solid #E5E0D6;
	border-radius: 6px;
	box-shadow: none;
}
body.ctd-md .form-container h1 {
	margin: 0 0 16px;
	font-size: 32px;
}
body.ctd-md .form-container h2 {
	margin: 0 0 12px;
	font-size: 26px;
}
body.ctd-md .form-container label {
	margin: 14px 0 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #575757;
}
body.ctd-md .form-container input[type="text"],
body.ctd-md .form-container input[type="tel"],
body.ctd-md .form-container input[type="email"],
body.ctd-md .form-container input[type="date"],
body.ctd-md .form-container input[type="time"],
body.ctd-md .form-container textarea {
	width: 100%;
	height: 40px;
	margin-top: 4px;
	padding: 8px 12px;
	background-color: #FFFFFF;
	border: 1px solid #D9D4CB;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #152024;
}
body.ctd-md .form-container textarea {
	height: 110px;
	margin-bottom: 8px;
}
body.ctd-md .form-container input:focus,
body.ctd-md .form-container textarea:focus {
	outline: none;
	border-color: #C2A559;
	box-shadow: 0 0 0 2px rgba(194, 165, 89, 0.25);
}
body.ctd-md .form-container input.is-invalid,
body.ctd-md .form-container textarea.is-invalid,
body.ctd-md .file-upload.is-invalid {
	border-color: #B00020;
}
body.ctd-md .form-container ::placeholder {
	color: #9A958C;
}
body.ctd-md .form-container input[type="checkbox"] {
	accent-color: #C2A559;
}
body.ctd-md .checkbox-group {
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin-bottom: 8px;
}
body.ctd-md .checkbox-group label {
	margin: 0 14px 0 6px;
}
body.ctd-md .field-error {
	margin: 4px 0 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #B00020;
}
body.ctd-md .form-global-error {
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}
body.ctd-md .file-upload {
	margin-top: 6px;
	padding: 28px 20px;
	background-color: #FAF8F4;
	border: 1px dashed #B9B2A5;
	border-radius: 6px;
	font-size: 15px;
	color: #575757;
}
body.ctd-md .file-upload:hover,
body.ctd-md .file-upload.drag-over {
	border-color: #C2A559;
	background-color: #F6F1E4;
}
body.ctd-md .file-upload p {
	margin: 0;
}
body.ctd-md .tweak-form-section {
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #E5E0D6;
}
body.ctd-md .icon-group {
	justify-content: flex-start;
	gap: 18px;
	margin: 6px 0 30px;
}
body.ctd-md .icon {
	border: 2px solid transparent;
	border-radius: 6px;
}
body.ctd-md .icon.selected {
	border-color: #C2A559;
}
body.ctd-md .budget-input {
	margin-bottom: 8px;
}
body.ctd-md .budget-input span {
	font-size: 16px;
	color: #1A1A1A;
}

/* ---------- index.php ---------- */
body.ctd-md .hero__heading {
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 300;
}
body.ctd-md .hero__eyebrow {
	font-weight: 400;
}
body.ctd-md .hero__lede,
body.ctd-md .section__intro,
body.ctd-md .cta-band__sub {
	font-size: 16px;
	color: #575757;
}
body.ctd-md .hero__media {
	border: 1px solid #E5E0D6;
	box-shadow: none;
}
body.ctd-md .trust-strip {
	background-color: #FFFFFF;
	font-size: 14px;
}
body.ctd-md .trust-strip__icon {
	color: #C2A559;
}
body.ctd-md .reviews {
	background-color: #FFFFFF;
}
body.ctd-md .section__heading,
body.ctd-md .cta-band__heading {
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 300;
}
body.ctd-md .reviews__heading {
	font-size: 28px;
	font-weight: 300;
}
/* "How it works" step titles 20% bigger (22px -> 26.4px) and a step bolder, Light 300 ->
   Regular 400, the nearest Cormorant Garamond weight to "25% bolder" (Clive, 28 Oct 2026). */
body.ctd-md .process__step-title {
	font-size: 26.4px;
	font-weight: 400;
}
/* Step number circles doubled (Clive, 28 Oct 2026): 25px -> 50px, number 10px -> 20px. */
body.ctd-md .process__step-num {
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	width: 50px;
	height: 50px;
	font-size: 20px;
}
body.ctd-md .process__step-desc,
body.ctd-md .faq__answer {
	font-size: 15px;
	line-height: 1.7;
}
body.ctd-md .faq__group-title {
	font-size: 24px;
	font-weight: 300;
}
body.ctd-md .faq__item summary {
	font-size: 16px;
	font-weight: 400;
}
body.ctd-md .cta-band {
	background-color: #EDE9E3;
	color: #575757;
}
body.ctd-md .cta-band__heading {
	color: #1A1A1A;
}

/* index.php layout (Clive, 29 Oct 2026):
   [J] the 9:16 video shown whole (it was cropped to 4:3 by the home page video rule), with a
       1px gold border and 6px corners;
   [A] the page title on one line across the top of the hero (wraps on phones);
   [D] the four steps, smaller, to the right of the video under the intro text;
   [F] the FAQ on the same colour as the band below it;
   [I] "Or chat now on WhatsApp" under the Upload Your Design button. */
body.ctd-md .hero__heading--top {
	max-width: var(--max-width);
	margin: 0 auto 32px;
	text-align: center;
}
@media (min-width: 992px) {
	body.ctd-md .hero__heading--top {
		white-space: nowrap;
		font-size: clamp(30px, 3.2vw, 48px);
	}
}
body.ctd-md .hero__inner {
	grid-template-columns: 293px minmax(0, 1fr);
	gap: 48px;
}
body.ctd-md .hero__media {
	width: 293px;
	max-width: 100%;
	margin: 0;
	background-color: #1B1C1A;
	border: 1px solid #C2A559;
	border-radius: 6px;
}
body.ctd-md .hero__media #ctdVideo {
	width: 100%;
	height: auto;
	aspect-ratio: 1080 / 1914;
	object-fit: contain;
}
body.ctd-md .hero__content .process {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}
body.ctd-md .hero__content .process__step {
	padding: 0 4px;
}
body.ctd-md .hero__content .process__step-num {
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	font-size: 16px;
}
body.ctd-md .hero__content .process__step-title {
	font-size: 21px;
}
body.ctd-md .hero__content .process__step-desc {
	font-size: 14px;
	line-height: 1.5;
}
body.ctd-md .section--alt {
	background-color: #EDE9E3;
}
body.ctd-md .cta-band__whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	min-height: 44px;
	margin: 12px auto 0;
	font-size: 16px;
	text-decoration: none;
	color: #575757;
}
body.ctd-md .cta-band__whatsapp:hover {
	color: #B3944F;
}
body.ctd-md .cta-band__whatsapp-icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}
@media (max-width: 768px) {
	body.ctd-md .hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	body.ctd-md .hero__media {
		width: min(72vw, 293px);
		margin: 0 auto;
	}
	body.ctd-md .hero__content .process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 24px;
	}
}

/* ---------- success.php ---------- */
body.ctd-md .success-panel {
	background-color: #FAF8F4;
	padding: 48px 24px 64px;
}
body.ctd-md .success-panel__card {
	border: 1px solid #E5E0D6;
	border-radius: 6px;
	box-shadow: none;
}
body.ctd-md .success-panel__icon {
	background-color: #C2A559;
	font-weight: 400;
}
body.ctd-md .success-panel__heading {
	font-size: 40px;
	font-weight: 300;
}
body.ctd-md .success-panel__body,
body.ctd-md .success-panel__note,
body.ctd-md .success-panel__secondary {
	color: #575757;
}
body.ctd-md .success-panel__secondary a {
	color: var(--colour-accent);
}

/* ---------- results/index.php (staff list) ---------- */
body.ctd-md .table-container {
	margin: 32px;
	padding: 24px;
	border: 1px solid #E5E0D6;
	border-radius: 6px;
	box-shadow: none;
}
body.ctd-md .table-container h1 {
	margin: 0 0 20px;
	font-size: 36px;
}
body.ctd-md .table-container th {
	background-color: #000000;
	font-weight: 400;
	color: #F8F6F3;
}
body.ctd-md .table-container th,
body.ctd-md .table-container td {
	border-color: #E5E0D6;
	font-size: 14px;
	line-height: 1.5;
}
body.ctd-md .table-container tr:nth-child(even) {
	background-color: #FAF8F4;
}
body.ctd-md .table-container tr:hover {
	background-color: #F6F1E4;
}

/* ---------- making-new-jewellery-from-old-jewellery (article) ---------- */
/* that page styles the bare <header> element; keep the shared header out of it */
body.ctd-md header.ctd-md-header {
	padding: 0;
	text-align: left;
}
body.ctd-md .upload-container {
	gap: 10px;
}
body.ctd-md .wrapper {
	gap: 24px;
	min-height: 0;
	padding: 32px;
}
body.ctd-md .left-col {
	margin-right: 0;
}
body.ctd-md .video-container video {
	border: 1px solid #E5E0D6;
}
body.ctd-md .wrapper .container {
	padding: 32px;
	border: 1px solid #E5E0D6;
	border-radius: 6px;
	box-shadow: none;
}
body.ctd-md .wrapper .section-title {
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #E5E0D6;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 300;
}
body.ctd-md .wrapper details {
	border-color: #E5E0D6;
	background-color: #FFFFFF;
}
body.ctd-md .wrapper summary {
	font-size: 16px;
	font-weight: 400;
	color: #1A1A1A;
}
body.ctd-md .wrapper summary a {
	color: inherit;
}
body.ctd-md .wrapper details p {
	margin: 0 16px 16px;
}

/* ---------- fallback footer (includes/site-footer.php) ----------
   Only shown when the main site footer cannot be loaded. */
.ctd-md-footer {
	margin-top: auto;
	padding: 48px 0 0;
	background-color: #000000;
	font-size: 14px;
	line-height: 1.6;
	color: #FFFFFF;
}
.ctd-md-footer__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
}
body.ctd-md .ctd-md-footer h3 {
	margin: 0 0 14px;
	font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	color: #C2A559;
}
body.ctd-md .ctd-md-footer p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #FFFFFF;
}
.ctd-md-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ctd-md-footer li {
	margin: 0 0 8px;
}
body.ctd-md .ctd-md-footer a {
	color: #FFFFFF;
	text-decoration: none;
}
body.ctd-md .ctd-md-footer a:hover {
	color: #C2A559;
}
.ctd-md-footer__bottom {
	margin-top: 36px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	text-align: center;
	font-size: 13px;
	color: #FFFFFF;
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
	.ctd-md-wrap {
		padding: 0 16px;
	}
	.ctd-md-header .ctd-md-wrap {
		min-height: 72px;
	}
	.ctd-md-header__logo img {
		width: 220px;
	}
	body.ctd-md .form-container {
		margin: 20px 16px 40px;
		padding: 20px;
	}
	body.ctd-md .form-container h1 {
		font-size: 26px;
	}
	body.ctd-md .form-container h2 {
		font-size: 22px;
	}
	body.ctd-md .table-container {
		margin: 16px;
		padding: 16px;
	}
	body.ctd-md .wrapper {
		padding: 20px 16px;
	}
	body.ctd-md .wrapper .container {
		padding: 20px;
	}
	body.ctd-md .success-panel__heading {
		font-size: 32px;
	}
	.ctd-md-footer {
		padding-top: 32px;
	}
	.ctd-md-footer__cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Honeypot field on the upload form (Luke 7 Nov 2026): off screen for people, still in the form for bots */
.ctd-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
