/*
 * Do Not Disturb — the enquiry block (theme 1.1.0, 1 October 2026).
 *
 * Part 1 is the "Your next steps" strip, moved here unchanged from the <style>
 * that was inline in template-parts/contact-form.php. Part 2 is the one-step
 * form (CF7 form 106, body in docs/dnd-enquiry-form.txt), in DND's own design
 * language: underlined fields on the light panel, Soft Earth text, the dark
 * green button. Everything in part 2 is scoped to .dnd-eform / .dnd-enq, so the
 * old two-step form keeps its own styles from dist/style.css until it is replaced.
 */

/* ========================= 1. Your next steps ========================= */
#ts-journey { scroll-margin-top: 175px; }
#ts-journey { padding: 0; background: transparent; color: var(--text-color); }
#ts-journey h2 { font-size: 2rem; font-weight: 400; text-align: center; margin: 0 0 28px; }
#ts-journey .journey-intro { text-align: center; font-size: 1rem; margin: -10px auto 24px; max-width: 520px; opacity: .85; }
#ts-journey .journey-wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; overflow: visible; }
#ts-journey .journey-row { display: flex; justify-content: center; gap: 16px; }
#ts-journey .journey-step {
	width: 168px; background: #ffffff; border-radius: 12px; padding: 16px 12px; text-align: center;
	box-shadow: 0 6px 18px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
#ts-journey .icon { width: 32px; height: 32px; margin-bottom: 10px; margin-top: 3px; }
#ts-journey .icon svg {
	width: 100%; height: 100%; fill: none; stroke: var(--accent-color); stroke-width: 1.6;
	stroke-linecap: round; stroke-linejoin: round;
}
#ts-journey h3 { font-size: .95rem; margin: 0 0 6px; font-weight: 600; }
#ts-journey p { font-size: .85rem; line-height: 1.35; margin: 0; }
#ts-journey .connector { display: flex; align-items: center; flex-shrink: 0; }
#ts-journey .connector svg { width: 36px; height: 18px; }
#ts-journey .connector path { stroke: var(--accent-color); stroke-width: 1; fill: none; opacity: .6; }
#ts-journey .swipe-hint { display: none; text-align: center; font-size: .9rem; margin-top: 12px; opacity: .75; }
@media (max-width: 1024px) {
	#ts-journey .journey-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	#ts-journey .journey-scroll::-webkit-scrollbar { display: none; }
	#ts-journey .journey-row { justify-content: flex-start; width: max-content; scroll-snap-type: x mandatory; }
	#ts-journey .journey-step { scroll-snap-align: start; }
	#ts-journey .swipe-hint { display: block; }
}
#next-steps, #ts-journey, #contact-form { scroll-margin-top: 175px; }
#contact-form { padding-top: 175px; margin-top: -175px; }
@media (max-width: 768px) {
	#ts-journey .journey-row { flex-direction: column; gap: 8px; width: 100%; }
	#ts-journey .journey-step { width: 100%; padding: 12px 16px; display: flex; flex-direction: row; align-items: flex-start; gap: 10px; text-align: left; }
	#ts-journey .journey-text { display: flex; flex-direction: column; }
	#ts-journey .icon { width: 22px; height: 22px; margin: 2px 0 0 0; flex-shrink: 0; }
	#ts-journey h3 { font-size: .9rem; margin: 0 0 2px; white-space: nowrap; }
	#ts-journey p { font-size: .8rem; margin: 0; line-height: 1.3; }
	#ts-journey .connector, #ts-journey .swipe-hint { display: none; }
	#ts-journey .journey-scroll { overflow: visible; }
}

/* ========================= 2. The one-step form ========================= */

/* The panel: room for the form on a phone (the old 40px padding inside two
   borders left a 260px column on a 390px screen). */
.dnd-enq .dnd-epanel { padding: 28px 20px 32px; }
@media (min-width: 768px) { .dnd-enq .dnd-epanel { padding: 44px 52px 48px; } }

.dnd-eform { color: var(--text-color); }
.dnd-eform br { display: none; } /* CF7's auto-paragraphs add <br> between a label and its field */
.dnd-eform p { margin: 0; }

/* Two fields to a row from tablet width, one on phones. */
.dnd-eform .erow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 640px) { .dnd-eform .erow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dnd-eform .f { display: block; margin: 0 0 26px; min-width: 0; }

/* Labels above every field (the old form used placeholders as labels, which
   disappear as soon as someone types). */
.dnd-eform .f > label,
.dnd-eform .flabel {
	display: block; margin: 0 0 6px;
	font-family: "haboro-soft", sans-serif; font-weight: 400; font-size: 12.5px;
	letter-spacing: .08em; text-transform: uppercase; color: var(--text-color);
}
.dnd-eform .opt { text-transform: none; letter-spacing: 0; font-style: italic; opacity: .75; }
.dnd-eform .fhint { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; opacity: .8; }

/* Fields: underlined, as before. 16px text so phones do not zoom on focus. */
.dnd-eform .wpcf7-form-control-wrap { display: block; width: 100%; padding: 0; }
.dnd-eform input[type="text"],
.dnd-eform input[type="email"],
.dnd-eform input[type="tel"],
.dnd-eform select,
.dnd-eform textarea {
	display: block; width: 100%; margin: 0; padding: 10px 0;
	font-family: "haboro-soft", sans-serif; font-weight: 300; font-size: 16px; line-height: 1.4;
	color: var(--text-color); background: transparent; border: 0;
	border-bottom: 1px solid var(--text-color); border-radius: 0; box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.dnd-eform select {
	-webkit-appearance: none; appearance: none; padding-right: 26px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A4E43' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 4px center;
}
.dnd-eform select option, .dnd-eform select optgroup { color: #222; }
.dnd-eform textarea { min-height: 96px; resize: vertical; }
.dnd-eform input::placeholder, .dnd-eform textarea::placeholder { color: var(--text-color); opacity: .6; }
.dnd-eform input:focus, .dnd-eform select:focus, .dnd-eform textarea:focus {
	outline: none; border-bottom-color: var(--accent-color); box-shadow: 0 1px 0 0 var(--accent-color);
}

/* Budget: five buttons, one choice (CF7 requires one). The circles are hidden;
   the whole label is the button. */
.dnd-eform .fchips { margin-bottom: 28px; }
.dnd-eform .chips .wpcf7-form-control { display: flex; flex-wrap: wrap; gap: 8px; }
.dnd-eform .chips .wpcf7-list-item { margin: 0; display: block; }
.dnd-eform .chips .wpcf7-list-item label { display: block; margin: 0; cursor: pointer; position: relative; }
.dnd-eform .chips input[type="radio"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
}
.dnd-eform .chips .wpcf7-list-item-label {
	display: inline-block; padding: 9px 16px; white-space: nowrap;
	font-family: "haboro-soft", sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2;
	color: var(--text-color); background: transparent;
	border: 1px solid var(--light-text-color); border-radius: 999px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.dnd-eform .chips label:hover .wpcf7-list-item-label { border-color: var(--text-color); }
.dnd-eform .chips input[type="radio"]:checked + .wpcf7-list-item-label {
	background: var(--text-color); border-color: var(--text-color);
	/* !important (1.1.1): dist/style.css forces the text colour of every span
	   inside .uacf7-multisetp-form with !important, which made the chosen
	   button brown on brown while Ultimate Addons for CF7 still wraps the form. */
	color: #fff !important;
}
.dnd-eform .chips input[type="radio"]:focus-visible + .wpcf7-list-item-label {
	box-shadow: 0 0 0 3px rgba(122, 78, 67, .3);
}

/* Phone: the flag field (Country & Phone Field for CF7, separate dial code;
   older .intl-tel-input build and newer .iti both covered). */
.dnd-eform .intl-tel-input, .dnd-eform .iti { display: block; width: 100%; }
.dnd-eform .intl-tel-input.separate-dial-code .selected-flag,
.dnd-eform .iti--separate-dial-code .iti__selected-flag { width: 74px; }
.dnd-eform .intl-tel-input.separate-dial-code input[name="tel"],
.dnd-eform .iti--separate-dial-code input[name="tel"] { padding-left: 84px; }
.dnd-eform .intl-tel-input .country-list, .dnd-eform .iti__country-list { z-index: 30; color: #222; }

/* Send. Dark green, as the site's primary buttons. */
.dnd-eform .enav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; }
.dnd-eform .wpcf7-submit {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	padding: 14px 40px; border: 1px solid var(--accent-light-color); border-radius: 0;
	background: var(--accent-light-color); color: #fff;
	font-family: "haboro-soft-extended", serif; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
	transition: background-color .3s ease, border-color .3s ease;
}
.dnd-eform .wpcf7-submit:hover, .dnd-eform .wpcf7-submit:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }
.dnd-eform .wpcf7-submit:disabled, .dnd-eform .wpcf7-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 639px) { .dnd-eform .wpcf7-submit { width: 100%; } }
.dnd-eform .wpcf7-spinner { margin: 0 0 0 4px; }
.dnd-eform .wpcf7-turnstile, .dnd-eform .cf-turnstile { margin: 0; }
.dnd-eform .efine { flex-basis: 100%; font-size: 13px; line-height: 1.45; opacity: .8; }

/* Messages only once Send has been pressed: CF7 revalidates on every change,
   which flagged untouched fields as errors while someone was still filling in
   the first ones (OOO 3.4x). */
.dnd-eform .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #9b2c2c; }
form:not(.dnd-tried) .dnd-eform .wpcf7-not-valid-tip { display: none; }
form.dnd-tried .dnd-eform .wpcf7-not-valid { border-bottom-color: #9b2c2c; }
.dnd-enq .wpcf7 form .wpcf7-response-output {
	margin: 22px 0 0; padding: 12px 16px; border-width: 1px;
	font-family: "haboro-soft", sans-serif; font-size: 14px; color: var(--text-color);
}
form:not(.dnd-tried) .wpcf7-response-output:empty { display: none; }

/* ========================= 3. Landing (1.1.10) ========================= */
/* The form takes focus when a link lands on it (landOnForm in dist/dnd.js), so
   the next Tab goes into it. No outline after a click or tap; keyboard users
   still see where focus went. */
#contact-form2:focus:not(:focus-visible) { outline: none; }
