/* =====================================================
   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%;
}

h1, h2, h3, h4, h5, h6, p, span, a, input, button, textarea {
    font-family: "Poppins", Sans-serif !important;
}

/* ── 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;
}

/* =====================================================
   MY WAITLIST — stacked layout
   ===================================================== */
.es-form-row--waitlist {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.es-form-row--waitlist .es-input {
    width: 100%;
    margin-right: 0;
}

.es-form-row--waitlist .es-input.es-input--name, .es-form-row--waitlist .es-input.es-input--email, .es-form-row--waitlist .es-input.es-input--textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px !important;
    border: 1.5px solid rgb(230, 226, 242);
    background: transparent !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 15.5px;
    color: #24174A;
    outline: none;
    font-weight: 500;
}
.es-form-row--waitlist .es-input.es-input--name:focus, .es-form-row--waitlist .es-input.es-input--email:focus, .es-form-row--waitlist .es-input.es-input--textarea:focus {
    border-color: #24174A !important;
}
.es-form-row--waitlist .es-input.es-input--error {
    border-color: #ff5c5c !important;
}
.es-textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 400;
    font-family: "Poppins", Sans-serif;
    color: #333;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    min-height: 90px;
    transition: box-shadow 0.2s ease;
}

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

.es-btn--full {
    width: 100%;
    text-align: center;
}
.es-btn--waitlist{
    color: #24174A !important;
    padding: 16px;
    font-size: 16.5px;
    font-weight: 600;
    height: 100%;
}
.es-btn--waitlist:hover, .es-btn--waitlist:focus {
    color: #24174A !important;
    background: #10DBAC !important;
}

.es-disclaimer {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin: 0;
    font-family: "Poppins", Sans-serif;
}

/* =====================================================
   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;
    }
}
