/* ==========================================================
   PEPTIQO CONTACT FORM
   File: /salient-child/css/cst_forms_contact.css
   Assets: /salient-child/css//wp-content/themes/salient-child/assets/peptiqo-contact-icons/
   ========================================================== */


/* ==========================================================
   01. FORM VARIABLES / BASE
   ========================================================== */

.peptiqo-contact-form {
    --pq-blue: #0877c9;
    --pq-blue-dark: #075a9c;
    --pq-navy: #103f73;
    --pq-light-blue: #edf7ff;
    --pq-pale-blue: #f7fbff;
    --pq-border: #d9e5ef;
    --pq-border-hover: #9fcbea;
    --pq-text: #172331;
    --pq-muted: #687786;
    --pq-white: #ffffff;
    --pq-error: #c62828;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    font-family: "Inter Regular", Inter, Arial, sans-serif;
    color: var(--pq-text);
}

.peptiqo-contact-form *,
.peptiqo-contact-form *::before,
.peptiqo-contact-form *::after {
    box-sizing: border-box;
}


/* ==========================================================
   02. FORM SECTIONS
   ========================================================== */

.peptiqo-contact-form .pq-form-section {
    position: relative;

    margin: 0 0 24px;
    padding: 38px 40px 40px;

    background: var(--pq-white);
    border: 1px solid var(--pq-border);
    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(16, 63, 115, 0.055);
}


/* subtle blue accent */

.peptiqo-contact-form .pq-form-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 40px;

    width: 52px;
    height: 3px;

    background: var(--pq-blue);
    border-radius: 0 0 3px 3px;
}


/* ==========================================================
   03. SECTION HEADINGS
   ========================================================== */

.peptiqo-contact-form .pq-section-heading {
    margin: 0 0 30px;
}

.peptiqo-contact-form .pq-section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 10px;

    color: var(--pq-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.peptiqo-contact-form .pq-section-eyebrow > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 30px;

    padding: 0 7px;

    color: var(--pq-white);
    background: var(--pq-blue);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.peptiqo-contact-form .pq-heading-line {
    display: block;

    width: 28px;
    height: 1px;

    background: #a9cce6;
}

.peptiqo-contact-form .pq-section-heading h3 {
    margin: 0 0 7px !important;
    padding: 0 !important;

    color: var(--pq-navy);

    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.peptiqo-contact-form .pq-section-heading p {
    max-width: 760px;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--pq-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   04. GRID
   ========================================================== */

.peptiqo-contact-form .pq-grid {
    display: grid;
    width: 100%;
    gap: 22px;
}

.peptiqo-contact-form .pq-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.peptiqo-contact-form .pq-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================
   05. FIELD LABELS
   ========================================================== */

.peptiqo-contact-form .pq-field {
    min-width: 0;
}

.peptiqo-contact-form .pq-field > label,
.peptiqo-contact-form .pq-panel-label {
    display: block;

    margin: 0 0 8px;

    color: #172331;

    font-family: "Inter Regular", Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    /* font-weight: normal !important; */
}

.peptiqo-contact-form .required {
    color: var(--pq-blue);
}

.peptiqo-contact-form .pq-optional {
    color: #8b98a4;
    font-size: 11px;
    font-weight: 400;
}


/* ==========================================================
   06. INPUTS / SELECTS / TEXTAREA
   High specificity to override Salient minimal form styles
   ========================================================== */

body[data-form-style="minimal"]
.peptiqo-contact-form
input[type="text"],

body[data-form-style="minimal"]
.peptiqo-contact-form
input[type="email"],

body[data-form-style="minimal"]
.peptiqo-contact-form
input[type="tel"],

body[data-form-style="minimal"]
.peptiqo-contact-form
input[type="url"],

body[data-form-style="minimal"]
.peptiqo-contact-form
input[type="number"],

body[data-form-style="minimal"]
.peptiqo-contact-form
select,

body[data-form-style="minimal"]
.peptiqo-contact-form
textarea,

.peptiqo-contact-form input[type="text"],
.peptiqo-contact-form input[type="email"],
.peptiqo-contact-form input[type="tel"],
.peptiqo-contact-form input[type="url"],
.peptiqo-contact-form input[type="number"],
.peptiqo-contact-form select,
.peptiqo-contact-form textarea {

    display: block;

    width: 100% !important;

    margin: 0 !important;
    padding: 13px 15px !important;

    color: var(--pq-text) !important;
    background-color: #fff !important;

    border: 1px solid #d5e0e9 !important;
    border-radius: 7px !important;

    outline: none !important;

    box-shadow: none !important;

    font-family: "Inter Regular", Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* inputs/select height */

.peptiqo-contact-form input[type="text"],
.peptiqo-contact-form input[type="email"],
.peptiqo-contact-form input[type="tel"],
.peptiqo-contact-form input[type="url"],
.peptiqo-contact-form input[type="number"],
.peptiqo-contact-form select {
    min-height: 48px;
}


/* textarea */

.peptiqo-contact-form textarea {
    min-height: 140px;

    resize: vertical;
}


/* placeholders */

.peptiqo-contact-form input::placeholder,
.peptiqo-contact-form textarea::placeholder {
    color: #9aa7b3 !important;
    opacity: 1;
}


/* focus */

body[data-form-style="minimal"]
.peptiqo-contact-form
input:focus,

body[data-form-style="minimal"]
.peptiqo-contact-form
select:focus,

body[data-form-style="minimal"]
.peptiqo-contact-form
textarea:focus,

.peptiqo-contact-form input:focus,
.peptiqo-contact-form select:focus,
.peptiqo-contact-form textarea:focus {

    border-color: var(--pq-blue) !important;

    box-shadow:
        0 0 0 3px rgba(8, 119, 201, 0.10) !important;
}


/* ==========================================================
   07. CF7 WRAPPERS
   ========================================================== */

.peptiqo-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}


/* ==========================================================
   08. ENQUIRY TYPE CARDS
   ========================================================== */

.peptiqo-contact-form .pq-enquiry-types {
    width: 100%;
}

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-form-control {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}


/* CF7 individual radio wrapper */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item {
    display: block;

    margin: 0 !important;
}


/* clickable card */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item label {

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 165px;

    margin: 0;
    padding: 20px 18px 18px;

    cursor: pointer;

    background: #fff;

    border: 1px solid var(--pq-border);
    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item label:hover {

    border-color: var(--pq-border-hover);

    background: var(--pq-pale-blue);

    box-shadow: 0 8px 20px rgba(16, 63, 115, 0.07);

    transform: translateY(-1px);
}


/* hide native radio */

.peptiqo-contact-form
.pq-enquiry-types
input[type="radio"] {

    position: absolute;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;

    opacity: 0;

    pointer-events: none;
}


/* ==========================================================
   09. ENQUIRY CARD GRAPHICS
   These load your SVGs WITHOUT additional HTML
   ========================================================== */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item label::before {

    content: "";

    display: block;

    width: 52px;
    height: 52px;

    margin: 0 0 16px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* Card 1 */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item:nth-child(1)
label::before {

    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/peptide-enquiry.svg");
}


/* Card 2 */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item:nth-child(2)
label::before {

    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/product-support.svg");
}


/* Card 3 */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item:nth-child(3)
label::before {

    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/business-wholesale.svg");
}


/* Card 4 */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item:nth-child(4)
label::before {

    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/customer-support.svg");
}


/* radio text */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item-label {

    display: block;

    color: var(--pq-navy);

    font-size: 15px;
    /* font-weight: 600; */
    line-height: 1.45;
    font-weight: normal !important;
    padding-bottom: 15px !important;
}


/* selected card */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item label:has(input[type="radio"]:checked) {

    background: var(--pq-light-blue);

    border-color: var(--pq-blue);

    box-shadow:
        0 0 0 1px var(--pq-blue),
        0 8px 22px rgba(8, 119, 201, 0.09);
}


/* selected indicator */

.peptiqo-contact-form
.pq-enquiry-types
.wpcf7-list-item
label:has(input[type="radio"]:checked)::after {

    content: "✓";

    position: absolute;

    top: 13px;
    right: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color: #fff;
    background: var(--pq-blue);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
}


/* ==========================================================
   10. PRODUCT SELECTORS
   ========================================================== */

.peptiqo-contact-form .pq-product-selectors {
    margin-bottom: 24px;
}


/* ==========================================================
   11. INTEREST PANEL
   ========================================================== */

.peptiqo-contact-form .pq-interest-panel {

    display: grid;

    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);

    gap: 30px;

    margin-top: 5px;
    padding: 24px;

    background: var(--pq-pale-blue);

    border: 1px solid #dceaf4;
    border-radius: 10px;
}


/* checkbox grid */

.peptiqo-contact-form
.pq-interest-main
.wpcf7-form-control {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px 18px;
}

.peptiqo-contact-form
.pq-interest-main
.wpcf7-list-item {

    margin: 0 !important;
}

.peptiqo-contact-form
.pq-interest-main
.wpcf7-list-item label {

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    cursor: pointer;

    color: #3b4a57;

    font-size: 13px;
    font-weight: 400;
}


/* checkbox */

.peptiqo-contact-form input[type="checkbox"] {

    width: 17px !important;
    height: 17px !important;

    min-width: 17px;

    margin: 0 !important;

    accent-color: var(--pq-blue);

    cursor: pointer;
}


/* right side */

.peptiqo-contact-form .pq-interest-side {

    display: grid;

    gap: 16px;
}


/* ==========================================================
   12. MESSAGE
   ========================================================== */

.peptiqo-contact-form .pq-message-field textarea {

    min-height: 170px;
}


/* ==========================================================
   13. CONSENT
   ========================================================== */

.peptiqo-contact-form .pq-contact-consent {

    margin-top: 16px;
    padding: 15px 17px;

    background: #f7fafc;

    border: 1px solid #e1e8ee;
    border-radius: 7px;
}

.peptiqo-contact-form
.pq-contact-consent
.wpcf7-list-item {

    margin: 0 !important;
}

.peptiqo-contact-form
.pq-contact-consent
.wpcf7-list-item label {

    display: flex;
    align-items: center;

    gap: 9px;

    margin: 0;

    cursor: pointer;

    color: #4b5965;

    font-size: 12px;
    font-weight: 400;
}


/* ==========================================================
   14. LEGACY / HIDDEN FIELDS
   ========================================================== */

.peptiqo-contact-form .pq-legacy-fields,
.peptiqo-contact-form .pq-hidden-subject {

    display: none !important;
}


/* ==========================================================
   15. SUBMIT AREA
   ========================================================== */

.peptiqo-contact-form .pq-submit-area {

    display: flex;
    /* align-items: center;
    justify-content: space-between; */

    gap: 25px;
    margin-top: 10px;
    padding-left: 15px !important;

    /* background: var(--pq-navy); */

    /* border-radius: 12px; */ 
}


/* CF7 submit */

.peptiqo-contact-form
input.wpcf7-submit {

    display: inline-flex !important;

    width: auto !important;
    min-width: 190px;

    margin: 0 !important;
    padding: 14px 25px !important;

    color: #fff !important;
    background: var(--pq-blue) !important;

    border: 1px solid var(--pq-blue) !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    cursor: pointer;

    font-family: "Inter Regular", Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-transform: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.peptiqo-contact-form
input.wpcf7-submit:hover {

    color: #fff !important;
    background: #0967ad !important;

    border-color: #0967ad !important;

    transform: translateY(-1px);
}


/* subtext */

.peptiqo-contact-form .cf7-submit-subtext {

    max-width: 430px;

    margin-top: 9px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 11px;
    line-height: 1.55;
}

.peptiqo-contact-form .cf7-submit-subtext p {

    margin: 0 !important;
}


/* ==========================================================
   16. CF7 SPINNER
   ========================================================== */

.peptiqo-contact-form .wpcf7-spinner {

    width: 18px !important;
    height: 18px !important;

    margin: 0 0 0 10px !important;

    vertical-align: middle;
}


/* ==========================================================
   17. VALIDATION
   ========================================================== */

.peptiqo-contact-form .wpcf7-not-valid {

    border-color: #d94b4b !important;
}

.peptiqo-contact-form .wpcf7-not-valid-tip {

    display: block;

    margin-top: 5px;

    color: var(--pq-error) !important;

    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4;
}


/* CF7 response */

.peptiqo-contact-form + .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {

    margin: 20px 0 0 !important;
    padding: 13px 16px !important;

    border-radius: 6px;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   18. OPTIONAL SECTION HEADING ICONS
   Used when markup contains:
   <span class="pq-icon pq-icon-details"></span>
   ========================================================== */

.peptiqo-contact-form .pq-section-heading-icon {

    display: flex;
    align-items: flex-start;

    gap: 18px;
}

.peptiqo-contact-form .pq-section-heading-content {

    flex: 1;
    min-width: 0;
}

.peptiqo-contact-form .pq-icon {

    display: block !important;

    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    flex: 0 0 58px;

    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}


/* ==========================================================
   19. SVG ASSETS
   ========================================================== */

.peptiqo-contact-form .pq-icon-peptide {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/peptide-enquiry.svg") !important;
}

.peptiqo-contact-form .pq-icon-order {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/product-support.svg") !important;
}

.peptiqo-contact-form .pq-icon-business {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/business-wholesale.svg") !important;
}

.peptiqo-contact-form .pq-icon-general {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/customer-support.svg") !important;
}

.peptiqo-contact-form .pq-icon-details {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/customer-details.svg") !important;
}

.peptiqo-contact-form .pq-icon-product {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/product-details.svg") !important;
}

.peptiqo-contact-form .pq-icon-documentation {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/documentation.svg") !important;
}

.peptiqo-contact-form .pq-icon-availability {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/availability.svg") !important;
}

.peptiqo-contact-form .pq-icon-quotation {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/quotation.svg") !important;
}

.peptiqo-contact-form .pq-icon-send {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/send-message.svg") !important;
}

.peptiqo-contact-form .pq-icon-response {
    background-image:
        url("/wp-content/themes/salient-child/assets/peptiqo-contact-icons/response-time.svg") !important;
}


/* ==========================================================
   20. SELECT2 COMPATIBILITY
   ========================================================== */

.peptiqo-contact-form .select2-container {

    width: 100% !important;
}

.peptiqo-contact-form
.select2-container
.select2-selection--single {

    min-height: 48px;

    background: #fff;

    border: 1px solid #d5e0e9;
    border-radius: 7px;
}

.peptiqo-contact-form
.select2-container
.select2-selection--single
.select2-selection__rendered {

    padding: 9px 38px 9px 15px;

    color: var(--pq-text);

    font-size: 14px;
    line-height: 28px;
}

.peptiqo-contact-form
.select2-container
.select2-selection--single
.select2-selection__arrow {

    height: 46px;
}


/* ==========================================================
   21. TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-form-control {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .peptiqo-contact-form .pq-grid-3 {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .peptiqo-contact-form .pq-interest-panel {

        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   22. MOBILE
   ========================================================== */

@media (max-width: 690px) {

    .peptiqo-contact-form .pq-form-section {

        margin-bottom: 16px;

        padding: 28px 22px 30px;

        border-radius: 10px;
    }

    .peptiqo-contact-form .pq-form-section::before {

        left: 22px;
    }

    .peptiqo-contact-form .pq-grid-2,
    .peptiqo-contact-form .pq-grid-3 {

        grid-template-columns: 1fr;
    }

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-form-control {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-list-item label {

        min-height: 145px;

        padding: 17px;
    }

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-list-item
    label::before {

        width: 44px;
        height: 44px;

        margin-bottom: 13px;
    }

    .peptiqo-contact-form .pq-interest-panel {

        padding: 19px;
    }

    .peptiqo-contact-form
    .pq-interest-main
    .wpcf7-form-control {

        grid-template-columns: 1fr;
    }

    .peptiqo-contact-form .pq-submit-area {

        display: block;

        padding: 23px 22px;
    }

    .peptiqo-contact-form input.wpcf7-submit {

        width: 100% !important;
    }

    .peptiqo-contact-form .cf7-submit-subtext {

        max-width: none;
    }

    .peptiqo-contact-form .pq-section-heading h3 {

        font-size: 21px !important;
    }
}


/* ==========================================================
   23. SMALL MOBILE
   ========================================================== */

@media (max-width: 430px) {

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-form-control {

        grid-template-columns: 1fr;
    }

    .peptiqo-contact-form
    .pq-enquiry-types
    .wpcf7-list-item label {

        min-height: 0;
    }

    .peptiqo-contact-form .pq-section-heading-icon {

        display: block;
    }

    .peptiqo-contact-form
    .pq-section-heading-icon > .pq-icon {

        margin-bottom: 15px;
    }
}
