/* Shared Contact Form 7 feedback, layout and typography. */
.wpcf7 form.sps-cf7-ready .sps-form-submit {
    display: inline-flex !important; align-items: center; justify-content: center;
    cursor: pointer; max-width: 100%; box-sizing: border-box;
}
.wpcf7 form.sps-cf7-ready[aria-busy="true"] .sps-form-submit {
    cursor: wait; opacity: .75;
}
.wpcf7 form.sps-cf7-ready .wpcf7-not-valid-tip {
    position: static; display: block; margin-top: 6px;
    font-size: 14px !important; line-height: 1.4; text-align: left;
}
.wpcf7 form.sps-cf7-ready .wpcf7-not-valid {
    border-color: #b42318 !important;
}
.wpcf7 form.sps-cf7-ready .wpcf7-response-output {
    clear: both; width: 100%; box-sizing: border-box; margin: 16px 0 0;
    padding: 12px 16px; font-size: 16px; line-height: 1.5;
}
.wpcf7 form.sps-cf7-ready:is(.sent,.invalid,.failed,.spam,.unaccepted,.aborted) .wpcf7-response-output {
    display: block !important;
}
.wpcf7 form.sps-cf7-ready .sps-form-progress {
    margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #132e43;
}
.wpcf7 form.sps-cf7-ready .sps-form-progress[hidden] { display: none !important; }
.sps-quiz-result { padding: 12px 16px; margin: 16px 0; border: 1px solid #238636;
    background: #f0fff4; color: #14532d; font-size: 16px; line-height: 1.5; }
.sps-quiz-result[hidden] { display: none !important; }

/* Form controls and labels. */
.wpcf7 form.sps-cf7-ready .sps-field-label { display:block; margin:0 0 4px; font-size:14px; line-height:20px; font-weight:500; color:#132e43; text-transform:none; }
.wpcf7 form.sps-cf7-ready .wpcf7-form-control-wrap { display:block; margin:0 !important; line-height:normal; }
.wpcf7 form.sps-cf7-ready .form__group:has(.sps-field-label) { margin:0 0 10px; min-width:0; }
.wpcf7 form.sps-cf7-ready .form__group input { width:100%; box-sizing:border-box; min-height:44px; padding:10px 12px; font-size:16px; }
.wpcf7 form.sps-cf7-ready textarea { width:100%; box-sizing:border-box; height:86px; min-height:86px; padding:10px 12px; font-size:16px; resize:vertical; }
.wpcf7 form.sps-cf7-ready .form__group input[type="file"] { padding:8px; font-size:14px; max-width:100%; }
.wpcf7 form.sps-cf7-ready .sps-field-help { display:block; margin:4px 0 0; font-size:13px; line-height:18px; color:#425466; }
.wpcf7 form.sps-cf7-ready .sps-form-submit { min-height:44px; max-width:100%; padding:10px 18px; font-size:16px; line-height:22px; white-space:normal; }
[data-sps-quiz] .kviz__quations { scroll-margin-top:110px; }
[data-sps-quiz] .kviz__btns button[hidden] { display:none !important; }
/* Both columns stay in normal flow; the section grows with errors/success text. */
.section__form:has(.sps-cf7-ready) { display:block !important; height:auto !important; min-height:0 !important; padding:28px 0; }
.section__form:has(.sps-cf7-ready)::after { top:0; bottom:0; height:100%; pointer-events:none; }
.section__form:has(.sps-cf7-ready) .forms__container { display:grid !important; grid-template-columns:minmax(0,.85fr) minmax(0,1fr); align-items:center; gap:40px; }
.section__form:has(.sps-cf7-ready) .form__image { position:relative !important; inset:auto !important; width:100%; min-width:0; text-align:center; align-self:end; }
.section__form:has(.sps-cf7-ready) .form__image img { display:block; width:auto; height:auto; max-width:100%; max-height:460px; margin:0 auto -28px; object-fit:contain; }
.section__form .forms__container > .wpcf7 { position:relative; z-index:2; min-width:0; width:100%; }
.section__form form.form__block.sps-cf7-ready { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 14px; margin:0 !important; padding:0 !important; width:100% !important; }
.section__form form.sps-cf7-ready > * { grid-column:1 / -1; min-width:0; }
.section__form form.sps-cf7-ready > .form__group.sps-field-short { grid-column:auto; margin:0; }
.section__form form.sps-cf7-ready:not(:has(input[type="file"])) > .sps-field-phone { grid-column:1 / -1; }
.section__form form.sps-cf7-ready > .form__group { margin:0 !important; }
.section__form form.sps-cf7-ready > p { margin:0; font-size:22px; line-height:1.25; }
.section__form form.sps-cf7-ready > h2 { margin:0; font-size:16px; font-weight:400; line-height:1.4; text-transform:none; }
.section__form form.sps-cf7-ready > span { margin:0; font-size:13px; line-height:18px; }
.section__form form.sps-cf7-ready > span a { font-size:inherit; }
.section__form form.sps-cf7-ready .wpcf7-response-output { margin:0; }
@media(max-width:800px) {
 .section__form:has(.sps-cf7-ready) { padding:22px 0; }
 .section__form:has(.sps-cf7-ready)::after, .section__form:has(.sps-cf7-ready) .form__image { display:none !important; }
 .section__form:has(.sps-cf7-ready) .forms__container { grid-template-columns:minmax(0,1fr); gap:0; }
 .section__form form.form__block.sps-cf7-ready { grid-template-columns:minmax(0,1fr); gap:10px; }
 .section__form form.sps-cf7-ready > .form__group.sps-field-short { grid-column:1 / -1; }
 .wpcf7 form.sps-cf7-ready .sps-form-submit { width:100%; }
}

