/**
 * TourWise - Email Capture Module Styles
 * Appears after the free calculator returns a result.
 * Brand: indigo #6366F1, dark navy #0D0F1A, Inter
 */

/* ========================================
   Container
   ======================================== */

.tw-capture {
    display: none; /* revealed by js/email-capture.js */
    background: linear-gradient(135deg, #0D0F1A 0%, #1e1b4b 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 1.5rem;
    color: #fff;
    animation: tw-capture-in 0.45s ease-out;
}

.tw-capture.tw-capture--visible {
    display: block;
}

@keyframes tw-capture-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Copy
   ======================================== */

.tw-capture__eyebrow {
    margin: 0 0 0.35rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tw-capture__heading {
    margin: 0 0 0.5rem 0;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.tw-capture__subtext {
    margin: 0 0 1.25rem 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #c7d2fe;
}

.tw-capture__list {
    margin: 0 0 1.25rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tw-capture__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #e0e7ff;
    line-height: 1.45;
}

.tw-capture__tick {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #818cf8;
}

/* ========================================
   Form
   ======================================== */

.tw-capture__form {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.tw-capture__input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #0D0F1A;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.15s ease;
}

.tw-capture__input::placeholder {
    color: #9ca3af;
}

.tw-capture__input:focus {
    outline: none;
    border-color: #6366F1;
}

.tw-capture__input.tw-capture__input--error {
    border-color: #f87171;
}

.tw-capture__button {
    flex: 0 0 auto;
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #6366F1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tw-capture__button:hover:not(:disabled) {
    background: #4f46e5;
}

.tw-capture__button:active:not(:disabled) {
    transform: translateY(1px);
}

.tw-capture__button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ========================================
   Messages
   ======================================== */

.tw-capture__message {
    margin: 0.75rem 0 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    min-height: 1.2em;
}

.tw-capture__message--error {
    color: #fca5a5;
}

.tw-capture__message--success {
    color: #86efac;
}

.tw-capture__privacy {
    margin: 0.75rem 0 0 0;
    font-size: 0.75rem;
    color: #818cf8;
    line-height: 1.45;
}

/* ========================================
   Success state
   ======================================== */

.tw-capture__success {
    display: none;
    text-align: left;
}

.tw-capture--done .tw-capture__form,
.tw-capture--done .tw-capture__list,
.tw-capture--done .tw-capture__subtext,
.tw-capture--done .tw-capture__privacy {
    display: none;
}

.tw-capture--done .tw-capture__success {
    display: block;
}

.tw-capture__success-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: #86efac;
}

/* ========================================
   Mobile
   ======================================== */

@media (max-width: 640px) {
    .tw-capture {
        padding: 1.375rem;
    }

    .tw-capture__heading {
        font-size: 1.0625rem;
    }

    .tw-capture__form {
        flex-direction: column;
    }

    .tw-capture__input,
    .tw-capture__button {
        width: 100%;
        flex: 1 1 auto;
    }
}
