/**
 * Visoop — Contact Form 7 widget styles.
 *
 * Element-level scaffolding only: a lightweight row/col grid (so CF7 forms
 * built with col-* markup lay out in columns) plus the submit-button base that
 * lets the shared Visoop button hover animations (assets/css/button.css) run
 * on the converted <button>. Everything colour/spacing related is driven by
 * the widget's Elementor style controls.
 *
 * @package VisoopCore
 */

/* ── Wrapper ───────────────────────────────────────────────────────────── */
.visoop-cf7 { width: 100%; }
.visoop-cf7 .wpcf7-form { width: 100%; }
.visoop-cf7 form label { display: block; width: 100%; }

/* Fields fill their container by default (CF7 / themes often leave inputs at
   their intrinsic/attribute width). The submit button is excluded so it keeps
   its own sizing. */
.visoop-cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.visoop-cf7 .wpcf7-form-control-wrap input,
.visoop-cf7 .wpcf7-form-control-wrap textarea,
.visoop-cf7 .wpcf7-form-control-wrap select,
.visoop-cf7 .wpcf7-form .wpcf7-select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.visoop-cf7__notice {
	padding: 24px;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	color: #6b7280;
	text-align: center;
	font-style: italic;
}

/* ── Submit button base (converted from <input> by cf7.js) ─────────────── */
.visoop-cf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	line-height: 1;
	border: 1px solid currentColor;
	background-color: transparent;
	position: relative;
	overflow: hidden;
	z-index: 0;
	transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.visoop-cf7 .wpcf7-submit i,
.visoop-cf7 .wpcf7-submit svg { transition: all .3s ease; position: relative; z-index: 1; }
.visoop-cf7 .wpcf7-submit .visoop-cf7-btn__text { position: relative; z-index: 1; }

/* Icon position (widget adds .visoop-cf7-icon-before / -after on the wrapper) */
.visoop-cf7-icon-after .visoop-cf7 .wpcf7-submit i,
.visoop-cf7-icon-after .visoop-cf7 .wpcf7-submit svg { order: 15; }

/* CF7's spinner shouldn't push layout around */
.visoop-cf7 .wpcf7-spinner { margin: 0 0 0 8px; }

/* ── Lightweight grid (for CF7 forms marked up with row / col-* ) ──────── */
.visoop-cf7 .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}
.visoop-cf7 [class*="col-"] {
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}
.visoop-cf7 .col-12 { flex: 0 0 100%; max-width: 100%; }
.visoop-cf7 .col-6  { flex: 0 0 50%;  max-width: 50%; }
.visoop-cf7 .col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.visoop-cf7 .col-3  { flex: 0 0 25%;  max-width: 25%; }

@media only screen and (max-width: 991px) {
	.visoop-cf7 .col-md-12 { flex: 0 0 100%; max-width: 100%; }
	.visoop-cf7 .col-md-6  { flex: 0 0 50%;  max-width: 50%; }
}
@media only screen and (max-width: 767px) {
	.visoop-cf7 .row { margin-left: 0; margin-right: 0; }
	.visoop-cf7 [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
}
