.kfb-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Reset CF7's own paragraph wrappers so our explicit spacing is the
   only source of vertical rhythm (avoids double/unpredictable margins
   that caused titles and fields to visually collapse into each other) */
.wpcf7-form p {
    margin: 0;
    padding: 0;
}

.wpcf7-form .kfb-group {
    border: none;
    margin: 0 0 28px;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 6px 2px rgb(0 0 0 / 8%);
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    display: block;
}
.wpcf7-form .kfb-group-title {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    color: #0cc0df;
    padding: 0 0 16px;
    margin: 0 0 24px;
    border-bottom: 2px solid #F5F5F5;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-form .kfb-fld {
    margin: 0 0 24px;
    width: 100%;
    box-sizing: border-box;
}
.wpcf7-form .kfb-fld:last-child {
    margin-bottom: 0;
}
.wpcf7-form .kfb-fld label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}
.wpcf7-form .kfb-fld input[type=text],
.wpcf7-form .kfb-fld input[type=email],
.wpcf7-form .kfb-fld textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: #303030;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 1.4;
}
.wpcf7-form .kfb-fld input:focus,
.wpcf7-form .kfb-fld textarea:focus {
    outline: none;
    border-color: #0cc0df;
}
.wpcf7-form .kfb-fld textarea {
    min-height: 110px;
    height: auto;
    resize: vertical;
}

.wpcf7-form .kfb-rating {
    margin: 0 0 28px;
    width: 100%;
    box-sizing: border-box;
}
.wpcf7-form .kfb-rating:last-child {
    margin-bottom: 0;
}
.wpcf7-form .kfb-rating .kfb-question {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #000000;
    margin: 0 0 14px;
}
.wpcf7-form .kfb-rating span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.wpcf7-form .kfb-rating span.wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.wpcf7-form .kfb-rating .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.wpcf7-form .kfb-rating .wpcf7-list-item-label {
    padding: 11px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #303030;
    line-height: 1.3;
    display: inline-block;
    min-height: 24px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.wpcf7-form .kfb-rating input[type=radio] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0cc0df;
    flex-shrink: 0;
}
.wpcf7-form .kfb-rating input[type=radio]:checked + .wpcf7-list-item-label {
    border-color: #0cc0df;
    background: #0cc0df;
    color: #ffffff;
}

.wpcf7-form .kfb-rating-nps span.wpcf7-form-control.wpcf7-radio {
    gap: 6px;
}
.wpcf7-form .kfb-rating-nps .wpcf7-list-item-label {
    padding: 10px 12px;
    min-width: 42px;
    text-align: center;
}

.wpcf7-form .kfb-smt {
    text-align: center;
    margin-top: 8px;
    width: 100%;
}
.wpcf7-form .kfb-smt input[type=submit] {
    display: inline-block;
    background: #0cc0df;
    color: #fff;
    border: 1px solid #0cc0df;
    border-radius: 8px;
    padding: 16px 40px;
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    min-height: 52px;
    transition: background .15s ease;
}
.wpcf7-form .kfb-smt input[type=submit]:hover {
    background: #0aa8c4;
}

.wpcf7-form .wpcf7-not-valid-tip {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    margin-top: 6px;
}
.wpcf7-form .wpcf7-response-output {
    font-family: 'Jost', sans-serif;
    border-radius: 8px;
    max-width: 680px;
    margin: 20px auto 0;
    box-sizing: border-box;
}

/* Guarantee vertical rhythm between the hero heading/subheading/intro
   text, regardless of the Elementor container's own gap defaults —
   this is what was collapsing on mobile. */
.kfb-hero-heading {
    margin-bottom: 12px !important;
}
.kfb-hero-subheading {
    margin-bottom: 16px !important;
}
.kfb-hero-intro {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .wpcf7-form .kfb-group {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    .wpcf7-form .kfb-group-title {
        font-size: 19px;
        margin-bottom: 22px;
    }
    .wpcf7-form .kfb-fld,
    .wpcf7-form .kfb-rating {
        margin-bottom: 20px;
    }
    .wpcf7-form .kfb-rating-nps .wpcf7-list-item-label {
        min-width: 36px;
        padding: 9px 8px;
        font-size: 13px;
    }
    .wpcf7-form .kfb-smt input[type=submit] {
        font-size: 16px;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .wpcf7-form .kfb-rating-nps span.wpcf7-form-control.wpcf7-radio {
        gap: 5px;
    }
    .wpcf7-form .kfb-rating-nps .wpcf7-list-item-label {
        min-width: 30px;
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Hero titles on the Feedback page — explicit margin-bottom so nothing
   sits flush against the next element, strengthened further on mobile. */
.kfb-hero-heading,
.kfb-hero-subheading {
    margin-bottom: 16px !important;
}

@media (max-width: 767px) {
    .kfb-hero-heading,
    .kfb-hero-subheading {
        margin-bottom: 20px !important;
    }
}
