.rwqf-wrapper,
.rwqf-wrapper * {
	box-sizing: border-box;
}

.rwqf-wrapper {
	--rwqf-green: #25D366;
	--rwqf-green-dark: #13B957;
	--rwqf-dark: #0B1020;
	--rwqf-text: #0F172A;
	--rwqf-muted: #94A3B8;
	--rwqf-border: #DDE7F1;
	--rwqf-border-focus: #00D9FF;
	--rwqf-white: #FFFFFF;
	--rwqf-error: #EF4444;
	--rwqf-success-bg: #ECFDF5;
	--rwqf-success-text: #047857;
	position: relative;
	width: 100%;
	font-family: inherit;
	color: var(--rwqf-text);
}

.rwqf-form {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 30px 32px 24px;
	border: 1px solid rgba(203, 213, 225, 0.82);
	border-radius: 14px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 217, 255, 0.11), transparent 32%),
		linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.rwqf-form::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.022) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 74%);
}

.rwqf-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 16px;
}

.rwqf-field {
	min-width: 0;
}

.rwqf-field-full {
	grid-column: 1 / -1;
}

.rwqf-label {
	display: block;
	margin: 0 0 7px;
	color: #020617;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.rwqf-label span {
	font-weight: 900;
}

.rwqf-input,
.rwqf-select,
.rwqf-textarea {
	display: block;
	width: 100%;
	border: 1px solid var(--rwqf-border);
	border-radius: 12px;
	outline: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--rwqf-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.rwqf-input,
.rwqf-select {
	height: 43px;
	padding: 10px 16px;
}

.rwqf-textarea {
	min-height: 82px;
	padding: 12px 16px;
	resize: vertical;
}

.rwqf-input::placeholder,
.rwqf-textarea::placeholder {
	color: var(--rwqf-muted);
	opacity: 1;
}

.rwqf-select {
	appearance: auto;
	cursor: pointer;
}

.rwqf-input:focus,
.rwqf-select:focus,
.rwqf-textarea:focus {
	border: 2px solid #00D9FF;
	background: var(--rwqf-white);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.10), 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rwqf-input.rwqf-has-error,
.rwqf-select.rwqf-has-error,
.rwqf-textarea.rwqf-has-error {
	border-color: var(--rwqf-error);
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.rwqf-submit {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin-top: 22px;
	padding: 14px 22px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--rwqf-green), var(--rwqf-green-dark));
	color: var(--rwqf-white);
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 15px 26px rgba(37, 211, 102, 0.22);
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.rwqf-submit:hover,
.rwqf-submit:focus {
	transform: translateY(-1px);
	filter: saturate(1.06);
	box-shadow: 0 18px 34px rgba(37, 211, 102, 0.30);
}

.rwqf-submit-icon {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	color: var(--rwqf-white);
	line-height: 1;
}

.rwqf-whatsapp-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.rwqf-feedback {
	position: relative;
	z-index: 1;
	display: none;
	margin-top: 12px;
	padding: 10px 13px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.rwqf-feedback.rwqf-feedback-success {
	display: block;
	background: var(--rwqf-success-bg);
	color: var(--rwqf-success-text);
	border: 1px solid rgba(16, 185, 129, 0.20);
}

.rwqf-feedback.rwqf-feedback-error {
	display: block;
	background: #FEF2F2;
	color: #B91C1C;
	border: 1px solid rgba(239, 68, 68, 0.20);
}

.rwqf-floating-whatsapp {
	position: absolute;
	right: -3px;
	bottom: -16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--rwqf-green), var(--rwqf-green-dark));
	color: var(--rwqf-white) !important;
	text-decoration: none !important;
	box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.rwqf-floating-whatsapp::before {
	content: "";
	position: absolute;
	inset: -26px;
	border-radius: 999px;
	background: rgba(37, 211, 102, 0.10);
	z-index: -1;
}

.rwqf-floating-whatsapp:hover,
.rwqf-floating-whatsapp:focus {
	color: var(--rwqf-white) !important;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 20px 42px rgba(37, 211, 102, 0.42);
}

.rwqf-floating-whatsapp .rwqf-whatsapp-svg {
	width: 29px;
	height: 29px;
}

@media (max-width: 767px) {
	.rwqf-form {
		padding: 22px 18px 20px;
		border-radius: 14px;
	}

	.rwqf-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.rwqf-field-full {
		grid-column: auto;
	}

	.rwqf-input,
	.rwqf-select {
		height: 46px;
	}

	.rwqf-submit {
		min-height: 52px;
		margin-top: 18px;
		padding-left: 14px;
		padding-right: 14px;
		font-size: 14px;
	}

	.rwqf-floating-whatsapp {
		right: -6px;
		bottom: -18px;
		width: 52px;
		height: 52px;
	}
}
