/* Davies Newsletter Bar — Sticky bottom signup */

.dnb-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 48px;
    background: #0a1628;
    border-top: 1px solid rgba(251, 142, 40, 0.3);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hidden state — slides below viewport */
.dnb-bar--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Dismissed state — fully removed */
.dnb-bar--dismissed {
    display: none !important;
}

.dnb-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.dnb-bar__text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.dnb-bar__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dnb-bar__input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    padding: 6px 12px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dnb-bar__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.dnb-bar__input:focus {
    border-color: #FB8E28;
    background: rgba(255, 255, 255, 0.12);
}

.dnb-bar__btn {
    background: #FB8E28;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.dnb-bar__btn:hover {
    background: #e07a1e;
}

.dnb-bar__btn:active {
    transform: scale(0.97);
}

.dnb-bar__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dnb-bar__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.dnb-bar__close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Success state */
.dnb-bar--success .dnb-bar__text {
    color: #4ade80;
    font-weight: 600;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .dnb-bar {
        height: auto;
        min-height: 60px;
        padding: 8px 0;
    }

    .dnb-bar__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0 40px 0 12px;
    }

    .dnb-bar__text {
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

    .dnb-bar__form {
        width: 100%;
        justify-content: center;
    }

    .dnb-bar__input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 14px;
    }

    .dnb-bar__btn {
        font-size: 13px;
        padding: 7px 14px;
    }

    .dnb-bar__close {
        position: absolute;
        top: 4px;
        right: 6px;
    }
}
