/**
 * Russound recall forms — Contact Form 7 styles
 * Scoped to .rs-form so nothing leaks into other CF7 forms on the site.
 */

.rs-form {
	--rs-accent: #b00;
	--rs-border: #ccc;
	--rs-border-focus: #b00;
	--rs-label: #333;
	--rs-muted: #6b6b6b;
	--rs-bg-soft: #f6f6f6;
	max-width: 860px;
	font-size: 15px;
	line-height: 1.5;
}

/* ---------- Headings ---------- */

.rs-form__title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.rs-form__section {
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e6e6e6;
	font-size: 1.0625rem;
	font-weight: 700;
}

.rs-form__section:first-child {
	margin-top: 0;
}

.rs-help {
	margin: 0 0 1.25rem;
	color: var(--rs-muted);
}

/* ---------- Layout ---------- */

.rs-grid {
	display: grid;
	gap: 0 1rem;
}

.rs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 600px) {
	.rs-grid--2,
	.rs-grid--3 { grid-template-columns: 1fr; }
}

.rs-field {
	margin: 0 0 1.1rem;
}

.rs-field label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--rs-label);
	font-weight: 600;
}

.rs-req {
	color: var(--rs-accent);
	text-decoration: none;
	border: 0;
}

.rs-optional {
	color: var(--rs-muted);
	font-weight: 400;
}

.rs-hint {
	display: block;
	margin-top: 0.3rem;
	color: var(--rs-muted);
	font-size: 0.8125rem;
}

/* ---------- Controls ---------- */

.rs-form input[type="text"],
.rs-form input[type="email"],
.rs-form input[type="tel"],
.rs-form input[type="number"],
.rs-form input[type="url"],
.rs-form select,
.rs-form textarea {
	width: 100%;
	padding: 0.6rem 0.7rem !important;
	border: 1px solid var(--rs-border);
	border-radius: 3px;
	background: #fff;
	color: #1b1b1b;
	font-size: 14px;
    line-height: 20px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rs-form input:focus,
.rs-form select:focus,
.rs-form textarea:focus {
	outline: none;
	border-color: var(--rs-border-focus);
	box-shadow: 0 0 0 3px rgba(187, 0, 0, 0.12);
}

.rs-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.rs-field--qty input[type="number"] { max-width: 8rem; }
.rs-field--narrow { max-width: 22rem; }

.rs-form input[type="file"] {
	width: 100%;
	padding: 0.45rem 0;
	font: inherit;
}

/* ---------- Checkboxes ---------- */

.rs-check-intro {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	color: var(--rs-label);
}

.rs-form .wpcf7-checkbox .wpcf7-list-item,
.rs-form .wpcf7-acceptance .wpcf7-list-item {
	display: block;
	margin: 0 0 0.6rem;
}

.rs-form .wpcf7-list-item-label {
	font-weight: 400;
	color: #333;
}

.rs-form input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-right: 0.5rem;
	vertical-align: -0.15rem;
	accent-color: var(--rs-accent);
}

/* ---------- Notices / consent ---------- */

.rs-notice {
	margin: 1.5rem 0;
	padding: 1rem 1.1rem;
	border-left: 3px solid var(--rs-accent);
	background: var(--rs-bg-soft);
}

.rs-notice h4 {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rs-notice p,
.rs-notice > div {
	margin: 0 0 0.75rem;
	color: #444;
	font-size: 0.9375rem;
}

.rs-notice p:last-child,
.rs-notice > div:last-child { margin-bottom: 0; }

.rs-consent {
	margin: 1.75rem 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fbfbfb;
}

.rs-consent__intro {
	margin: 0 0 1rem;
	font-weight: 600;
}

.rs-consent__item {
	margin: 0 0 0.6rem;
}

.rs-consent__item:last-child { margin-bottom: 0; }

/* CF7's autop inserts stray <br> after block openings — neutralise any that slip through. */
.rs-form .rs-field > br,
.rs-form .rs-consent__item > br {
	display: none;
}

/* ---------- Warranty registration: product blocks ---------- */

/*
.rs-product {
	margin: 1.25rem 0;
	padding: 1.1rem 1.2rem 0.5rem;
	border: 1px solid #e0e0e0;
	border-left: 3px solid var(--rs-accent);
	border-radius: 4px;
	background: #fcfcfc;
}
*/
.rs-product {
    margin: 1.25rem 0;
    padding: 30px 30px;
    border: none;
    background: #f5f5f5;
}

/* Nested blocks step inward so the "another product" chain stays legible. */
.rs-product .rs-product {
	margin: 1.25rem 0 0.5rem;
	background: #fff;
}

.rs-product__title {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rs-accent);
}

/* The Yes/No gate reads as a divider at the foot of each block. */
.rs-product > .rs-field--check {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #ddd;
}

.rs-form .wpcf7-radio .wpcf7-list-item {
	display: inline-block;
	margin: 0 1.25rem 0 0;
}

.rs-form input[type="radio"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-right: 0.4rem;
	vertical-align: -0.15rem;
	accent-color: var(--rs-accent);
}

/* Conditional Fields hides groups by adding this class — keep the transition tidy. */
.rs-form .wpcf7cf-hidden { display: none; }

/* ---------- Conditional block ---------- */

.rs-conditional {
	margin: 1rem 0 0;
	padding: 1rem 1.1rem 0.25rem;
	border-left: 3px solid #ddd;
	background: #fafafa;
}

/* Only used by the no-plugin JS fallback. */
.rs-conditional[hidden] { display: none; }

/* ---------- Submit ---------- */

.rs-actions {
	margin: 1.75rem 0 0;
}

.rs-form input.rs-submit {
	padding: 0.75rem 2rem;
	border: 0;
	border-radius: 3px;
	background: var(--rs-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rs-form input.rs-submit:hover { background: #8f0000; }
.rs-form input.rs-submit:disabled { opacity: 0.6; cursor: default; }

/* ---------- CF7 validation states ---------- */

.rs-form .wpcf7-not-valid {
	border-color: #d33 !important;
	background: #fff8f8;
}

.rs-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.3rem;
	color: #d33;
	font-size: 0.8125rem;
	font-weight: 600;
}

.rs-form .wpcf7-spinner { vertical-align: -0.35rem; }

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.85rem 1rem;
	border-width: 1px;
	border-radius: 3px;
	font-size: 0.9375rem;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #1a7f37;
	background: #f0fbf3;
	color: #14612a;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #d33;
	background: #fff5f5;
	color: #a11;
}

.rs-terms {
    margin: 0;
    padding-left: 1.35rem;
    color: #444;
    font-size: 0.9375rem;
}

.rs-terms li { margin: 0 0 0.55rem; }
.rs-terms li:last-child { margin-bottom: 0; }

/* GDPR / Mailchimp legal small print (email signup form). */
.rs-legal {
	margin: 1rem 0 0;
	color: #666;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.rs-legal a { color: inherit; text-decoration: underline; }
@media (max-width:575px){
    .rs-product { padding: 30px 20px; }
}