/* ERP HubSpot — Newsletter subscription (footer widget only) */

.newsletter-pro {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fd 55%, #e8f4fd 100%);
    border: 1px solid #d4e6f5;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 36px rgba(1, 118, 211, 0.1);
    position: relative;
    overflow: hidden;
}

.newsletter-pro::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(1, 118, 211, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-pro__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.newsletter-pro__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5fad 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(1, 118, 211, 0.28);
}

.newsletter-pro__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-dark-color, #023058);
    margin: 0 0 6px;
    line-height: 1.3;
}

.newsletter-pro__subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: #5a6d7e;
    margin: 0;
}

.newsletter-pro__form-wrap {
    position: relative;
    z-index: 1;
}

.newsletter-pro__field {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #cfe0ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2, 48, 88, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-pro__field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.14);
}

.newsletter-pro__field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    color: var(--primary-color);
    font-size: 15px;
    background: #f4f9fd;
    border-right: 1px solid #e8eef4;
}

.newsletter-pro__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: var(--secondary-dark-color, #023058) !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.newsletter-pro__input::placeholder {
    color: #9aacbc;
}

.newsletter-pro__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto !important;
    min-height: 52px;
    padding: 0 22px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    position: static !important;
    width: auto !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5fad 100%) !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.newsletter-pro__btn:hover {
    background: linear-gradient(135deg, var(--primary-dark-color, #186db1) 0%, #084d8a 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.newsletter-pro__btn i {
    font-size: 13px;
}

.newsletter-pro__btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.newsletter-pro__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12px;
    color: #7a8d9f;
    line-height: 1.4;
}

.newsletter-pro__note i {
    color: #00a86b;
    font-size: 13px;
}

@media (max-width: 991px) {
    .newsletter-pro {
        margin-top: 20px;
        padding: 18px 16px;
    }

    .newsletter-pro__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .newsletter-pro__field {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .newsletter-pro__field:focus-within {
        box-shadow: none;
    }

    .newsletter-pro__field-icon {
        display: none;
    }

    .newsletter-pro__input {
        height: 48px !important;
        border: 1px solid #cfe0ef !important;
        border-radius: 10px !important;
        background: #fff !important;
        padding: 0 14px !important;
    }

    .newsletter-pro__btn {
        width: 100% !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        margin-top: 10px !important;
    }
}
