
/* =============================================
   GENERAL WEBSITE SETTINGS
   ============================================= */

/* Hide reCAPTCHA v3 badge */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* White checkbox labels */

.sg-checkbox-white .wpcf7-list-item-label {
    color: #ffffff !important;
}

/* Make tables scrollable on mobile */

@media only screen and (max-width: 767px) {

    .wpb_text_column table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

}


/* =============================================
   SIMPLYGROW — HEADING SPACING
   ============================================= */

/* Main heading */

body .wpb_text_column h1 {
    margin-bottom: 40px !important;
}

/* Section headings */

body .wpb_text_column h2 {
    margin-top: 34px !important;
    margin-bottom: 10px !important;
}

/* First heading after H1 */

body .wpb_text_column h1 + h2 {
    margin-top: 0 !important;
}

/* Question-to-answer spacing */

body .wpb_text_column h2 + p {
    margin-top: 0 !important;
}

/* Spacing between FAQ entries */

body .wpb_text_column p + h2 {
    margin-top: 34px !important;
}

/* Smaller subheadings */

body .wpb_text_column h3 {
    margin-top: 26px !important;
    margin-bottom: 10px !important;
}


/* =============================================
   SIMPLYGROW PARTNER APPLICATION FORM
   Contact Form 7 + Salient
   ============================================= */

/* MAIN FORM CONTAINER */

body .wpcf7 .sg-partner-form {
    --sg-red: #b51e27;
    --sg-red-hover: #951820;
    --sg-text: #404040;
    --sg-muted: #777777;
    --sg-border: #dedede;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
    padding: 38px 42px;

    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(0,0,0,0.025);
}


/* RESET THEME SPACING */

body .wpcf7 .sg-partner-form p {
    margin: 0;
    padding: 0;
}

body .wpcf7 .sg-partner-form br {
    display: none;
}


/* SECTION SPACING */

body .sg-partner-form .sg-partner-section {
    margin: 0 0 28px;
    padding: 0;
}


/* SECTION HEADING */

body .sg-partner-form .sg-partner-heading {
    margin: 0 0 24px !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.3px;

    color: #333333 !important;
}


/* =============================================
   CONTACT DETAILS GRID
   ============================================= */

body .sg-partner-form .sg-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 22px;
    row-gap: 22px;

    margin: 0;
    padding: 0;
}

/* Full-width website field */

body .sg-partner-form .sg-full-width {
    grid-column: 1 / -1;
}

/* Individual field */

body .sg-partner-form .sg-partner-field {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Field labels */

body .sg-partner-form .sg-partner-field > label {
    display: block !important;

    margin: 0 0 8px !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;

    color: #404040 !important;
}

/* Required indicator */

body .sg-partner-form .sg-required {
    color: #b51e27 !important;
    font-weight: 600;
}

/* Optional indicator */

body .sg-partner-form .sg-optional {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
}


/* =============================================
   INPUT STYLING
   ============================================= */

/* Contact Form 7 input wrappers */

body .sg-partner-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;

    margin: 0;
    padding: 0;
}

/* Text, email and telephone inputs */

body .wpcf7 .sg-partner-form input[type="text"],
body .wpcf7 .sg-partner-form input[type="email"],
body .wpcf7 .sg-partner-form input[type="tel"] {
    display: block !important;

    box-sizing: border-box !important;

    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    background: #ffffff !important;
    background-image: none !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    box-shadow: none !important;
    outline: none !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    color: #333333 !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Placeholder text */

body .sg-partner-form input::placeholder {
    color: #aaaaaa !important;
    opacity: 1 !important;
}

/* Input focus */

body .wpcf7 .sg-partner-form input[type="text"]:focus,
body .wpcf7 .sg-partner-form input[type="email"]:focus,
body .wpcf7 .sg-partner-form input[type="tel"]:focus {
    background: #ffffff !important;
    border-color: #b51e27 !important;

    box-shadow:
        0 0 0 3px rgba(181,30,39,0.06) !important;

    outline: none !important;
}


/* =============================================
   PRIVACY AND CONSENT
   ============================================= */

/* Privacy section */

body .sg-partner-form .sg-partner-consent {
    margin: 0;
    padding: 24px 0 0;

    border-top: 1px solid #eaeaea;
}

/* Privacy paragraph */

body .sg-partner-form .sg-privacy-text {
    margin: 0 0 18px !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;

    color: #777777 !important;
}

/* Privacy links */

body .sg-partner-form .sg-privacy-text a {
    color: #b51e27 !important;

    text-decoration: underline;
    text-underline-offset: 2px;
}

body .sg-partner-form .sg-privacy-text a:hover {
    color: #951820 !important;
}

/* Acceptance wrapper */

body .sg-partner-form .sg-acceptance {
    display: block;

    margin: 0;
    padding: 0;
}

/* Acceptance label */

body .sg-partner-form .sg-acceptance label {
    display: inline-flex !important;
    align-items: center !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    color: #444444 !important;

    cursor: pointer;
}

/* Acceptance checkbox */

body .sg-partner-form .sg-acceptance input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    accent-color: #b51e27;

    cursor: pointer;
}


/* =============================================
   SUBMIT BUTTON
   DARK SIMPLYGROW RED
   ============================================= */

/* Button container */

body .sg-partner-form .sg-partner-submit {
    display: block;

    margin: 28px 0 0 !important;
    padding: 0 !important;
}

/* Main button */

body .wpcf7 .sg-partner-form input[type="submit"],
body .wpcf7 .sg-partner-form .wpcf7-submit {
    display: block !important;

    box-sizing: border-box !important;

    width: 100% !important;
    min-height: 56px !important;

    margin: 0 !important;
    padding: 16px 24px !important;

    background: #b51e27 !important;
    background-color: #b51e27 !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-transform: none !important;
    letter-spacing: 0 !important;

    text-align: center !important;
    color: #ffffff !important;

    cursor: pointer !important;

    transition:
        background-color 0.2s ease;
}

/* Button hover and focus */

body .wpcf7 .sg-partner-form input[type="submit"]:hover,
body .wpcf7 .sg-partner-form input[type="submit"]:focus,
body .wpcf7 .sg-partner-form .wpcf7-submit:hover,
body .wpcf7 .sg-partner-form .wpcf7-submit:focus {
    background: #951820 !important;
    background-color: #951820 !important;

    color: #ffffff !important;
    outline: none !important;
}

/* Submission note */

body .sg-partner-form .sg-partner-footnote {
    margin: 13px 0 0 !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1.6 !important;

    text-align: center;
    color: #888888 !important;
}


/* =============================================
   FORM VALIDATION AND STATUS MESSAGES
   ============================================= */

/* Field validation */

body .sg-partner-form .wpcf7-not-valid-tip {
    display: block;

    margin: 7px 0 0 !important;
    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1.5 !important;

    color: #b51e27 !important;
}

/* General response message */

body .wpcf7:has(.sg-partner-form)
.wpcf7-response-output {
    box-sizing: border-box;

    margin: 20px 0 0 !important;
    padding: 14px 18px !important;

    background: #f7f7f7 !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    font-size: 13px !important;
    line-height: 1.6 !important;

    color: #444444 !important;
}

/* Success */

body .wpcf7.sent:has(.sg-partner-form)
.wpcf7-response-output {
    background: #f3f8f4 !important;
    border-color: #d1e3d5 !important;
    color: #315c3b !important;
}

/* Failure or validation error */

body .wpcf7.failed:has(.sg-partner-form)
.wpcf7-response-output,
body .wpcf7.invalid:has(.sg-partner-form)
.wpcf7-response-output {
    background: #fff7f7 !important;
    border-color: #ebd5d5 !important;
    color: #9c252c !important;
}


/* =============================================
   MOBILE STYLING
   ============================================= */

@media (max-width: 767px) {

    /* Form container */

    body .wpcf7 .sg-partner-form {
        padding: 26px 20px;
        border-radius: 10px;
    }

    /* One-column contact details */

    body .sg-partner-form .sg-partner-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body .sg-partner-form .sg-full-width {
        grid-column: auto;
    }

    /* Heading */

    body .sg-partner-form .sg-partner-heading {
        font-size: 21px !important;
        margin-bottom: 22px !important;
    }

    /* Inputs */

    body .wpcf7 .sg-partner-form input[type="text"],
    body .wpcf7 .sg-partner-form input[type="email"],
    body .wpcf7 .sg-partner-form input[type="tel"] {
        font-size: 16px !important;
    }

    /* Submit */

    body .wpcf7 .sg-partner-form input[type="submit"] {
        min-height: 54px !important;
        padding: 15px 12px !important;
        font-size: 14px !important;
    }

}
