/* =====================================================
   COMPACT NEWSLETTER — FULL RESPONSIVE (REWRITTEN)
===================================================== */

/* ===== WRAPPERRR ===== */
.acesoftech-newsletter-form.modern-newsletter.compact-height {
    margin: 20px auto;
    max-width: 95%;
    width: 100%;
}

/* ===== CONTAINER ===== */
.newsletter-container.compact-height {
    display: flex;
    min-height: 200px;
    padding: 0;
}

/* ===== CONTENT SIDE ===== */
.newsletter-content.compact-height {
    flex: 1;
    padding: 18px 22px;
}

/* ===== HEADER ===== */
.newsletter-header.compact-height {
    margin-bottom: 15px;
}

.newsletter-title.compact-height {
    font-size: 22px;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}

.newsletter-description.compact-height {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.9;
    text-align: center;
}

/* ===== SEPARATOR ===== */
.content-separator.compact-height {
    margin: 12px 0;
    text-align: center;
}

.content-separator.compact-height span {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #ffcccc);
    border-radius: 1px;
}

/* ===== FORM ===== */
.form-group.compact-height {
    margin-bottom: 14px;
}

.form-label.compact-height {
    font-size: 13px;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
}

/* ===== INPUT ===== */
.input-wrapper.compact-height {
    position: relative;
}

.form-input.compact-height {
    width: 100%;
    padding: 12px 12px 12px 36px;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    color: #333;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.form-input.compact-height::placeholder {
    color: #999;
}

.form-input.compact-height:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    background: #ffffff;
}

/* ===== INPUT ICON ===== */
.input-icon.compact-height {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #ffffff;
    opacity: 0.8;
    z-index: 1;
}

/* ===== BUTTON ===== */
.submit-button.modern-button.compact-height {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    margin-top: 8px;
    background: maroon;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button.modern-button.compact-height:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.25);
    background: #9f1c31;
}

/* ===== PRIVACY ===== */
.privacy-notice.compact-height {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.3);
    text-align: center;
}

.privacy-notice.compact-height p.compact-height {
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.85;
    margin: 0;
}

.privacy-link.compact-height {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ===== ICON SIDE ===== */
.newsletter-icon-section.compact-height {
    width: 35%;
    background: #9f1c31;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.newsletter-icon.compact-height {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* ===== MESSAGE ===== */
.modern-message.compact-height {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    display: none;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== SPINNER ===== */
.spinner.compact-height {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   📱 TABLET (≤768px)
===================================================== */
@media (max-width: 768px) {

    .newsletter-container.compact-height {
        flex-direction: column;
        min-height: auto;
    }

    .newsletter-icon-section.compact-height {
        width: 100%;
        min-height: 120px;
        padding: 15px;
        order: 1;
    }

    .newsletter-content.compact-height {
        padding: 15px;
        order: 2;
    }

    .newsletter-icon.compact-height {
        max-width: 100px;
    }
}

/* =====================================================
   📱 MOBILE (≤480px) — ULTRA COMPACT
===================================================== */
@media (max-width: 480px) {

    .acesoftech-newsletter-form.modern-newsletter.compact-height {
        margin: 10px auto;
    }

    .newsletter-content.compact-height {
        padding: 12px;
    }

    .newsletter-header.compact-height {
        margin-bottom: 10px;
    }

    .newsletter-title.compact-height {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .newsletter-description.compact-height {
        font-size: 12px;
    }

    .content-separator.compact-height {
        margin: 8px 0;
    }

    .form-group.compact-height {
        margin-bottom: 10px;
    }

    .form-label.compact-height {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .form-input.compact-height {
        padding: 9px 10px 9px 30px;
        font-size: 12px;
    }

    .input-icon.compact-height {
        left: 9px;
        width: 11px;
        height: 11px;
    }

    .submit-button.modern-button.compact-height {
        padding: 10px;
        font-size: 12px;
        margin-top: 6px;
    }

    .privacy-notice.compact-height {
        margin-top: 10px;
        padding-top: 8px;
    }

    .privacy-notice.compact-height p.compact-height {
        font-size: 9px;
    }

    .newsletter-icon-section.compact-height {
        min-height: 90px;
        padding: 10px;
    }

    .newsletter-icon.compact-height {
        max-width: 70px;
    }
}