/*
Theme Name: CFPMS v1.0.8
Author: Fresh Digital
Description: CFPMS classic WordPress theme with editable pages and contact shortcodes.
Version: 1.0.8
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: cfpms
*/

.cfpms-site-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain
}

.logo .cfpms-site-logo {
    width: 206px;
    max-height: 80px
}

.drawer-top .cfpms-site-logo {
    max-width: 180px
}

.f-logo .cfpms-site-logo {
    max-width: 206px
}

.admin-bar .hdr {
    top: 32px
}

.admin-bar .drawer {
    top: 32px
}

@media(max-width:782px) {
    .admin-bar .hdr {
        top: 46px
    }

    .admin-bar .drawer {
        top: 46px
    }
}

/* Quote Gravity Form - Add date: 16-11-2026 */
p.gform_required_legend {
    display: none !important;
}

.gform-theme--foundation .gform_fields {
    row-gap: var(--gf-form-gap-x) !important;
}

#gform_wrapper_1 .gfield-choice-image-no-image {
    background: linear-gradient(135deg, var(--g800), var(--g600));
    overflow: hidden;
}

#gform_wrapper_1 .gfield-choice-image-no-image::before {
    display: none;
}

.cfpms-service-choices .gfield_checkbox {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 !important
}

.cfpms-service-choices .gchoice {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important
}

.cfpms-service-choices .gfield-image-choice-wrapper-outer {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.cfpms-service-choices .gchoice {
    position: relative;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important
}

.cfpms-service-choices .gfield-image-choice-wrapper-outer {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4ece7;
    border-radius: 11px;
    box-shadow: 0 2px 7px rgba(8, 43, 26, .06);
    transition: border-color .18s, box-shadow .18s, transform .18s
}

.cfpms-service-choices .gchoice:hover .gfield-image-choice-wrapper-outer {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(8, 43, 26, .12)
}

.cfpms-service-choices .gfield-choice-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background: linear-gradient(135deg, #08613a, #168849)
}

.cfpms-service-choices .gfield-choice-image-wrapper img.gfield-choice-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important
}


/* No. Quote Form - Add date: 17-11-2026 */
.fstep .n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--g800);
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 .95rem var(--ff-h);
    flex: none;
}

.fstep {
    font-family: var(--ff-h);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.015em;
}

/* Text before button sent enquiry - Add date: 17-11-2026 */
.gform-footer.gform_footer.top_label {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.gform-footer.gform_footer.top_label::before {
    content: "Your details stay with CFPMS. We never share them.";
    display: block;
    padding-left: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%2326953f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 5 8 11v11c0 10 7 18 16 21 9-3 16-11 16-21V11z'/%3E%3Cpath d='M17 24l5 5 9-10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 18px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 12px;
}

/* Property Type + Urgency - Add date: 17-11-2026 */
.cfpms-property-type .gfield_radio,
.cfpms-urgency .gfield_radio {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important
}

.cfpms-property-type .gfield_radio .gchoice,
.cfpms-urgency .gfield_radio .gchoice {
    position: relative;
    margin: 0 !important;
    padding: 0 !important
}

.cfpms-property-type .gfield_radio .gfield-choice-input,
.cfpms-urgency .gfield_radio .gfield-choice-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important
}

.cfpms-property-type .gfield_radio label.gform-field-label,
.cfpms-urgency .gfield_radio label.gform-field-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 1px solid #e3ece7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #25352c !important;
    font: 500 .88rem/1.2 var(--ff, Inter, Arial, sans-serif) !important;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s
}

.cfpms-property-type .gfield_radio label.gform-field-label:before,
.cfpms-urgency .gfield_radio label.gform-field-label:before {
    content: "";
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain
}

.cfpms-property-type .gchoice:nth-child(1) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/property-residential.svg)
}

.cfpms-property-type .gchoice:nth-child(2) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/property-commercial.svg)
}

.cfpms-property-type .gchoice:nth-child(3) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/property-real-estate.svg)
}

.cfpms-property-type .gchoice:nth-child(4) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/property-government.svg)
}

.cfpms-urgency .gchoice:nth-child(1) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/urgency-asap.svg)
}

.cfpms-urgency .gchoice:nth-child(2) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/urgency-weeks.svg)
}

.cfpms-urgency .gchoice:nth-child(3) label:before {
    background-image: url(/wp-content/themes/cfpms/assets/gravity-icons/urgency-emergency.svg)
}

.cfpms-property-type .gfield-choice-input:checked+label,
.cfpms-urgency .gfield-choice-input:checked+label {
    border-color: #168849 !important;
    background: #eff8f1 !important;
    color: #087341 !important
}

.cfpms-property-type .gfield-choice-input:focus-visible+label,
.cfpms-urgency .gfield-choice-input:focus-visible+label {
    outline: 2px solid #f38f24;
    outline-offset: 2px
}

/* --- End Quote Form --- */