/* Same visual language as odfq-registration.css (field spacing/rhythm,
   counter positioning, modal, red/grey palette) under an "odfdc-"
   prefix, so nothing here can collide with or need to touch that
   plugin's own locked CSS. See that file for the detailed rationale
   behind the counter's absolute positioning and the 100%-wide form —
   both design decisions are reused here for the same reasons. */
.odfdc-form-wrap, .odfdc-form-wrap * { box-sizing: border-box; }
.odfdc-form-wrap { max-width: 100%; margin: 0 auto; font-family: inherit; padding: 0 .25rem; }

.odfdc-status {
	font-weight: 600;
	color: #555;
}

.odfdc-status-box {
	border-radius: 6px;
	padding: 1.5rem;
	text-align: center;
}
.odfdc-status-error {
	background: #fdecea;
	border: 1px solid #f3c2bc;
	color: #7a1f13;
}
.odfdc-status-done {
	background: #eaf7ee;
	border: 1px solid #b9e3c6;
	color: #1a1a1a;
}
.odfdc-status-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto .75rem;
	border-radius: 50%;
	background: #1a7a3c;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
}
.odfdc-status-done h2 { margin: 0 0 .5rem; }

.odfdc-intro {
	margin: 0 0 1.5rem;
	color: #444;
}

.odfdc-entry {
	border: 1px solid #e1e0d9;
	border-radius: 6px;
	padding: 1.25rem 1.25rem .5rem;
	margin: 0 0 2rem;
}
.odfdc-entry-legend {
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0 .5rem;
	color: #a11;
}
.odfdc-entry-subheading {
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #7a7a7a;
	margin: 1rem 0 1rem;
	border-bottom: 1px solid #ececec;
	padding-bottom: .35rem;
}

.odfdc-form .odfdc-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.75rem; /* leaves room for .odfdc-counter, which is
	                            absolutely positioned below and doesn't
	                            add to this field's own flow height —
	                            see .odfdc-counter below for why. */
}
.odfdc-form .odfdc-input-wrap {
	position: relative;
	display: block;
}
.odfdc-form label {
	font-weight: 700;
	font-size: .8rem;
	margin-bottom: .5rem;
}
.odfdc-form .odfdc-required-mark { color: #c0392b; }

.odfdc-form input[type="text"],
.odfdc-form input[type="tel"] {
	width: 100%;
	background: #ececec;
	border: 1px solid #ececec;
	border-radius: 2px;
	padding: .85rem 1rem;
	font-size: 1rem; /* 16px — stops iOS Safari auto-zooming in on focus */
	min-height: 44px; /* comfortable tap target */
	color: #333;
}
.odfdc-form input::placeholder { color: #9a9a9a; }
.odfdc-form input:focus {
	outline: none;
	border-color: #a11;
	background: #fff;
}
.odfdc-form input:invalid.odfdc-touched {
	border-color: #c0392b;
}

.odfdc-form .odfdc-counter {
	/* Absolutely positioned relative to .odfdc-input-wrap (NOT the whole
	   .odfdc-field) so it floats under the input WITHOUT adding to
	   either the input-wrap's or the field's flow height — keeps every
	   field's vertical rhythm the same regardless of whether it shows a
	   counter. Same technique as odfq-registration.css; see that file
	   for the full rationale. */
	position: absolute;
	right: 0;
	bottom: -1.3rem;
	font-size: .75rem;
	color: #7a7a7a;
}
.odfdc-form .odfdc-field[data-counter-max] .odfdc-counter.odfdc-limit-reached {
	color: #c0392b;
	font-weight: 600;
}

.odfdc-form .odfdc-btn {
	display: block;
	width: 100%;
	background: #a11;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: .9rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .03em;
	min-height: 48px;
	cursor: pointer;
}
.odfdc-form .odfdc-btn:hover { background: #810; }
.odfdc-form .odfdc-btn:disabled { background: #c99; cursor: not-allowed; }

.odfdc-errors {
	color: #b00020;
	font-weight: 600;
	min-height: 1.25em;
	margin: 0 0 1rem;
}
.odfdc-field-error {
	color: #b00020;
	font-size: .8rem;
	margin-top: .35rem;
}

/* ---- Confirmation popup ------------------------------------------------
   Fixed-position overlay, independent of .odfdc-form-wrap's own width/
   layout, so it always centers in the viewport regardless of where the
   form sits on the page or how far the visitor has scrolled. No close
   button — once all entries for an order are submitted the order is
   locked server-side, so there's nothing left to do on this page but
   read the confirmation. */
.odfdc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 100000; /* above Divi's fixed header/nav */
}
.odfdc-modal-overlay[hidden] { display: none; }

.odfdc-modal {
	position: relative;
	background: #fff;
	border-radius: 6px;
	max-width: 440px;
	width: 100%;
	padding: 2.25rem 1.75rem 1.75rem;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, .25 );
	font-family: inherit;
}
.odfdc-modal:focus { outline: none; }

.odfdc-modal-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto .75rem;
	border-radius: 50%;
	background: #1a7a3c;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
}

.odfdc-modal-title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
	color: #1a1a1a;
}

.odfdc-modal-message {
	margin: 0;
	color: #444;
	font-size: 1rem;
	line-height: 1.5;
}
