/* ==========================================================================
   Flavor Hearth Leads Pro - Front-End Styles
   ========================================================================== */

/* Slide-in / Sticky Modal */
.flavor-lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 20, 13, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flavor-lead-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.flavor-lead-modal {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 420px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(44, 30, 18, 0.22), 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e8ded1;
    z-index: 99999;
    transform: translateY(120px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.flavor-lead-modal.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.flavor-lead-modal-header {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3f1a 100%);
    color: #ffffff;
    padding: 22px 20px 18px 20px;
    position: relative;
    text-align: center;
}

.flavor-lead-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.flavor-lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.flavor-lead-modal-icon {
    font-size: 32px;
    margin-bottom: 6px;
    display: inline-block;
}

.flavor-lead-modal-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
    line-height: 1.25;
}

.flavor-lead-modal-sub {
    font-size: 13px;
    color: #dbe7d5;
    margin: 0;
    line-height: 1.4;
}

.flavor-lead-modal-body {
    padding: 20px;
    background: #ffffff;
}

/* Form Styles */
.flavor-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flavor-lead-input-group {
    position: relative;
}

.flavor-lead-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d4c5b3;
    border-radius: 8px;
    font-size: 14px;
    background: #faf7f2;
    color: #2c1e12;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flavor-lead-input:focus {
    outline: none;
    border-color: #2d5a27;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12);
}

.flavor-lead-btn {
    background: linear-gradient(135deg, #c47c2b 0%, #a86217 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(196, 124, 43, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.flavor-lead-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(196, 124, 43, 0.4);
}

.flavor-lead-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.flavor-lead-disclaimer {
    font-size: 11px;
    color: #8c7e6d;
    text-align: center;
    margin: 8px 0 0 0;
}

/* Honeypot field (hidden from real users) */
.flavor-lead-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Success Card */
.flavor-lead-success {
    display: none;
    text-align: center;
    padding: 20px 10px;
}

.flavor-lead-success-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #2d5a27;
}

.flavor-lead-success-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c1e12;
    margin: 0 0 6px 0;
}

.flavor-lead-success-msg {
    font-size: 13px;
    color: #5c4a3b;
    margin: 0;
}

/* Inline Lead Card (Shortcode [flavor_newsletter]) */
.flavor-lead-inline-card {
    background: linear-gradient(135deg, #fdfaf6 0%, #f7efe4 100%);
    border: 2px dashed #d4c5b3;
    border-radius: 14px;
    padding: 28px 24px;
    margin: 32px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.flavor-lead-inline-card .flavor-lead-modal-title {
    color: #2c1e12;
    margin-bottom: 8px;
}

.flavor-lead-inline-card .flavor-lead-modal-sub {
    color: #6b5847;
    margin-bottom: 18px;
}

.flavor-lead-inline-card .flavor-lead-form {
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 540px) {
    .flavor-lead-modal {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}
