/* Lead Capture CTA — Frontend Styles */

/* ── CTA Box ─────────────────────────── */

.lcc-cta-box {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    overflow: hidden;
    font-family: inherit;
    position: relative;
    max-width: 100%;
}

.lcc-inline-box {
    margin: 20px 0;
}

.lcc-cta-image {
    width: 100%;
    height: auto;
    display: block;
}

.lcc-cta-content {
    box-sizing: border-box;
}

.lcc-cta-headline {
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.3;
}

.lcc-cta-text {
    margin: 0 0 16px;
    line-height: 1.6;
}

.lcc-open-modal-btn {
    display: inline-block;
    padding: 11px 24px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    line-height: 1;
    letter-spacing: .2px;
}

.lcc-open-modal-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.lcc-open-modal-btn:active {
    transform: translateY(0);
    opacity: 1;
}

/* ── Slide-in ────────────────────────── */

.lcc-slidein-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    width: 320px;
    max-width: calc(100vw - 48px);
}

.lcc-slidein-box {
    animation: lccSlideIn .35s cubic-bezier(.25,.46,.45,.94) both;
}

@keyframes lccSlideIn {
    from { transform: translateX(-110%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

.lcc-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .5;
    padding: 2px 4px;
    z-index: 1;
    transition: opacity .15s;
}
.lcc-close-btn:hover { opacity: 1; }

/* ── Modal Overlay ───────────────────── */

.lcc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: lccFadeIn .2s ease both;
}

@keyframes lccFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lcc-modal-box {
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: lccSlideUp .25s cubic-bezier(.25,.46,.45,.94) both;
    font-family: inherit;
}

@keyframes lccSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.lcc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 2px 4px;
    transition: color .15s;
    z-index: 1;
}
.lcc-modal-close:hover { color: #333; }

.lcc-modal-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #eee;
}

.lcc-modal-title {
    margin: 0 30px 0 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.lcc-modal-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #666;
}

/* ── Form ────────────────────────────── */

.lcc-lead-form {
    padding: 24px 28px 28px;
}

.lcc-field-group {
    margin-bottom: 18px;
}
.lcc-field-group:last-of-type { margin-bottom: 0; }

.lcc-field-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.lcc-req {
    color: #e00;
    font-weight: 700;
    margin-left: 2px;
}

.lcc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

.lcc-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,.15);
}

.lcc-textarea {
    resize: vertical;
    min-height: 90px;
}

.lcc-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Radio & Checkbox groups */
.lcc-radio-group,
.lcc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lcc-radio-label,
.lcc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.lcc-radio-label input,
.lcc-checkbox-label input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: #0073aa;
    cursor: pointer;
}

/* Submit */
.lcc-form-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.lcc-submit-btn {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    letter-spacing: .3px;
    font-family: inherit;
}

.lcc-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.lcc-submit-btn:active { transform: translateY(0); }
.lcc-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Error state */
.lcc-input.lcc-error {
    border-color: #e00;
    box-shadow: 0 0 0 3px rgba(220,0,0,.12);
}

.lcc-form-error {
    background: #fff5f5;
    border: 1px solid #ffc0c0;
    color: #c00;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Loading spinner */
.lcc-submit-btn.lcc-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lccSpin .6s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes lccSpin {
    to { transform: rotate(360deg); }
}

/* Success state */
.lcc-success-message {
    padding: 40px 28px;
    text-align: center;
}

.lcc-success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 16px;
}

.lcc-success-message p {
    font-size: 17px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────── */

@media (max-width: 480px) {
    .lcc-slidein-wrapper {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
    }
    .lcc-slidein-box {
        border-radius: 12px 12px 0 0;
    }
    .lcc-modal-box {
        max-height: 95vh;
    }
    .lcc-modal-header,
    .lcc-lead-form {
        padding-left: 18px;
        padding-right: 18px;
    }
}
