#qcc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    animation: qcc-fade-in .22s ease
}

@keyframes qcc-fade-in {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes qcc-slide-up {
    from {
        transform: translateY(36px) scale(.96);
        opacity: 0
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

#qcc-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .06);
    animation: qcc-slide-up .28s cubic-bezier(.22, .68, 0, 1.18);
    overflow: hidden;
    text-align: center
}

#qcc-hero {
    display: none;
    background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 60%, #bbf7d0 100%);
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #d1fae5
}

#qcc-hero:before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .12);
    pointer-events: none
}

#qcc-hero:after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .08);
    pointer-events: none
}

#qcc-logo-wrap {
    margin-bottom: 14px;
    position: relative;
    z-index: 1
}

#qcc-logo-wrap img {
    max-height: 52px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .1))
}

#qcc-brand-text {
    display: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #059669;
    margin: 0 0 12px
}

#qcc-hero-headline {
    font-size: 22px;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 6px;
    line-height: 1.25;
    position: relative;
    z-index: 1
}

#qcc-hero-sub {
    font-size: 13px;
    color: #065f46;
    margin: 0 0 16px;
    line-height: 1.55;
    opacity: .8;
    position: relative;
    z-index: 1
}

#qcc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #d1fae5;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06)
}

#qcc-hero-badge svg {
    flex-shrink: 0
}

#qcc-body {
    padding: 24px 28px 26px
}

#qcc-icon {
    margin-bottom: 8px
}

#qcc-icon svg {
    display: block;
    margin: 0 auto
}

#qcc-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3
}

#qcc-subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55
}

#qcc-perks {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden
}

.qcc-perk {
    flex: 1;
    font-size: 11px;
    color: #4b5563;
    text-align: center;
    padding: 9px 4px;
    border-right: 1px solid #e5e7eb;
    line-height: 1.4;
    font-weight: 500
}

.qcc-perk:last-child {
    border-right: none
}

.qcc-perk-icon {
    font-size: 17px;
    display: block;
    margin-bottom: 3px
}

#qcc-form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

#qcc-form input[type=text],
#qcc-form input[type=tel] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    background: #f9fafb;
    color: #111827
}

#qcc-form input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .14);
    background: #fff
}

#qcc-form input::placeholder {
    color: #9ca3af
}

.qcc-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    text-align: left;
    margin-top: -4px
}

#qcc-submit {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .18s;
    margin-top: 2px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .3)
}

#qcc-submit:hover {
    background: #1db954;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .38)
}

#qcc-submit:active {
    transform: scale(.98)
}

#qcc-submit:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed
}

#qcc-skip {
    background: 0 0;
    border: none;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    transition: color .15s;
    text-decoration: underline;
    text-underline-offset: 2px
}

#qcc-skip:hover {
    color: #6b7280
}

#qcc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0, 0, 0, .06);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: background .15s, color .15s;
    z-index: 10
}

#qcc-close:hover {
    background: rgba(0, 0, 0, .12);
    color: #111827
}

.qcc-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto 6px;
    animation: qcc-pop .32s cubic-bezier(.22, .68, 0, 1.4)
}

@keyframes qcc-pop {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

#qcc-privacy {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 12px;
    line-height: 1.4
}

#qcc-modal.qcc-welcome-mode #qcc-hero {
    display: block
}

@media (max-width:480px) {
    #qcc-modal {
        border-radius: 20px
    }
    #qcc-hero {
        padding: 26px 22px 20px
    }
    #qcc-body {
        padding: 20px 22px 22px
    }
    #qcc-hero-headline {
        font-size: 19px
    }
}