/* Newsletter subscription form styles */

/* Message panels (success / error) */
.sib-form-message-panel {
    margin: 1.25rem 0 0 0;
    width: 100%;
    padding: .4375rem;
    border: 1px solid;
    display: none;
}

.sib-form-message-panel__text {
    display: flex;
    align-items: center;
    margin: 0;
    padding: .5rem;
}

.sib-form-message-panel__text .sib-icon {
    contain: strict;
    display: inline-block;
    fill: currentColor;
}

.sib-form-message-panel__text .sib-notification__icon {
    height: 1.5em;
    width: 1.5em;
    flex-shrink: 0;
    margin-right: calc(1rem - 1px);
}

.fmc-success-panel,
.fmc-success-panel .sib-form-message-panel__text,
.fmc-success-panel .sib-form-message-panel__inner-text {
    color: #1a1a1a;
}

.fmc-error-panel,
.fmc-error-panel .sib-form-message-panel__text,
.fmc-error-panel .sib-form-message-panel__inner-text {
    color: #1a1a1a;
}

.fmc-success-panel .sib-icon,
.fmc-error-panel .sib-icon {
    fill: #1a1a1a;
}

/* Form container */
#sib-container {
    background: #fff;
    margin: 0 auto;
    padding: 0;
    display: inline-block;
    width: 100%;
}

#sib-container input:-ms-input-placeholder,
#sib-container textarea:-ms-input-placeholder,
#sib-container-hero input:-ms-input-placeholder,
#sib-container-hero textarea:-ms-input-placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
}

#sib-container input::placeholder,
#sib-container textarea::placeholder,
#sib-container-hero input::placeholder,
#sib-container-hero textarea::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
}

#sib-container a {
    text-decoration: underline;
    color: #2BB2FC;
}

/* Recipe form container */
#sib-container-recipe {
    background: none;
}

/* Form blocks */
.sib-form-block {
    display: flex;
    align-items: flex-start;
    padding: 0 16px;
    word-wrap: break-word;
    outline: none;
}

.sib-form-block__button {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    overflow-wrap: break-word;
    max-width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: Helvetica, sans-serif;
    color: #fff;
    background-color: #ff885c;
}

.sib-form-brevo .sib-form-block__button {
    text-align: left;
    border-radius: 11px;
}

.sib-form-custom .sib-form-block__button {
    text-align: center;
    border-radius: 3px;
    width: 100%;
}

.sib-form-block__button-with-loader {
    min-height: 40px;
    line-height: 23px;
}

/* Label rows */
.form__label-row {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.form__label-row--horizontal {
    flex-direction: row;
    align-items: flex-start;
    margin: 7px 0;
}

.form__label-row--horizontal > *:first-child {
    margin-right: 20px;
}

.form__label-row--horizontal > * {
    width: 50%;
    flex-grow: 1;
}

/* Input */
.input {
    width: calc(100% - 1rem);
}

.input--hidden {
    display: none !important;
}

/* Form entry */
.form__entry {
    position: static;
    margin-left: 0;
    padding-left: 0;
}

.entry__error {
    display: none;
    margin-top: 6px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0);
}

/* Sib-form overrides */
.sib-form *,
.sib-form ::after,
.sib-form ::before {
    box-sizing: border-box;
}

.sib-form .form__entry {
    border: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.sib-form .input {
    background: transparent;
    border: 0;
    margin: 0;
    box-shadow: none;
    min-width: 1px;
    padding: 0;
    color: inherit;
    outline: 0;
}

.sib-form .entry__field {
    align-items: center;
    background: #fff;
    border: 1px solid #c0ccda;
    border-radius: 3px;
    display: inline-flex;
    margin: .25rem 0;
    max-width: 100%;
}

.sib-form .entry__error {
    display: none;
    color: #ff4949;
    font-size: .87055056rem;
    line-height: 1rem;
    max-width: 40em;
}

/* Sib-form layout */
.sib-form-brevo {
    display: flex;
    padding: 8px 0;
    align-items: center;
}

div.sib-form {
    padding: 12px 0;
}

div.sib-form .input:first-child,
.sib-form .input__affix:first-child {
    padding-left: 30px;
}

/* Footer form */
#sib-form {
    align-items: center;
}

#sib-form .entry__field {
    border: none;
}

#sib-form .input:not(textarea),
#sib-form .input__button {
    height: calc(3.5rem - 2px);
}

/* Letter icon — footer and homepage forms */
form#sib-form-hero {
    position: relative;
}

form#sib-form:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url(https://fitmencook.com/wp-content/uploads/2025/03/letter.svg);
    left: 15px;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
}

form#sib-form-hero:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url(https://fitmencook.com/wp-content/uploads/2025/03/letter.svg);
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
}

/* Recipe form overrides */
#sib-form-recipe .entry__field--email-custom .input:not(textarea),
#sib-form-recipe .entry__field--email-custom .input__button {
    height: auto;
    padding: 15px;
    border: none;
}

form.sib-form-custom:after {
    content: none;
}

@media screen and (max-width: 500px) {
    .form__label-row--horizontal {
        flex-direction: column;
    }

    .form__label-row--horizontal > * {
        width: 100%;
    }
    .sib-form-block__button {
        font-size: 14px;
    }
    .sib-form-block {
        padding: 0 14px;
    }
}

