.pifmag-two-columns-section {
    padding-top: 0;
}

.pifmag-two-columns-section .container {
    padding-block: 30px;
    border-top: 1px solid rgb(194, 197, 200);
}

@media screen and (min-width: 991.8px) {
    .pifmag-two-columns-section .container {
        padding-inline: 30px;
    }
}

.pifmag-two-columns-section .row {
    column-gap: 36px;
    row-gap: 24px;
}

@media (min-width: 992px) {
    .pifmag-two-columns-section .col-lg-6 {
        flex: 0 0 auto;
        width: calc(50% - 18px);
    }
}

.pifmag-column-text {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: clamp(30px, 3.4vw, 52px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.pifmag-column-text::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 26px;
    width: 38px;
    height: 48px;
    opacity: .18;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/wp-content/uploads/2026/07/logo-mark.png');
}

.pifmag-column-text h2 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.pifmag-column-text h3,
.pifmag-column-form h3 {
    margin: 0;
    font-family: var(--font-reading);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(22px, 2.2vw, 31px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

.pifmag-column-link {
    margin-left: auto;
    margin-right: 0;

    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s, gap .2s;
}

.pifmag-column-link span {
    transition: transform .2s;
}

.pifmag-column-link:hover span {
    transform: translateX(3px);
}

.pifmag-column-link:hover {
    color: var(--accent);
}

.pifmag-column-form {
    background: var(--blue);
    color: #eaf2fb;
    border-radius: 16px;
    padding: clamp(30px, 3.4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pifmag-column-form h2 {
    color: var(--teal);
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;

}

.pifmag-column-form h3 {
    color: var(--paper);
}

.pifmag-column-form p {
    margin: 0 0 24px;
    color: rgba(234, 242, 251, .8);
    font-size: 15.5px;
    line-height: 1.5;
    max-width: 38ch;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Flatten wrappers so all fields + footer share one grid */
.pifmag-column-form #gform_1 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 10px;
}

.pifmag-column-form #gform_1 .gform_body,
.pifmag-column-form #gform_1 #gform_fields_1 {
    display: contents;
}

/* Intro text: full width, first */
.pifmag-column-form #gform_1 .gfield--type-html:not(.after-submit) {
    grid-column: 1 / -1;
    order: 1;
}

/* Email + submit side by side */
.pifmag-column-form #gform_1 .gfield--type-email {
    grid-column: 1;
    order: 2;
    position: relative;
}

.pifmag-column-form #gform_1 .gform_footer {
    grid-column: 2;
    order: 2;
    margin: 0;
    padding: 0;
    align-self: end; /* aligns button with input bottom */
}

/* .after-submit field: full width, under everything */
.pifmag-column-form #gform_1 .after-submit {
    grid-column: 1 / -1;
    order: 3;
}

.pifmag-column-form form input[type="email"] {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    min-width: 0;
    flex: 1;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14.5px;
    height: 48px;
    color: var(--paper);
    outline: none;
}

.pifmag-column-form form input[type="email"]::placeholder {
    color: rgba(234, 242, 251, .6);
}

.pifmag-column-form form input[type="email"]:focus {
    border-color: var(--teal);
    background: rgba(255, 255, 255, .16);
    outline: none;
}

#gform_submit_button_1,
.pifmag-column-form form .button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s, background .2s, color .2s;
    height: 48px;
    background: var(--accent);
    color: var(--accent-ink);
    width: 100%;
    border: none;
    outline: none;
}

#gform_submit_button_1:hover,
.pifmag-column-form form .button:hover,
#gform_submit_button_1:focus,
.pifmag-column-form form .button:focus {
    transform: translateY(-1px);
    outline: none;
    border: none;
}

.pifmag-column-form .after-submit p {
    color: rgba(234, 242, 251, .55);
    margin-block: 14px;
    font-size: 12px;
    max-width: 100%;
}

#gform_1_validation_container {
    display: none;
}

#validation_message_1_2 {
    position: absolute;
    color: #FFFF;
    top: -30px;
    font-style: italic;
}

@media screen and (max-width: 767.8px) {
    .pifmag-column-form #gform_1 {
        row-gap: 15px;
    }

    .pifmag-column-form #gform_1 .gform_footer {
        grid-column: 1;

    }
}