/* ═══════════════════════════════════════════════
   FT Email Collector — Front-end Styles
   ═══════════════════════════════════════════════ */

/* ── Reset & wrapper ── */
.ft-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.ft-form-wrapper *,
.ft-form-wrapper *::before,
.ft-form-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Form ── */
.ft-form {
    width: 100%;
    max-width: 680px;
}

/* ── Input group (flex row) ── */
.ft-input-group {
    display: flex;
    align-items: stretch;
    background: #0f1923;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.ft-input-group:focus-within {
    border-color: rgba(41, 171, 226, 0.55);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.12);
}

/* ── Input ── */
.ft-input {
    flex: 1;
    min-width: 0;
    padding: 18px 22px;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.ft-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

/* ── Button ── */
.ft-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    background: #29abe2;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ft-button:hover {
    background: #1e9ad1;
    box-shadow: 0 4px 14px rgba(41, 171, 226, 0.35);
    transform: translateY(-1px);
}

.ft-button:active {
    background: #1889be;
    transform: translateY(0);
    box-shadow: none;
}

/* Arrow icon */
.ft-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ft-button:hover .ft-arrow {
    transform: translateX(3px);
}

/* ── Loading state ── */
.ft-button.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.ft-button.is-loading .ft-button-text::after {
    content: '...';
    animation: ft-dots 1.2s steps(4, end) infinite;
}

@keyframes ft-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* ── Feedback message ── */
.ft-message {
    margin-top: 12px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 500;
    min-height: 22px;
    transition: opacity 0.25s ease;
}

.ft-message.is-success {
    color: #4cdd8a;
}

.ft-message.is-error {
    color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .ft-input-group {
        flex-direction: column;
        border-radius: 10px;
    }

    .ft-input {
        padding: 16px 18px;
        font-size: 15px;
    }

    .ft-button {
        justify-content: center;
        margin: 0 5px 5px;
        padding: 14px 20px;
        border-radius: 6px;
    }
}