/* ============================================
   SUB-BAND: Keep In Touch Form
   ============================================ */

/* --- Outer Band --- */
.sub-band-mobile-accordion {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #1ea597;
    z-index: 999;
}

.sub-blade {
    padding: 0 !important;
}

/* --- Inner Container --- */
.sub-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 8px 16px;
}

/* --- Form Layout --- */
#partner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
}

/* --- Icon --- */
.sub-plane-bottom {
    width: 35px;
    height: 35px;
    padding: 5px;
    margin: 0 8px 0 0;
    opacity: 0.3;
    flex-shrink: 0;
}

/* --- Label --- */
.sub-kit {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 8px 0 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Inputs --- */
#First_Name,
#fieldEmail {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 13px;
    color: #464c52;
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 240px;
    height: 40px;
    outline: none;
    transition: background 0.2s;
}

#First_Name:focus,
#fieldEmail:focus {
    background: rgba(255, 255, 255, 0.75);
}

#Last_Name {
    display: none;
}

/* --- Submit Button --- */
#submitButton {
    background: #a8dcd7;
    border: none;
    border-radius: 2px;
    color: #464c52;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s;
}

#submitButton:hover:not(:disabled) {
    background: #fff;
}

#submitButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- reCAPTCHA --- */
#recaptchaContainer {
    width: 100%;
    padding: 8px 0 4px;
}

/* ============================================
   MOBILE: ≤ 767px
   ============================================ */
@media (max-width: 767px) {
    .sub-button-container {
        padding: 12px 16px;
    }

    #partner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sub-plane-bottom {
        display: none; /* icon redundant on small screens */
    }

    .sub-kit {
        text-align: center;
        font-size: 14px;
        margin: 0;
    }

    #First_Name,
    #fieldEmail {
        max-width: 100%;
        width: 100%;
        flex: none;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    #submitButton {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ============================================
   TABLET: 768px – 1023px
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    #First_Name,
    #fieldEmail {
        flex: 1 1 140px;
        max-width: 200px;
    }

    .sub-kit {
        display: none; /* saves space on mid-width viewports */
    }
}

/* ============================================
   EDIT MODE: hide from Drupal node edit form
   ============================================ */
form#node-page-edit-form .sub-band-mobile-accordion {
    display: none;
}