/* ============================================================
   Travelicious Mailer — Subscribe Form
   Matches the inline Name | E-mail | → layout
   ============================================================ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.traveliciousmailer-subscribe-form {
    width: 100%;
    font-family: inherit;
}

/* ── Inline row: inputs + button side by side ──────────────── */
.traveliciousmailer-form__inline {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;       /* stacks on narrow screens */
}

/* ── Text / email inputs ───────────────────────────────────── */
.traveliciousmailer-input {
    flex: 1 1 160px;       /* grow equally, min 160 px before wrapping */
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #d8d8d8;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.traveliciousmailer-input::placeholder {
    color: #9ea8a0;
    font-size: 14px;
}

.traveliciousmailer-input:focus {
    border-color: #4a6b3c;
    box-shadow: 0 0 0 3px rgba(74, 107, 60, .12);
}

/* ── Arrow submit button ───────────────────────────────────── */
.traveliciousmailer-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: auto;          /* stretches to match input height */
    min-height: 50px;
    padding: 0;
    background: #4a6b3c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    -webkit-appearance: none;
    appearance: none;
}

.traveliciousmailer-btn:hover {
    background: #3b5630;
}

.traveliciousmailer-btn:active {
    transform: scale(.96);
}

.traveliciousmailer-btn:disabled {
    background: #8aaa7a;
    cursor: not-allowed;
    transform: none;
}

/* ── Loading state: spin the arrow ────────────────────────── */
.traveliciousmailer-btn.is-loading svg {
    animation: tmSpin .7s linear infinite;
}

@keyframes tmSpin {
    to { transform: rotate(360deg); }
}

/* ── Success / error message ───────────────────────────────── */
.traveliciousmailer-message {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
}

.traveliciousmailer-message.success {
    display: block;
    background: #edf5e9;
    color: #2f5928;
    border: 1px solid #b8d9ae;
}

.traveliciousmailer-message.error {
    display: block;
    background: #fdf0ef;
    color: #8b2020;
    border: 1px solid #f5b8b5;
}

/* ── Honeypot (always hidden) ──────────────────────────────── */
.traveliciousmailer-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Responsive: stack below 480 px ───────────────────────── */
@media (max-width: 480px) {
    .traveliciousmailer-form__inline {
        flex-direction: column;
        gap: 8px;
    }
    .traveliciousmailer-input {
        flex: 1 1 auto;
        width: 100%;
    }
    .traveliciousmailer-btn {
        width: 100%;
        height: 50px;
        min-height: unset;
    }
}
