/* =====================================================
   YouTrip Email Subscribe Form — subscribe.css
   ===================================================== */

/* ── Wrapper ── */
.es-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Right column fills available space */
.es-right-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Form row: input + button side by side ── */
.es-form-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

/* ── Email Input ── */
.es-input {
    flex: 1 1 auto;
    height: 48px;
    padding: 0 40px;
    font-size: 15px;
    font-weight: 400;
    font-family: "Poppins", Sans-serif;
    margin-right: 20px;
    color: #333;
    background: #ffffff;
    border: none;
    border-radius: 50px !important;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    transition: box-shadow 0.2s ease;
}

.es-input:focus{
    background: #ffffff;
    border: 1px solid #eaeaea !important;;
}

.es-input::placeholder {
    color: #aaa;
}

.es-input:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* ── Subscribe Button ── */
.es-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Poppins", Sans-serif;
    color: #ffffff;
    background: #10DBAC;
    border: 2px solid #10DBAC;
    border-radius: 50px !important;
    cursor: pointer;
}

.es-btn:hover{
    background: transparent;
    border: 2px solid #10DBAC;
    color: #10DBAC;
    transition: all 0.2s ease;
}

.es-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.es-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: es-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes es-spin {
    to { transform: rotate(360deg); }
}

/* ── Result message ── */
.es-result {
    font-size: 14px;
    min-height: 20px;
    padding: 0 4px;
    transition: opacity 0.25s ease;
}

.es-result:empty {
    display: none;
}

.es-result--success {
    color: #1fcf9a;
}

.es-result--error {
    color: #ff5c5c;
}

/* =====================================================
   MOBILE — button stacks below input
   ===================================================== */
@media (max-width: 767px) {
    .es-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* On mobile, both elements become full-width standalone pills */
    .es-input {
        border-radius: 9999px;
        width: 100%;
    }

    .es-btn {
        border-radius: 9999px;
        width: 100%;
        text-align: center;
    }
}
