/* ==========================================================
   CHOCO BONTÉ – NEWSLETTER v3
   Vlastní HTML/POST formulář napojený přímo na Ecomail
========================================================== */

:root{
    --cbn-primary:#c70342;
    --cbn-primary-dark:#9f0035;
    --cbn-white:#fff;
    --cbn-radius:28px;
}

.cb-newsletter{
    width:100%;
    padding:82px 0 92px;
    background:transparent;
    font-family:Montserrat,Arial,sans-serif;
}

.cb-newsletter__inner{
    width:min(1380px,calc(100% - 96px));
    margin:0 auto;
}

.cb-newsletter__box{
    position:relative;
    overflow:hidden;
    padding:64px 64px 58px;
    border-radius:var(--cbn-radius);
    background:
        radial-gradient(circle at 88% 18%,rgba(255,255,255,.13),transparent 28%),
        radial-gradient(circle at 12% 92%,rgba(255,255,255,.07),transparent 32%),
        linear-gradient(135deg,var(--cbn-primary),var(--cbn-primary-dark));
    box-shadow:0 18px 46px rgba(73,31,44,.14);
    color:#fff;
}

.cb-newsletter__box::before,
.cb-newsletter__box::after{
    content:"";
    position:absolute;
    border-radius:50%;
    pointer-events:none;
}

.cb-newsletter__box::before{
    width:320px;
    height:320px;
    right:-180px;
    top:-160px;
    border:1px solid rgba(255,255,255,.12);
}

.cb-newsletter__box::after{
    width:190px;
    height:190px;
    left:-100px;
    bottom:-110px;
    background:rgba(255,255,255,.035);
}

.cb-newsletter__content,
.cb-newsletter__form-wrap,
.cb-newsletter__success{
    position:relative;
    z-index:2;
}

.cb-newsletter__content{
    max-width:920px;
    margin:0 auto;
    text-align:center;
}

.cb-newsletter__eyebrow{
    display:inline-flex;
    align-items:center;
    margin:0 0 16px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    color:#fff;
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.cb-newsletter__title{
    margin:0 0 16px;
    color:#fff;
    font-size:clamp(34px,4vw,56px);
    line-height:1.05;
    font-weight:800;
    letter-spacing:-.04em;
}

.cb-newsletter__text{
    max-width:720px;
    margin:0 auto 30px;
    color:rgba(255,255,255,.84);
    font-size:16px;
    line-height:1.65;
    font-weight:500;
}

.cb-newsletter__form-wrap{
    max-width:780px;
    margin:0 auto;
}

.cb-newsletter__form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    width:100%;
    margin:0;
}

.cb-newsletter__input{
    width:100%;
    min-width:0;
    height:56px;
    padding:0 23px;
    border:2px solid transparent;
    border-radius:999px;
    background:#fff;
    color:#302529;
    outline:none;
    box-shadow:0 10px 26px rgba(73,31,44,.12);
    box-sizing:border-box;
    font:600 14px/1 Montserrat,Arial,sans-serif;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.cb-newsletter__input::placeholder{
    color:#8b7d82;
    opacity:1;
}

.cb-newsletter__input:focus{
    border-color:#ffd1e0;
    box-shadow:0 0 0 4px rgba(255,209,224,.22),0 10px 26px rgba(73,31,44,.12);
}

.cb-newsletter__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:190px;
    min-height:56px;
    padding:0 25px;
    border:2px solid #fff;
    border-radius:999px;
    background:#fff;
    color:var(--cbn-primary);
    cursor:pointer;
    box-shadow:0 10px 26px rgba(73,31,44,.12);
    font:800 13px/1 Montserrat,Arial,sans-serif;
    white-space:nowrap;
    transition:transform .2s ease,background .2s ease,color .2s ease,opacity .2s ease;
}

.cb-newsletter__button:hover:not(:disabled){
    transform:translateY(-2px);
    background:#f7edf1;
    color:var(--cbn-primary-dark);
}

.cb-newsletter__button:disabled{
    cursor:wait;
    opacity:.72;
}

.cb-newsletter__privacy{
    display:flex;
    align-items:flex-start;
    gap:9px;
    max-width:730px;
    margin:15px auto 0;
    color:rgba(255,255,255,.72);
    font-size:11px;
    line-height:1.5;
    text-align:left;
}

.cb-newsletter__privacy input[type="checkbox"]{
    display:block!important;
    flex:0 0 18px!important;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    margin:1px 0 0!important;
    padding:0!important;
    opacity:1!important;
    visibility:visible!important;
    position:static!important;
    clip:auto!important;
    transform:none!important;
    appearance:auto!important;
    -webkit-appearance:checkbox!important;
    accent-color:#ffffff;
    cursor:pointer;
}

.cb-newsletter__privacy input[type="checkbox"]:focus-visible{
    outline:3px solid rgba(255,255,255,.30)!important;
    outline-offset:3px!important;
}


.cb-newsletter__privacy a{
    color:#fff!important;
    text-decoration:underline;
    text-underline-offset:2px;
}

.cb-newsletter__status{
    min-height:22px;
    margin:14px 0 0;
    color:#fff;
    text-align:center;
    font-size:13px;
    line-height:1.5;
    font-weight:700;
}

.cb-newsletter__status[hidden]{
    display:none;
}

.cb-newsletter__success{
    display:none;
    max-width:720px;
    margin:8px auto 0;
    padding:24px 22px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:22px;
    background:rgba(255,255,255,.10);
    text-align:center;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.cb-newsletter--submitted .cb-newsletter__form-wrap{
    display:none;
}

.cb-newsletter--submitted .cb-newsletter__success{
    display:block;
}

.cb-newsletter__success-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    margin:0 auto 14px;
    border-radius:50%;
    background:#fff;
    color:var(--cbn-primary);
    font-size:23px;
    font-weight:900;
}

.cb-newsletter__success-title{
    margin:0 0 8px;
    color:#fff;
    font-size:22px;
    line-height:1.25;
    font-weight:800;
}

.cb-newsletter__success-text{
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:14px;
    line-height:1.6;
    font-weight:500;
}

.cb-newsletter__frame{
    position:absolute;
    width:1px;
    height:1px;
    border:0;
    opacity:0;
    pointer-events:none;
}

@media(max-width:900px){
    .cb-newsletter__inner{
        width:calc(100% - 48px);
    }

    .cb-newsletter__box{
        padding:54px 40px 48px;
    }
}

@media(max-width:699px){
    .cb-newsletter{
        padding:56px 0 64px;
    }

    .cb-newsletter__inner{
        width:calc(100% - 24px);
    }

    .cb-newsletter__box{
        padding:38px 20px 34px;
        border-radius:22px;
    }

    .cb-newsletter__title{
        font-size:34px;
    }

    .cb-newsletter__text{
        margin-bottom:24px;
        font-size:14px;
    }

    .cb-newsletter__form{
        grid-template-columns:1fr;
        gap:10px;
    }

    .cb-newsletter__input,
    .cb-newsletter__button{
        width:100%;
        min-width:0;
        height:52px;
        min-height:52px;
    }

    .cb-newsletter__privacy{
        font-size:10.5px;
    }
}

@media(prefers-reduced-motion:reduce){
    .cb-newsletter__input,
    .cb-newsletter__button{
        transition:none;
    }
}
