/*
 * Partner Visa 101 handbook signup form
 * Loaded only on the handbook landing page.
 */

/* =========================================================
   FORM CARD
   ========================================================= */

.fm-handbook-card {
    width: 100%;
    padding: 46px 50px !important;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #d9e4da;
    border-radius: 16px;
    box-shadow: 0 18px 42px -28px rgba(6, 62, 9, 0.35);
}

.fm-handbook-card.et_pb_row {
    width: 100%;
}

.fm-handbook-card,
.fm-handbook-card * {
    box-sizing: border-box;
}

/* =========================================================
   FORM HEADING AND INTRODUCTION
   ========================================================= */

.fm-handbook-title {
    margin-bottom: 10px !important;
}

.fm-handbook-title h3 {
    margin: 0;
    padding-bottom: 0 !important;

    color: #063e09;
    font-family: "Lora", Georgia, serif;
    font-size: 30px !important;
    font-weight: 600;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
}

.fm-handbook-intro {
    margin-bottom: 26px !important;
}

.fm-handbook-intro p {
    max-width: 36ch;
    margin: 0;
    padding-bottom: 0 !important;

    color: #4a4d3f;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.55 !important;
}

/* =========================================================
   FORM WRAPPER
   ========================================================= */

#fm-handbook-signup {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    scroll-margin-top: 130px;
}

#fm-handbook-signup form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   FORM FIELDS
   ========================================================= */

#fm-handbook-signup .fm-form-field {
    margin-bottom: 20px;
}

#fm-handbook-signup input[type="text"],
#fm-handbook-signup input[type="email"] {
    display: block;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 17px 22px;

    background: #faf7f2;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    outline: none;

    color: #26281f;
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.4 !important;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

#fm-handbook-signup input[type="text"]::placeholder,
#fm-handbook-signup input[type="email"]::placeholder {
    color: #4a4d3f;
    opacity: 0.9;
}

#fm-handbook-signup input[type="text"]:focus,
#fm-handbook-signup input[type="email"]:focus {
    background: #ffffff;
    border-color: #095a0e;
    box-shadow: 0 0 0 3px rgba(9, 90, 14, 0.12);
}

/* =========================================================
   OPTIONAL MAILCHIMP CONSENT FIELD
   ========================================================= */

#fm-handbook-signup .fm-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 6px 0 24px;
}

#fm-handbook-signup .fm-consent-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;

    accent-color: #095a0e;
}

#fm-handbook-signup .fm-consent-row label {
    color: #4a4d3f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

#fm-handbook-signup .fm-handbook-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 100%;
    min-height: 62px;
    margin: 4px 0 0;
    padding: 15px 20px;

    background: #095a0e;
    border: 0;
    border-radius: 8px;
    box-shadow: none;

    color: #ffffff;
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    text-align: center;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

#fm-handbook-signup .fm-handbook-submit:hover {
    background: #063e09;
    box-shadow: 0 12px 24px -16px rgba(6, 62, 9, 0.65);
    transform: translateY(-1px);
}

#fm-handbook-signup .fm-handbook-submit:active {
    box-shadow: none;
    transform: translateY(0);
}

#fm-handbook-signup .fm-handbook-submit:focus-visible {
    outline: 3px solid rgba(224, 168, 62, 0.65);
    outline-offset: 3px;
}

#fm-handbook-signup .fm-handbook-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

/* =========================================================
   MAILCHIMP RESPONSE MESSAGES
   ========================================================= */

#fm-handbook-signup .response {
    margin: 0 0 18px;
    padding: 12px 15px;

    border-radius: 6px;

    font-size: 14px;
    line-height: 1.5;
}

#fm-handbook-signup #mce-error-response {
    background: #fff1f1;
    color: #8a1f1f;
}

#fm-handbook-signup #mce-success-response {
    background: #edf8ee;
    color: #063e09;
}

/* =========================================================
   ACCESSIBILITY AND MAILCHIMP ANTI-BOT FIELD
   ========================================================= */

#fm-handbook-signup .fm-mailchimp-honeypot {
    position: absolute !important;
    left: -5000px !important;

    width: 1px;
    height: 1px;
    overflow: hidden;
}

#fm-handbook-signup .fm-screen-reader-text {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;

    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* =========================================================
   TRUST STATEMENT
   ========================================================= */

.fm-handbook-trust {
    margin-top: 16px !important;
    text-align: center;
}

.fm-handbook-trust p {
    margin: 0;
    padding-bottom: 0 !important;

    color: #5f6258;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.5 !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .fm-handbook-card {
        padding: 38px 36px !important;
    }

    .fm-handbook-title h3 {
        font-size: 28px !important;
    }

    .fm-handbook-intro p {
        font-size: 17px !important;
    }

    #fm-handbook-signup {
        scroll-margin-top: 100px;
    }

    #fm-handbook-signup input[type="text"],
    #fm-handbook-signup input[type="email"] {
        min-height: 62px;
        padding: 15px 20px;
        font-size: 17px !important;
    }

    #fm-handbook-signup .fm-handbook-submit {
        min-height: 58px;
        padding: 14px 20px;
        font-size: 17px !important;
    }
}

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

@media (max-width: 767px) {
    .fm-handbook-card {
        padding: 30px 22px !important;
        border-radius: 12px;
    }

    .fm-handbook-title {
        margin-bottom: 8px !important;
    }

    .fm-handbook-title h3 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }

    .fm-handbook-intro {
        margin-bottom: 22px !important;
    }

    .fm-handbook-intro p {
        max-width: none;
        font-size: 16px !important;
    }

    #fm-handbook-signup .fm-form-field {
        margin-bottom: 16px;
    }

    #fm-handbook-signup input[type="text"],
    #fm-handbook-signup input[type="email"] {
        min-height: 58px;
        padding: 14px 17px;
        font-size: 16px !important;
    }

    #fm-handbook-signup .fm-handbook-submit {
        min-height: 56px;
        padding: 14px 17px;
        font-size: 16px !important;
    }

    #fm-handbook-signup .fm-consent-row {
        margin-bottom: 20px;
    }

    #fm-handbook-signup .fm-consent-row label {
        font-size: 15px;
    }

    .fm-handbook-trust {
        margin-top: 14px !important;
    }

    .fm-handbook-trust p {
        font-size: 12px !important;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    #fm-handbook-signup *,
    #fm-handbook-signup *::before,
    #fm-handbook-signup *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}