/* Newsletter Science Section - EXACT copy from parent theme newsletter.css */
:root {
    --color-background: #196B81;
    --color-text-light: #ffffff;
    --color-accent-orange: #E47633;
    --color-placeholder: #5A9EA3;
    --color-input-bg: #ffffff;
    --color-deco-orange: #F9BC3C;
    --color-deco-yellow: #FEF7DE;
    --color-deco-purple: #C28AE1;
    --color-deco-teal: #368C95;
}

.newsletter-approach-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 120px;
    padding-inline: 10px;
    overflow: hidden;

    @media (max-width: 768px) {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.newsletter-approach {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-background);
    text-align: center;
    border-radius: 30px;
}

.newsletter-approach__content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.newsletter-approach__header {
    margin-bottom: 20px;
}

.newsletter-approach__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 80%;
    height: 15px;
    background-image: url('../images/BRUSHES.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
}

.newsletter-approach__title {
    font-size: 52px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 20px;
    font-weight: bold;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1;
    font-family: var(--font-family-archer);
    letter-spacing: -1px;
    margin: 0 auto;
}

.newsletter-approach__accent-line {
    width: 150px;
    height: 6px;
    background-color: var(--color-accent-orange);
    margin: 10px auto 0;
    border-radius: 3px;
}

.newsletter-approach__description {
    font-size: 22px;
    color: var(--color-text-light);
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.newsletter-approach__form {
    display: flex;
    justify-content: center;
    height: 44px;
    gap: 15px;
    margin: 0 auto;
    max-width: 720px;
}

.newsletter-approach__input {
    flex: 1 100%;
    max-width: 180px;
    padding-left: 10px;
    border: none;
    border-radius: 30px;
    background-color: var(--color-input-bg);
    color: var(--color-text-dark);
    font-size: 1em;
    transition: box-shadow 0.3s ease;
}

.newsletter-approach__input::placeholder {
    color: #196B81;
    font-size: 16px;
    line-height: 1.4;
    opacity: 0.3;
}

.newsletter-approach__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 118, 51, 0.5);
}

.newsletter-approach__button {
    border: none;
    border-radius: 30px;
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
    min-width: 150px;
}

.newsletter-approach__button:hover {
    background-color: #d1692d;
}

.newsletter-approach__button:active {
    transform: translateY(1px);
}

.newsletter-approach__decoration {
    position: absolute;
    z-index: 5;
}

.newsletter-approach__decoration--top-left {
    top: 20px;
    left: 20px;
    width: 180px;
    transform: translate(70%, -22px);
    height: 55px;
    background: url('../images/vector5.png') no-repeat center / contain;
}

.newsletter-approach__decoration--top-right {
    top: -20px;
    right: 0;
    width: 125px;
    height: 150px;
    background: url('../images/vector4.svg') no-repeat center / contain;
    opacity: 0.8;
}

.newsletter-approach__decoration--bottom-left {
    bottom: 0;
    left: 0;
    transform: translate(8%, 1px);
    width: 303px;
    height: 162px;
    background: url(../images/vector6.png) no-repeat center / contain;
}

.newsletter-approach__decoration--arrow {
    bottom: 0;
    right: 150px;
    width: 240px;
    height: 129px;
    background: url(../images/Vector7.png);
    background-repeat: no-repeat;
    transform: rotate(0deg) translate(114px, 58px);
}

@media (max-width: 1200px) {
    .newsletter-approach__decoration--arrow {
        right: 10vw;
    }
}

@media (max-width: 1100px) {
    .newsletter-approach__decoration--arrow {
        right: 6vw;
    }
}

@media (max-width: 1000px) {
    .newsletter-approach__input {
        max-width: 100%;
        min-height: 44px;
    }

    .newsletter-approach__form {
        flex-wrap: wrap;
        height: auto;
        padding-inline: 20px;
    }

    .newsletter-approach__button {
        width: 100%;
        min-width: none;
        min-height: 44px;
    }

    .newsletter-approach__decoration--top-left {
        top: 20px;
        left: 0px;
        width: 180px;
        transform: translate(30%, -22px);
    }

    .newsletter-approach__decoration--top-right {
        top: 5px;
        right: 2px;
        width: 100px;
        height: 80px;
    }

    .newsletter-approach__title {
        font-size: 38px;
        padding-inline: 20px;
    }

    .newsletter-approach__description {
        font-size: 18px;
        max-width: 400px;
        padding-inline: 20px;
    }
}

/* ==========================================================================
   Gravity Forms Integration - Newsletter Approach
   ========================================================================== */

/* Reset Gravity Forms wrapper */
.newsletter-approach__content .gform_wrapper,
.newsletter-approach__content .gform_wrapper.gform-theme,
.newsletter-approach__content .gform_wrapper.gform-theme--orbital {
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: 800px !important;
}

/* Override GF CSS Variables */
.newsletter-approach__content .gform_wrapper[data-form-index] {
    --gf-color-primary: #E47633 !important;
    --gf-color-in-ctrl-primary: #E47633 !important;
    --gf-ctrl-border-color: transparent !important;
    --gf-radius: 30px !important;
}

/* Hide heading if present */
.newsletter-approach__content .gform_heading {
    display: none !important;
}

/* MAIN FORM ELEMENT - Apply flex here to include footer */
.newsletter-approach__content form[id^="gform_"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}

/* Form body - make it inline */
.newsletter-approach__content .gform-body,
.newsletter-approach__content .gform_body {
    display: contents !important;
}

/* Fields container - make it inline with contents */
.newsletter-approach__content .gform_fields {
    display: contents !important;
}

/* Individual field wrapper */
.newsletter-approach__content .gfield {
    margin: 0 !important;
    padding: 0 !important;

    min-width: 120px !important;
    max-width: 180px !important;
}
.ginput_complex.ginput_container.ginput_container--name.no_prefix.has_first_name.no_middle_name.no_last_name.no_suffix.gf_name_has_1.ginput_container_name.gform-grid-row span{
    height: auto !important;
    display: block;
}
.ginput_right.address_zip.ginput_address_zip.gform-grid-col{
    height: auto !important;
    display: block;
}
.ginput_container.ginput_container_email{
    padding-inline: 6px !important;
}
/* Hide honeypot field completely */
.newsletter-approach__content .gform_validation_container,
.newsletter-approach__content .gfield--type-honeypot {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Labels - Hide all labels for inline form
   ========================================================================== */

.newsletter-approach__content .gfield_label,
.newsletter-approach__content .gform-field-label,
.newsletter-approach__content legend.gfield_label,
.newsletter-approach__content .gform-field-label--type-sub {
    display: none !important;
}

/* ==========================================================================
   Input Fields
   ========================================================================== */

/* Input containers */
.newsletter-approach__content .ginput_container,
.newsletter-approach__content .ginput_complex,
.newsletter-approach__content .ginput_container--name,
.newsletter-approach__content .ginput_container_address {
    margin: 0 !important;
}

/* Grid layout reset */
.newsletter-approach__content .gform-grid-row {
    display: block !important;
}

.newsletter-approach__content .gform-grid-col,
.newsletter-approach__content .ginput_right,
.newsletter-approach__content .name_first,
.newsletter-approach__content .address_zip {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* Hide clear divs */
.newsletter-approach__content .gf_clear,
.newsletter-approach__content .gf_clear_complex {
    display: none !important;
}

/* All text-like inputs */
.newsletter-approach__content input[type="text"],
.newsletter-approach__content input[type="email"],
.newsletter-approach__content input[type="tel"],
.newsletter-approach__content input[type="url"],
.newsletter-approach__content input[type="number"],
.newsletter-approach__content select {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #196B81 !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Placeholders */
.newsletter-approach__content input::placeholder {
    color: #196B81 !important;
    opacity: 0.3 !important;
    font-size: 16px !important;
}

/* Focus states */
.newsletter-approach__content input:focus,
.newsletter-approach__content select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(228, 118, 51, 0.5) !important;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

/* Footer - use contents so button is direct child of form flex */
.newsletter-approach__content .gform-footer,
.newsletter-approach__content .gform_footer {
    display: contents !important;
}

.newsletter-approach__content .gform_button,
.newsletter-approach__content .gform_button.button,
.newsletter-approach__content input[type="submit"] {
    flex: 0 0 auto !important;
    width: 150px !important;
    height: 44px !important;
    padding: 10px 20px !important;
    background-color: #E47633 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.1s ease !important;
    font-family: inherit !important;
    box-shadow: none !important;
}

.newsletter-approach__content .gform_button:hover,
.newsletter-approach__content .gform_button.button:hover,
.newsletter-approach__content input[type="submit"]:hover {
    background-color: #d1692d !important;
}

.newsletter-approach__content .gform_button:active,
.newsletter-approach__content input[type="submit"]:active {
    transform: translateY(1px) !important;
}

/* ==========================================================================
   Utility & Cleanup
   ========================================================================== */

/* Hide hidden fields */
.newsletter-approach__content .gform_hidden,
.newsletter-approach__content input[type="hidden"] {
    display: none !important;
}

/* Hide any inline styles injected by GF */
.newsletter-approach__content .gform_wrapper > style {
    display: none;
}

/* Validation messages */
.newsletter-approach__content .gfield_validation_message,
.newsletter-approach__content .validation_message {
    color: #FEF7DE !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    padding: 0 !important;
    text-align: center !important;
}

.newsletter-approach__content .gfield_error input {
    box-shadow: 0 0 0 2px #E47633 !important;
}

/* Confirmation message */
.newsletter-approach__content .gform_confirmation_message,
.newsletter-approach__content .gform_confirmation_wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    text-align: center !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 1000px) {
    /* Change form to column layout */
    .newsletter-approach__content form[id^="gform_"] {
        flex-direction: column !important;
        align-items: center !important;
        padding-inline: 20px !important;
    }

    .newsletter-approach__content .gfield {
        max-width: 100% !important;
        width: 100% !important;
    }

    .newsletter-approach__content .gform_button,
    .newsletter-approach__content input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}
