/* ── Base: inputs sobre fondo azul (contacto / mayoristas) ── */
.ferri-form .ferri-input {
    display: block;
    width: 100%;
    padding: 0 1rem;
    height: 3rem;
    background-color: #0289e9;
    border: 1px solid white;
    color: white;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-family: inherit;
}

.ferri-form textarea.ferri-input {
    height: auto;
    min-height: 7rem;
    padding: 0.75rem 1rem;
    resize: none;
}

.ferri-form .ferri-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

.ferri-form .ferri-input:focus {
    outline: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.ferri-form .ferri-input-error {
    border-color: #fbbf24 !important;
}

/* Select: flecha blanca */
.ferri-form select.ferri-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Placeholder del select: blanco semitransparente */
.ferri-form select.ferri-input:invalid {
    color: rgba(255, 255, 255, 0.6);
}

.ferri-form select.ferri-input option {
    background-color: #0289e9;
    color: white;
}

.ferri-form select.ferri-input option[value=""] {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Checkboxes sobre fondo azul ── */
.ferri-form .ferri-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
}

.ferri-form .ferri-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: white;
}

/* ── Mensaje de respuesta (fondo azul) ── */
.ferri-form .ferri-form-msg {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.ferri-form .ferri-msg-ok {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.ferri-form .ferri-msg-err {
    background: rgba(0, 0, 0, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

/* ── Suscripción: inputs sobre fondo azul oscuro (#02357C) ── */
.ferri-subscription-form .ferri-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    height: 3rem;
    background-color: white;
    border: 1px solid #ddd;
    color: #02357C;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-family: inherit;
}

.ferri-subscription-form .ferri-input::placeholder {
    color: #aaa;
}

.ferri-subscription-form .ferri-input:focus {
    outline: none;
    border-color: #02357C;
}

.ferri-subscription-form .ferri-input-error {
    border-color: #ef4444 !important;
}

.ferri-subscription-form .ferri-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
}

.ferri-subscription-form .ferri-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ferri-subscription-form .ferri-form-msg {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.ferri-subscription-form .ferri-msg-ok {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.ferri-subscription-form .ferri-msg-err {
    background: rgba(0, 0, 0, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}
