/* assets/css/style.css */

/* --- Container --- */
.fluentcrm-bridge-form {
    max-width: 450px; /* Kept to maintain readable input lengths */
    width: 100%;
}

.fluentcrm-bridge-wrapper {
    background: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin: 40px auto;
}

.fluentcrm-bridge-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center; 
}

/* --- Image (3D Mockup) --- */
.fluentcrm-img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.fluentcrm-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.fluentcrm-img img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* --- Form Column --- */
.fluentcrm-form-col {
    flex: 1;
    min-width: 300px;
}

/* --- Typography --- */
.fluentcrm-form-headline {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 12px;
    color: #2C3E50;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.fluentcrm-form-desc {
    font-size: 1.02em;
    color: #596A7A;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* --- Inputs --- */
.fluentcrm-field-row {
    margin-bottom: 10px;
}

.fluentcrm-input {
  width: 100%;
  padding: 16px 20px !important;
  border: 1px solid #BDC3C7 !important;
  background-color: #FFFFFF !important;
  border-radius: 8px !important;
  font-size: 16px;
  font-weight: 500;
  color: #333 !important;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.fluentcrm-input::placeholder {
    color: #9EABB8;
}

.fluentcrm-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* Modern stealth honeypot that bypasses bot detection and screen readers */
.fluentcrm-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none; 
}

/* --- Consent & Disclaimer --- */
.fluentcrm-consent-row {
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #666;
}

.fluentcrm-consent-row label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fluentcrm-disclaimer {
    margin-top: 10px;
    font-size: 0.85em;
    color: #7F8C8D;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --- Button --- */
.fluentcrm-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background-color: #34495E; 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.fluentcrm-submit-btn:hover {
    background-color: #2C3E50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

.fluentcrm-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.fluentcrm-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.fluentcrm-submit-btn:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* --- Messages --- */
.fluentcrm-msg {
    display: none;
    margin-top: 10px;
    font-weight: bold;
}

/* --- WhatsApp Bridge Styles --- */
.wa-bridge-box {
    text-align: center;
    padding: 30px;
    background: #e8f5e9;
    border: 2px solid #25D366;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.wa-title {
    margin-top: 0;
    color: #128C7E;
}

.wa-subtitle {
    margin-bottom: 20px;
}

.wa-btn {
    display: none;
    background: #25D366;
    color: #fff;
    padding: 16px 26px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.wa-qr-box {
    display: none;
}

.wa-qr-target {
    margin: 0 auto;
    width: 220px;
    display: flex;
    justify-content: center;
}

.wa-qr-target img {
    margin: 0 auto; 
}

.wa-note {
    margin-top: 20px;
    color: #444;
    font-size: 0.95em;
    background: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
}

.wa-divider {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.fluentcrm-wa-empty {
    text-align: center;
    color: #777;
}

/* --- Exit Intent Slide-in --- */
.fluentcrm-slidein-popup {
    position: fixed;
    bottom: 20px;
    right: -500px;
    width: 100%;
    max-width: 450px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    background: #fff;
    transition: right 0.4s ease-in-out;
    display: none;
}

.fluentcrm-slidein-popup.show {
    right: 20px;
}

.fluentcrm-slidein-close {
    position: absolute;
    top: 10px;
    right: 0;
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.fluentcrm-slidein-close:hover {
    background: none;
    color: #50A56F;
}

/* Strip outer padding/borders from the form when inside the slide-in */
.fluentcrm-slidein-popup .fluentcrm-bridge-wrapper {
    background: transparent;
    border: none;
    padding: 20px;
    margin: 0;
    box-shadow: none;
}

.fluentcrm-slidein-popup .fluentcrm-headline-avantpartir {
    flex: 0 0 100%; 
    text-align: center; 
    font-size: 1.8em; 
    font-weight: 800; 
    color: #2C3E50; 
    margin-bottom: -15px;
    font-family: "Montserrat", sans-serif;
}

.fluentcrm-slidein-popup .fluentcrm-img {
  display: flex;
  align-content: center;
  justify-content: center;
}

.fluentcrm-slidein-popup .fluentcrm-img img {
    max-height: 200px;
    width: auto;
}

/* --- Mobile Responsive Logic --- */
@media (max-width: 767px) {
    .wa-btn { display: inline-block; font-size: 1.1rem!important; padding: 18px 20px!important;}
	.wa-bridge-box { padding: 16px!important; }

    /* Reverse the layout to put the form on top of the image */
    .fluentcrm-text-only-layout .fluentcrm-bridge-inner {
        flex-direction: column-reverse;
    }

    /* Add a little breathing room above the image since it's now at the bottom */
    .fluentcrm-text-only-layout .fluentcrm-img {
        margin-top: 15px;
    }

    .fluentcrm-text-only-layout .fluentcrm-form-col {
        min-width: unset;
    }

    .fluentcrm-callout-box {
        padding: 20px 20px!important;
    }

    .fluentcrm-text-only-layout {
        padding-left: 20px!important;
        padding-right: 20px!important;
    }

    /* Give the content more horizontal space on small screens */
    .fluentcrm-bridge-wrapper {
        padding: 25px 20px; 
        margin: 20px auto; /* Slightly less margin on the outside too */
    }

    /* Slightly reduce the headline size to prevent awkward word breaks */
    .fluentcrm-form-headline {
        font-size: 1.4em; 
    }
    
    /* Optional: Center the text on mobile for a more balanced "card" look */
    .fluentcrm-form-col {
        text-align: center;
    }
    
    /* Ensure the disclaimer is also centered if you center the text */
    .fluentcrm-disclaimer {
        justify-content: center;
    }

}

/* -- Desktop specific CSS --- */
@media (min-width: 768px) {
    .wa-qr-box { display: block; }
    .fluentcrm-slidein-popup { display: block; } 

.fluentcrm-fields-wrap {
        display: flex;
        flex-direction: column; 
        gap: 12px;
    }
    
    .fluentcrm-field-row {
        width: 100%; 
        margin-bottom: 0;
    }
    
    .fluentcrm-submit-btn {
        width: 100%;
    }
    
    .fluentcrm-consent-row,
    .fluentcrm-disclaimer {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 0;
    }
    
    .fluentcrm-disclaimer {
        text-align: left; 
        justify-content: center;
    }
}

/* --- Text Only Inline Callout (Accordion) --- */
.fluentcrm-callout-box {
    background: #FAFAFA;
    border-left: 4px solid #2d634a;
    padding: 20px 25px;
    margin: 35px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05em;
    line-height: 1.6;
}

.fluentcrm-callout-teaser {
    margin-bottom: 12px;
    color: #333;
}

.fluentcrm-callout-teaser p:last-child {
    margin-bottom: 0;
}

.fluentcrm-accordion-toggle {
    background: none;
    border: none;
    color: #2d634a;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    font-family: inherit;
}

.fluentcrm-accordion-toggle:hover {
    color: #2C3E50;
    background: none!important;
}

.fluentcrm-accordion-toggle:focus,
.fluentcrm-accordion-toggle:active,
.fluentcrm-accordion-toggle:focus-visible {
    background: transparent !important;
    color: #2d634a !important;
    box-shadow: none !important;
    outline: none !important;
}

.fluentcrm-toggle-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1.1em;
}

/* Modifiers when inside the Text Only Layout */
.fluentcrm-text-only-layout {
    margin: 20px 0 0 0; 
    padding: 25px; 
    background: #ffffff; 
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* Anchors the description since the headline is hidden */
.fluentcrm-text-only-layout .fluentcrm-form-desc {
    font-weight: 600; 
    color: #2C3E50;
    font-size: 1.1em;
    margin-bottom: 20px;
}