/* Fox Crossing email signup. Views/Partials/FoxCrossing/MailchimpSignup.cshtml */

.fc-signup .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fc-signup__form {
    position: relative;
    margin: 0;
}

.fc-signup__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.fc-signup__field .form-label {
    display: block;
    margin-bottom: 6px;
}

.fc-signup__field .form-control {
    width: 100%;
}

.fc-signup__button {
    width: 100%;
    white-space: nowrap;
}

.fc-signup__hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fc-signup__message:empty {
    display: none;
}

.fc-signup__message {
    margin-top: 12px;
}

.fc-signup__smallprint {
    margin: 10px 0 0;
    font-size: 0.85em;
}

/* Page variant: centred block under the lot map */

.fc-signup--page {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.fc-signup--page .fc-signup__fields {
    text-align: left;
    margin-top: 20px;
}

.fc-signup--page .fc-signup__message--success {
    color: #2e7d32;
    font-weight: bold;
}

.fc-signup--page .fc-signup__message--error {
    color: #b00020;
    font-weight: bold;
}

@media (min-width: 768px) {
    .fc-signup--page .fc-signup__fields {
        grid-template-columns: 1fr 1fr;
    }

    .fc-signup--page .fc-signup__field--email,
    .fc-signup--page .fc-signup__field--submit {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .fc-signup--page .fc-signup__fields {
        grid-template-columns: 2fr 1fr 1fr auto;
    }

    .fc-signup--page .fc-signup__field--email,
    .fc-signup--page .fc-signup__field--submit {
        grid-column: auto;
    }
}

/* Page variant: WCAG AA contrast fix on the #fafafa section background.
   The button colours use !important to beat the uSkinned base-btn-* theme classes. */

.fc-signup.fc-signup--page .fc-signup__heading {
    color: #7a5c2a;
}

.fc-signup.fc-signup--page .fc-signup__heading::after {
    margin-left: auto;
    margin-right: auto;
    background: #a57e3e;
}

.fc-signup.fc-signup--page .fc-signup__intro,
.fc-signup.fc-signup--page .form-label,
.fc-signup.fc-signup--page .fc-signup__smallprint {
    color: #3d3d3d;
}

.fc-signup.fc-signup--page .fc-signup__smallprint {
    font-size: 0.85em;
    opacity: 1;
}

.fc-signup.fc-signup--page .btn.fc-signup__button {
    background-color: #7a5c2a !important;
    border: 1px solid #7a5c2a !important;
    color: #ffffff !important;
    font-weight: 600;
}

.fc-signup.fc-signup--page .btn.fc-signup__button:hover,
.fc-signup.fc-signup--page .btn.fc-signup__button:focus {
    background-color: #002e5d !important;
    border-color: #002e5d !important;
    color: #ffffff !important;
}

.fc-signup.fc-signup--page .btn.fc-signup__button:focus-visible {
    outline: 3px solid #002e5d;
    outline-offset: 2px;
}

.fc-signup.fc-signup--page .form-control {
    border: 1px solid #8a6a34;
}

.fc-signup.fc-signup--page .form-control:focus {
    border-color: #002e5d;
    box-shadow: 0 0 0 3px rgba(0, 46, 93, .25);
}

/* Footer variant: compact, left aligned, takes the footer's text colour */

.fc-signup-row {
    margin-top: 10px;
    margin-bottom: 30px;
}

.fc-signup--footer {
    color: inherit;
    text-align: left;
}

.fc-signup--footer .fc-signup__heading {
    color: inherit;
    margin-bottom: 6px;
}

.fc-signup--footer .fc-signup__intro {
    margin-bottom: 12px;
}

.fc-signup--footer .fc-signup__smallprint {
    opacity: 0.85;
}

.fc-signup--footer .fc-signup__message--success,
.fc-signup--footer .fc-signup__message--error {
    color: inherit;
    font-weight: bold;
}

@media (min-width: 768px) {
    .fc-signup--footer .fc-signup__fields {
        grid-template-columns: 1.5fr 1fr 1fr auto;
    }
}
