/**
 * MishaDort Blocks v2 — Shared Form & Contact Form 7 Styles.
 * Self-contained styles for Contact Form 7 and standard inputs.
 */

:root {
	--mdb-accent: var(--wp--preset--color--accent-teal, #5fcac7);
	--mdb-accent-mint: var(--wp--preset--color--accent-mint, #18bb7c);
	--mdb-input-border: #edecec;
	--mdb-input-text: #333333;
}

/* Base input styling for forms */
.wpcf7 input:not([type='checkbox']):not([type='radio']):not([type='submit']):not(.adminbar-input):not(.search-field):not(.wp-block-search__input),
.wpcf7 textarea,
.wpcf7 select {
	background-color: #fff;
	font-size: 0.933333em;
	padding: 0 12px;
	border: 1px solid var(--mdb-input-border);
	max-width: 100%;
	min-width: 160px;
	min-height: 42px;
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--mdb-input-text);
	-webkit-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input:not([type='checkbox']):not([type='radio']):not([type='submit']):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	border-color: var(--mdb-accent-mint) !important;
	outline: none;
	box-shadow: 0 0 0 2px rgba(24, 187, 124, 0.2);
}

.wpcf7 textarea {
	padding: 10px 12px;
	min-height: 120px;
	line-height: 1.6923;
}

.wpcf7 input::-webkit-input-placeholder { color: #333333; }
.wpcf7 input::-moz-placeholder { color: #333333; }
.wpcf7 input:-moz-placeholder { color: #333333; }
.wpcf7 input:-ms-input-placeholder { color: #333333; }
.wpcf7 textarea::-webkit-input-placeholder { color: #333333; }
.wpcf7 textarea::-moz-placeholder { color: #333333; }
.wpcf7 textarea:-moz-placeholder { color: #333333; }
.wpcf7 textarea:-ms-input-placeholder { color: #333333; }

.wpcf7-form p {
	text-indent: 0;
	margin-bottom: 15px;
}

.wpcf7-form span.wpcf7-form-control-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.wpcf7-form span.wpcf7-form-control-wrap input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.wpcf7-form span.wpcf7-form-control-wrap textarea {
	width: 100%;
}

/* Radio & Checkbox elements */
.wpcf7-radio,
.wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 10px 0 15px;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.wpcf7-radio .wpcf7-list-item label,
.wpcf7-checkbox .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	margin-bottom: 0;
	font-size: 15px;
	color: #4b4342;
}

.wpcf7-radio input[type="radio"],
.wpcf7-checkbox input[type="checkbox"] {
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 4px 0 0 !important;
	cursor: pointer;
}

/* Submit button */
.wpcf7 input[type='submit'],
.wpcf7 .wpcf7-submit,
form.wpcf7-form input[type='submit'],
form.wpcf7-form .wpcf7-submit {
	cursor: pointer;
	min-width: 120px;
	height: 42px;
	padding: 0 25px !important;
	border-radius: 4px !important;
	background-color: var(--mdb-accent-mint) !important;
	border: 1px solid var(--mdb-accent-mint) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	font-size: 15px !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wpcf7 input[type='submit']:hover,
.wpcf7 .wpcf7-submit:hover,
form.wpcf7-form input[type='submit']:hover,
form.wpcf7-form .wpcf7-submit:hover {
	background-color: #15a56d !important;
	border-color: #15a56d !important;
	color: #ffffff !important;
}

/* Submit button full-width modifiers */
.wpcf7 input[type='submit'].is-full-width,
.wpcf7 .wpcf7-submit.is-full-width,
.wpcf7 .is-full-width input[type='submit'],
.wpcf7 .is-full-width .wpcf7-submit,
.wpcf7 .submit-full-width input[type='submit'],
.wpcf7 .submit-full-width .wpcf7-submit {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.wpcf7 .is-full-width .wpcf7-spinner,
.wpcf7 .submit-full-width .wpcf7-spinner {
	display: block !important;
	margin: 10px auto 0 !important;
}

/* Submit button center alignment modifiers */
.wpcf7 .is-centered,
.wpcf7 .submit-center,
.wpcf7 p.has-text-align-center,
.wpcf7 div.has-text-align-center {
	text-align: center !important;
}

.wpcf7 input[type='submit'].is-centered,
.wpcf7 .wpcf7-submit.is-centered,
.wpcf7 .is-centered input[type='submit'],
.wpcf7 .is-centered .wpcf7-submit,
.wpcf7 .submit-center input[type='submit'],
.wpcf7 .submit-center .wpcf7-submit {
	margin-left: auto !important;
	margin-right: auto !important;
	display: inline-block !important;
}

.wpcf7 .is-centered .wpcf7-spinner,
.wpcf7 .submit-center .wpcf7-spinner {
	display: inline-block !important;
	margin: 0 0 0 10px !important;
	vertical-align: middle !important;
}

/* Validation errors & tips - defeat cws_main.css:982-1000 */
.wpcf7 .wpcf7-not-valid,
form.wpcf7-form input.wpcf7-not-valid,
form.wpcf7-form textarea.wpcf7-not-valid,
span.wpcf7-form-control-wrap input.wpcf7-not-valid,
span.wpcf7-form-control-wrap textarea.wpcf7-not-valid {
	border: 2px solid #e95f58 !important;
	border-color: #e95f58 !important;
	box-shadow: 0 0 4px rgba(233, 95, 88, 0.25) !important;
}

.wpcf7 span.wpcf7-form-control-wrap input.wpcf7-not-valid + .wpcf7-not-valid-tip,
.wpcf7 span.wpcf7-form-control-wrap textarea.wpcf7-not-valid + .wpcf7-not-valid-tip,
span.wpcf7-form-control-wrap:first-of-type:last-of-type:first-child input.wpcf7-validates-as-required.wpcf7-not-valid + .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip {
	display: block !important;
	position: static !important;
	top: auto !important;
	right: auto !important;
	height: auto !important;
	font-size: 13px !important;
	color: #e95f58 !important;
	margin-top: 5px !important;
	line-height: 1.4 !important;
}

.wpcf7 span.wpcf7-form-control-wrap input.wpcf7-not-valid + .wpcf7-not-valid-tip:before,
.wpcf7 span.wpcf7-form-control-wrap input.wpcf7-not-valid + .wpcf7-not-valid-tip:after,
span.wpcf7-form-control-wrap:first-of-type:last-of-type:first-child input.wpcf7-validates-as-required.wpcf7-not-valid + .wpcf7-not-valid-tip:before,
span.wpcf7-form-control-wrap:first-of-type:last-of-type:first-child input.wpcf7-validates-as-required.wpcf7-not-valid + .wpcf7-not-valid-tip:after,
.wpcf7 .wpcf7-not-valid-tip:before,
.wpcf7 .wpcf7-not-valid-tip:after {
	display: none !important;
	content: none !important;
}

/* Required field indicator (*) */
.required,
span.required,
abbr.required,
.wpcf7 .required,
.wpcf7-form .required,
.wp-block-contact-form-7 .required,
form .required {
	color: var(--wp--preset--color--primary, #e95f58) !important;
}

/* Response output banner (sent, failed, invalid, spam) */
div.wpcf7-response-output {
	margin: 20px auto 0 auto;
	padding: 12px 18px;
	border-radius: 4px;
	border: 2px solid transparent;
	box-sizing: border-box;
	text-align: center;
	font-size: 14px;
}

.wpcf7-form.sent div.wpcf7-response-output {
	border-color: #46b450;
	background-color: rgba(70, 180, 80, 0.08);
	color: #27672e;
}

.wpcf7-form.failed div.wpcf7-response-output,
.wpcf7-form.aborted div.wpcf7-response-output {
	border-color: #dc3232;
	background-color: rgba(220, 50, 50, 0.08);
	color: #8c1e1e;
}

.wpcf7-form.invalid div.wpcf7-response-output,
.wpcf7-form.unaccepted div.wpcf7-response-output {
	border-color: #ffb900;
	background-color: rgba(255, 185, 0, 0.08);
	color: #8a6400;
}

/* Spinner / Ajax Loader */
.wpcf7 .ajax-loader {
	margin-left: 10px;
	vertical-align: middle;
}

/* ==========================================================================
   CARD #473 DECOUPLING (SCOPED): Ported rules for [_shared/forms] (13 rules)
   Scoped under: .wpcf7, form.wpcf7-form, .mdb-footer-widgets
   ========================================================================== */

/* [_shared/forms rule 1/13] Source: assets/css/reset.css:L56 */
.wpcf7 textarea,
.wp-block-contact-form textarea {
	resize: none;
}

/* [_shared/forms rule 2/13] Source: assets/css/reset.css:L65 */
.wpcf7 fieldset,
.wp-block-contact-form fieldset {
	border-style: none;
}

/* [_shared/forms rule 3/13] Source: assets/css/cws_main.css:L940 */
.wpcf7 textarea::-webkit-input-placeholder {
	color: #333333;
}

/* [_shared/forms rule 4/13] Source: assets/css/cws_main.css:L941 */
.wpcf7 textarea::-moz-placeholder {
	color: #333333;
}

/* [_shared/forms rule 5/13] Source: assets/css/cws_main.css:L942 */
.wpcf7 textarea:-moz-placeholder {
	color: #333333;
}

/* [_shared/forms rule 6/13] Source: assets/css/cws_main.css:L943 */
.wpcf7 textarea:-ms-input-placeholder {
	color: #333333;
}

/* [_shared/forms rule 7/13] Source: assets/css/cws_main.css:L945 */
.wpcf7-form p {
	text-indent: 0;
}

/* [_shared/forms rule 8/13] Source: assets/css/cws_main.css:L948 */
.wpcf7 span.wpcf7-form-control-wrap:first-of-type:last-of-type:first-child:not(:only-child) input {
	line-height: 1.142858em;
	height: 1.142858em;
	padding-top: 11px;
	padding-bottom: 11px;
}

/* [_shared/forms rule 9/13] Source: assets/css/cws_main.css:L961 */
.wpcf7 span.wpcf7-form-control-wrap input,
.wpcf7 span.wpcf7-form-control-wrap textarea {
	border-radius: 4px;
}

/* [_shared/forms rule 10/13] Source: assets/css/cws_main.css:L965 */
.wpcf7 span.wpcf7-form-control-wrap textarea {
	line-height: 1.6923;
}

/* [_shared/forms rule 11/13] Source: assets/css/cws_main.css:L1004 */
.wpcf7 div.wpcf7-response-output {
	margin-left: auto;
	margin-right: auto;
}

/* [_shared/forms rule 12/13] Source: assets/css/cws_main.css:L1034 */
form.wpcf7-form span input,
form.wpcf7-form span textarea {
	width: 100%;
}

/* [_shared/forms rule 13/13] Source: assets/css/cws_main.css:L4662 */
.mdb-footer-widgets input:not(.wpcf7-submit),
.mdb-footer-widgets textarea,
#footer_widgets input:not(.wpcf7-submit),
#footer_widgets textarea {
	background-color: #ffffff;
}
