/*
 * Rocking Horse Readers signup form
 * Tuned to match the Off My Rocking Horse Divi 4 opt-in.
 */

.rhr-signup {
    --rhr-coral: #D95E44;
    --rhr-purple: #7a5d8e;
    --rhr-green: #75764d;
    --rhr-lime: #a5bf60;
    --rhr-stone: #e5dfd7;
    --rhr-page: #f5f2ed;

    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 28px 28px 34px;
    background: var(--rhr-coral);
    color: #ffffff;
    font-family: inherit;
}

.rhr-signup__title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: "Oswald", sans-serif !important;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rhr-signup__text {
    margin: 0 0 24px !important;
    padding: 0 !important;
    max-width: none;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

/* True 50/50 fields on desktop. */
.rhr-signup__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.rhr-signup__name-row {
    grid-column: 1;
}

.rhr-signup__email-row {
    grid-column: 2;
}

.rhr-signup__name,
.rhr-signup__email {
    display: block;
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 3px;
    background: #ffffff;
    color: #555555;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 52px;
    box-shadow: none;
    appearance: none;
}

.rhr-signup__name::placeholder,
.rhr-signup__email::placeholder {
    color: #7a7a7a;
    opacity: 1;
}

.rhr-signup__name:focus,
.rhr-signup__email:focus {
    outline: 2px solid rgba(255,255,255,.65);
    outline-offset: 2px;
}

.rhr-signup__button {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    margin: 2px 0 0;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    background: transparent;
    color: #ffffff !important;
    font-family: "Oswald", sans-serif !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.rhr-signup__button:hover,
.rhr-signup__button:focus {
    background: #ffffff;
    color: var(--rhr-coral) !important;
}

.rhr-signup__button[disabled] {
    opacity: .65;
    cursor: wait;
}

.rhr-signup__consent {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.rhr-signup__message {
    margin-top: 12px;
    min-height: 1.4em;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.rhr-signup__message.is-success,
.rhr-signup__message.is-error {
    color: #ffffff !important;
}

.rhr-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Stack fields elegantly on tablet and phone. */
@media (max-width: 767px) {
    .rhr-signup {
        padding: 24px 20px 28px;
    }

    .rhr-signup__form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rhr-signup__name-row,
    .rhr-signup__email-row,
    .rhr-signup__button {
        grid-column: 1;
    }

    .rhr-signup__title {
        font-size: 25px;
    }

    .rhr-signup__text {
        margin-bottom: 18px !important;
        font-size: 15px;
        line-height: 1.55;
    }

    .rhr-signup__name,
    .rhr-signup__email {
        height: 50px;
        padding: 0 14px;
        font-size: 15px;
        line-height: 50px;
    }

    .rhr-signup__button {
        min-height: 48px;
        padding: 9px 18px;
        font-size: 19px;
    }

    .rhr-signup__consent {
        margin-top: 18px !important;
        font-size: 15px;
    }
}


/* Cloudflare Turnstile */
.rhr-signup__turnstile {
	grid-column: 1 / -1;
	width: 100%;
	margin: 2px 0 0;
}

.rhr-signup__turnstile .cf-turnstile {
	width: 100%;
}

@media (max-width: 980px) {
	.rhr-signup__turnstile {
		grid-column: 1;
	}
}
