/**
 * DDR Data Destruction Form.
 *
 * Restrained on purpose so the theme's typography still wins, and
 * defensive about the things a theme likes to break: box sizing, list
 * margins, alignment, and [hidden] losing to a class rule. The wrapper
 * keeps the class ddr-chances-wrap so the family looks the same.
 */

.ddr-chances-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	text-align: left;
}

.ddr-chances-wrap *,
.ddr-chances-wrap *::before,
.ddr-chances-wrap *::after {
	box-sizing: border-box;
}

/* hidden means hidden. The browser's own [hidden] rule sits at the weakest
   possible specificity, so any class rule that sets display beats it. */
.ddr-chances-wrap [hidden] {
	display: none !important;
}

.ddr-destroy-form {
	display: block;
	width: 100%;
	max-width: 52em;
	margin: 0;
	padding: 0;
	text-align: left;
}

.ddr-lede {
	margin: 0 0 1.4em;
	padding: 0.9em 1.1em;
	background: #fff5f4;
	border-left: 4px solid #ee2400;
	font-weight: 600;
}

.ddr-sec {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin: 0 0 1.6em;
	padding: 1.1em 1.2em 1.3em;
	min-width: 0;
}

.ddr-sec > legend {
	padding: 0 0.5em;
	font-size: 1.05em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ddr-field {
	margin: 0 0 1.1em;
	min-width: 0;
}

.ddr-field:last-child {
	margin-bottom: 0;
}

.ddr-field label,
.ddr-device label {
	display: block;
	margin: 0 0 0.35em;
	font-weight: 600;
}

.ddr-req {
	color: #ee2400;
}

.ddr-opt {
	font-weight: 400;
	color: #6b7280;
	font-size: 0.9em;
}

.ddr-destroy-form input[type="text"],
.ddr-destroy-form input[type="email"],
.ddr-destroy-form input[type="tel"],
.ddr-destroy-form select {
	display: block;
	width: 100%;
	margin: 0 0 0.4em;
	padding: 0.6em 0.7em;
	font-size: 1em;
	line-height: 1.3;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	background: #fff;
	color: inherit;
}

.ddr-destroy-form input:focus,
.ddr-destroy-form select:focus {
	outline: 2px solid #2b3648;
	outline-offset: 1px;
}

.ddr-missing {
	border-color: #ee2400 !important;
	background: #fff5f4 !important;
}

.ddr-hint {
	margin: 0.2em 0 0;
	font-size: 0.87em;
	color: #6b7280;
}

.ddr-inline-error {
	margin: 0.2em 0 0;
	font-size: 0.87em;
	color: #b91c1c;
	font-weight: 600;
}

/* Two and three up on a wide screen, stacked on a phone. */
.ddr-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1em;
}

.ddr-half {
	flex: 1 1 14em;
	min-width: 0;
}

.ddr-third {
	flex: 1 1 9em;
	min-width: 0;
}

/* Devices. */
.ddr-device {
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	padding: 0.9em 1em;
	margin: 0 0 0.9em;
	background: #fafafa;
}

.ddr-device-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.6em;
}

.ddr-device-n {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.ddr-remove,
.ddr-add {
	display: inline-block;
	padding: 0.4em 1em;
	font-size: 0.9em;
	font-weight: 600;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	background: #fff;
	color: #2b3648;
	cursor: pointer;
}

.ddr-remove:hover,
.ddr-add:hover {
	background: #f3f4f6;
}

.ddr-add {
	font-size: 1em;
	padding: 0.55em 1.3em;
}

/* Fee. */
.ddr-fee p {
	margin: 0 0 0.4em;
}

#ddr-total {
	font-size: 1.15em;
}

/* Terms. */
.ddr-term {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0 0 0.7em;
	padding: 0.55em 0.7em;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-weight: 400;
	cursor: pointer;
}

.ddr-term:hover {
	background: #f9fafb;
}

.ddr-term input {
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
	margin: 0.15em 0 0;
}

.ddr-terms.ddr-missing {
	border-color: #ee2400;
}

/* Where the devices are, and what to do about it. */
.ddr-loc-note,
.ddr-next-box {
	margin: 0.8em 0 0;
	padding: 0.9em 1.1em;
	background: #f5f7fa;
	border-left: 4px solid #2b3648;
	border-radius: 0 4px 4px 0;
}

.ddr-loc-note p,
.ddr-next-box p {
	margin: 0 0 0.35em;
}

.ddr-loc-note p:last-child,
.ddr-next-box p:last-child {
	margin-bottom: 0;
}

.ddr-where.ddr-missing {
	border-color: #ee2400;
}

.ddr-loc-after {
	margin: 0.8em 0 0;
	font-size: 0.92em;
	color: #6b7280;
}

.ddr-ticket-wrap {
	margin-top: 1em;
}

/* The offer to carry on where they left off. */
.ddr-resume {
	margin: 0 0 1.6em;
	padding: 1em 1.2em;
	background: #fdf1ef;
	border: 1px solid #f3c4bb;
	border-radius: 4px;
}

.ddr-resume p {
	margin: 0 0 0.6em;
}

/* Submit. */
.ddr-submit {
	display: inline-block;
	margin: 0.4em 0 0;
	padding: 0.8em 2.2em;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 0;
	border-radius: 4px;
	background: #ee2400;
	color: #fff;
	cursor: pointer;
}

.ddr-submit:hover {
	background: #cc1f00;
}

.ddr-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ddr-link-button {
	text-decoration: none;
	color: #fff;
}

.ddr-error {
	margin: 0 0 0.8em;
	padding: 0.7em 0.9em;
	border-left: 4px solid #ee2400;
	background: #fff5f4;
	color: #b91c1c;
	font-weight: 600;
}

.ddr-turnstile {
	margin: 0 0 1em;
}

.ddr-foot {
	margin-top: 0.9em;
}

.ddr-noscript {
	padding: 1em;
	border: 2px solid #ee2400;
	background: #fff5f4;
}

/* Thank-you page. */
.ddr-ticket-box {
	display: inline-block;
	margin: 0.5em 0 1.2em;
	padding: 0.8em 1.6em;
	border: 2px solid #2b3648;
	border-radius: 6px;
	text-align: center;
}

.ddr-ticket-label {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

.ddr-ticket-number {
	font-size: 1.8em;
	font-weight: 700;
	line-height: 1.1;
}

.ddr-device-list {
	margin: 0 0 1.2em 1.2em;
	padding: 0;
}

.ddr-warn-box {
	margin: 1.2em 0;
	padding: 0.9em 1.1em;
	border: 2px solid #ee2400;
	border-radius: 6px;
	background: #fff5f4;
}

.ddr-warn-box p {
	margin: 0 0 0.5em;
}

.ddr-warn-box p:last-child {
	margin-bottom: 0;
}
