html.rot-cf7-modal-open {
	overflow: hidden;
}

.rot-cf7-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.rot-cf7-modal.is-open {
	display: block;
}

.rot-cf7-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.rot-cf7-modal__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(900px, calc(100% - 32px));
	max-height: min(85vh, 900px);
	overflow: auto;
	background: #fff;
	border-radius: 0px;
	padding: 2rem;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
}

.rot-cf7-modal__close {
    position: absolute;
    top: 6px;
    right: 6px;
    margin-left: auto;
    display: block;
    border: 0;
    background: transparent;
    font-size: 52px;
    line-height: 0.8;
    cursor: pointer;
}

.rot-cf7-modal__header {
	margin-bottom: 14px;
}

.rot-cf7-modal__title {
	margin: 0;
	font-size: 20px;
}


.rot-form-wrap{
    max-width: 1310px;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 4px -1px 36px #0000001c;
}




/* Scope nur im Modal */
.rot-form-wrap .wpcf7,
.rot-cf7-modal .wpcf7 {
	--rot-bg: #ffffff;
	--rot-panel: #ffffff;
	--rot-text: #0f172a;           /* slate-900 */
	--rot-text: var(--text);
	--rot-muted: rgba(15,23,42,0.62);
	--rot-border: rgba(15,23,42,0.12);
	--rot-border-strong: rgba(15,23,42,0.20);

	--rot-field-bg: #ffffff;
	--rot-field-bg2: #f8fafc;      /* slate-50 */
	/* --rot-field-border: rgba(15,23,42,0.14); */
	--rot-field-border: var(--text);
	--rot-field-border2: rgba(15,23,42,0.22);

	--rot-danger: var(--orange-dark);         /* rose-600 */
	--rot-ok: #16a34a;             /* green-600 */
	--rot-focus: #a9f6fc7d; /* primary 50*/

	--rot-radius: 1px;
	--rot-shadow: 0 22px 55px rgba(2, 6, 23, 0.18);
	--rot-shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.10);
	--rot-shadow-soft: 0 4px 1px rgba(2, 6, 23, 0.10);

	--rot-font: var(--sans), 'sans-serif';
	font-family: var(--rot-font);
	color: var(--rot-text);
}

/* Modal Panel light */
.rot-cf7-modal__panel {
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	color: var(--rot-text);
	border: 1px solid var(--rot-border);
}


.rot-cf7-modal__close:hover {
	background: #ffffff;
	border-color: var(--rot-border-strong);
}

/* Form Layout */
.rot-cf7-modal .wpcf7 form {
	display: grid;
	gap: 14px;
}

/* Labels */
.rot-cf7-modal .quiz-info,
.rot-form-wrap .wpcf7 label,
.rot-cf7-modal .wpcf7 label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-075);
	margin-bottom: 6px;
}
.rot-cf7-modal .quiz-info{
	color:var(--text);
	background:var(--primary);
	width:fit-content;
}

/* Inputs allgemein */
.rot-form-wrap .wpcf7 input[type="text"],
.rot-form-wrap .wpcf7 input[type="email"],
.rot-form-wrap .wpcf7 input[type="tel"],
.rot-form-wrap .wpcf7 input[type="url"],
.rot-form-wrap .wpcf7 input[type="number"],
.rot-form-wrap .wpcf7 input[type="date"],
.rot-form-wrap .wpcf7 input[type="search"],
.rot-form-wrap .wpcf7 select,
.rot-form-wrap .wpcf7 textarea,
.rot-cf7-modal .wpcf7 input[type="text"],
.rot-cf7-modal .wpcf7 input[type="email"],
.rot-cf7-modal .wpcf7 input[type="tel"],
.rot-cf7-modal .wpcf7 input[type="url"],
.rot-cf7-modal .wpcf7 input[type="number"],
.rot-cf7-modal .wpcf7 input[type="date"],
.rot-cf7-modal .wpcf7 input[type="search"],
.rot-cf7-modal .wpcf7 select,
.rot-cf7-modal .wpcf7 textarea {
	width: 100%;
    box-sizing: border-box;
    /* background: linear-gradient(180deg, var(--rot-field-bg) 0%, var(--rot-field-bg2) 100%); */
    background: none;
    color: var(--rot-text);
    border: 0px solid var(--rot-field-border);
    border-top: none;
    border-right: none;
    border-bottom-width: 3px;
    border-radius: var(--rot-radius);
    padding: 12px 14px;
    outline: none;
    box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, var(--rot-shadow-soft);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.rot-form-wrap .wpcf7 textarea,
.rot-cf7-modal .wpcf7 textarea {
	min-height: 80px;
	resize: vertical;
	background: var(--grey-light-x);
}

/* Placeholder */
.rot-form-wrap .wpcf7 input::placeholder,
.rot-form-wrap .wpcf7 textarea::placeholder,
.rot-cf7-modal .wpcf7 input::placeholder,
.rot-cf7-modal .wpcf7 textarea::placeholder {
	color: rgba(15,23,42,0.35);
}

/* Focus Glow */
.rot-form-wrap .wpcf7 input:focus,
.rot-form-wrap .wpcf7 select:focus,
.rot-form-wrap .wpcf7 textarea:focus,
.rot-cf7-modal .wpcf7 input:focus,
.rot-cf7-modal .wpcf7 select:focus,
.rot-cf7-modal .wpcf7 textarea:focus {
	border-color: var(--rot-field-border2);
	box-shadow: 0 0 0 5px var(--rot-focus), 0 1px 0 rgba(255,255,255,0.9) inset, var(--rot-shadow);
	transform: translateY(-1px);
	background: #fff;
}

/* Select Arrow (light) */
.rot-form-wrap .wpcf7 select,
.rot-cf7-modal .wpcf7 select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(15,23,42,0.55) 50%),
		linear-gradient(135deg, rgba(15,23,42,0.55) 50%, transparent 50%),
		linear-gradient(180deg, var(--rot-field-bg) 0%, var(--rot-field-bg2) 100%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 13px) 50%,
		0 0;
	background-size:
		6px 6px,
		6px 6px,
		100% 100%;
	background-repeat: no-repeat;
	padding-right: 40px;
}

/* Checkbox/Radio tiny align */
.rot-form-wrap .wpcf7 input[type="checkbox"],
.rot-form-wrap .wpcf7 input[type="radio"],
.rot-cf7-modal .wpcf7 input[type="checkbox"],
.rot-cf7-modal .wpcf7 input[type="radio"] {
	transform: translateY(1px);
}

/* Submit buttons */
/* .wpcf7 .btn.rot-btn[type="submit"], */
.wpcf7 .btn.rot-btn[type="submit"]{
	background:var(--pink);
	border:none;
}
.wpcf7 .btn.rot-btn[type="submit"]:disabled{
	background:var(--grey-light);
	border:none;
	color:var(--text-075);
}

/* CF7 Validation */
.rot-form-wrap .wpcf7 .wpcf7-not-valid-tip,
.rot-cf7-modal .wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 6px;
    font-size: 1em;
    font-weight: normal;
    display: block;
    margin-left: 20px;
    position: absolute;
    bottom: -6px;
    color: white!important;
    padding: 1px 5px;
    border-radius: 2px;
	margin-left:20px;
	background:var(--rot-danger);

}
.wpcf7-form-control-wrap .wpcf7-not-valid-tip{
}

.rot-form-wrap .wpcf7 .wpcf7-response-output,
.rot-cf7-modal .wpcf7 .wpcf7-response-output {
	border-radius: var(--rot-radius);
	padding: 12px 14px;
	margin: 10px 0 0;
	border: 1px solid var(--rot-border);
	background: rgba(15,23,42,0.03);
	color: rgba(15,23,42,0.88);
}

.rot-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.rot-form-wrap .wpcf7 form.failed .wpcf7-response-output,
.rot-cf7-modal .wpcf7 form.invalid .wpcf7-response-output,
.rot-cf7-modal .wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--rot-danger);
	background: var(--rot-danger);
}

.rot-form-wrap .wpcf7 form.sent .wpcf7-response-output,
.rot-cf7-modal .wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(22, 163, 74, 0.28);
	background: rgba(22, 163, 74, 0.08);
}

/* CF7 default wrappers spacing */
.rot-form-wrap .wpcf7 p,
.rot-cf7-modal .wpcf7 p {
	margin: 0;
}

.rot-form-wrap .wpcf7 .wpcf7-form-control-wrap,
.rot-cf7-modal .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top:.4rem;
}

.wpcf7-form-control-wrap{
	position:relative;
}
.wpcf7-form-control-wrap:after {
	content: '';
    width: 18px;
    height: 18px;
    background: var(--text);
    bottom: -5px;
    left: -5px;
    position: absolute;
    border-radius: 2px;
}
.checkbox-input-col .wpcf7-form-control-wrap:after,
.cb-input-col .wpcf7-form-control-wrap:after,
.radio-input-col .wpcf7-form-control-wrap:after {
	background:transparent;
}

.wpcf7-checkbox input:not(:checked)+.wpcf7-list-item-label{
	color:var(--grey-light);
}




.wpcf7-grid{
	row-gap:1rem;
}
.wpcf7-grid .label-txt {
	display: block;
	margin-bottom: 6px;
}

/* 3) Optional: status-spezifisch (grün/gelb/orange/rot) */
.wpcf7 form.sent .wpcf7-response-output { /* success */ }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { /* gelb */ }
.wpcf7 form.spam .wpcf7-response-output { /* orange */ }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { /* rot */ }


@media(min-width:992px){
	.rot-cf7-conditional-section>.row>[class*='col-']:not(.label-col){
		flex:0 0 50%;
		max-width:50%;
	}
}

.label-col .label-txt{
	margin-bottom: 1.3rem;
	font-weight: 700;
}