.ccv-form{
    --ccv-primary:#1F6F8B;
    --ccv-primary-hover:#195C73;
    --ccv-primary-rgb:31,111,139;
    width:100%;
    box-sizing:border-box;
    padding:clamp(24px,4vw,44px);
    border:1px solid rgba(18,41,61,.12);
    border-radius:22px;
    background:#fff;
    box-shadow:0 14px 38px rgba(18,41,61,.08);
}

.ccv-form *,
.ccv-form *::before,
.ccv-form *::after{
    box-sizing:border-box;
}

.ccv-form__header{
    margin:0 0 28px;
}

.ccv-form__title{
    margin:0 0 8px;
    color:#17364f;
    font-size:clamp(26px,3vw,38px);
    line-height:1.15;
}

.ccv-form__subtitle{
    max-width:720px;
    margin:0;
    color:#5f6b76;
    font-size:16px;
    line-height:1.65;
}

.ccv-form__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.ccv-form__field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.ccv-form__field--full{
    margin-top:20px;
}

.ccv-form label{
    color:#17364f;
    font-size:14px;
    font-weight:700;
    line-height:1.4;
}

.ccv-form__optional{
    color:#74808b;
    font-weight:400;
}

.ccv-form input[type="text"],
.ccv-form input[type="email"],
.ccv-form input[type="tel"],
.ccv-form textarea{
    width:100%;
    min-height:50px;
    margin:0;
    padding:13px 15px;
    border:1px solid #cfd8df;
    border-radius:12px;
    background:#fff;
    color:#172b3a;
    font:inherit;
    line-height:1.45;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.ccv-form textarea{
    min-height:150px;
    resize:vertical;
}

.ccv-form input:focus,
.ccv-form textarea:focus{
    outline:none;
    border-color:var(--ccv-primary);
    box-shadow:0 0 0 4px rgba(var(--ccv-primary-rgb),.14);
}

.ccv-form [aria-invalid="true"]{
    border-color:#b42318;
    box-shadow:0 0 0 4px rgba(180,35,24,.10);
}

.ccv-form__consents{
    display:grid;
    gap:12px;
    margin:22px 0 0;
}

.ccv-form__check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-weight:400 !important;
    cursor:pointer;
}

.ccv-form__check input{
    width:18px;
    height:18px;
    flex:0 0 18px;
    margin:2px 0 0;
    accent-color:var(--ccv-primary);
}


.ccv-form__privacy-link{
    color:var(--ccv-primary);
    text-decoration:underline;
    text-underline-offset:2px;
}

.ccv-form__privacy-link:hover,
.ccv-form__privacy-link:focus{
    color:var(--ccv-primary-hover);
}

.ccv-form__actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    margin-top:26px;
}

.ccv-form .ccv-form__button{
    min-height:50px;
    padding:13px 24px;
    border:0;
    border-radius:999px;
    background:var(--ccv-primary);
    color:#fff;
    font:inherit;
    font-weight:800;
    line-height:1.2;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ccv-form button.ccv-form__button:hover,
.ccv-form button.ccv-form__button:active,
.ccv-form button.ccv-form__button:focus{
    border:0 !important;
    border-radius:999px !important;
    outline:none !important;
    background:var(--ccv-primary-hover) !important;
    color:#fff !important;
    transform:translateY(-2px);
    box-shadow:0 9px 22px rgba(var(--ccv-primary-rgb),.24) !important;
}

.ccv-form button.ccv-form__button:focus-visible{
    border:0 !important;
    border-radius:999px !important;
    outline:none !important;
    box-shadow:0 0 0 4px rgba(var(--ccv-primary-rgb),.28), 0 9px 22px rgba(var(--ccv-primary-rgb),.24) !important;
}

.ccv-form__status{
    margin:0;
    color:#5f6b76;
    font-size:14px;
}

.ccv-form__status.is-error{
    color:#b42318;
}

.ccv-form__status.is-preview{
    color:var(--ccv-primary);
}

.ccv-form__honeypot{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
}

@media (max-width:767px){
    .ccv-form{
    --ccv-primary:#1F6F8B;
    --ccv-primary-hover:#195C73;
    --ccv-primary-rgb:31,111,139;
        border-radius:18px;
    }

    .ccv-form__grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .ccv-form__field--full{
        margin-top:16px;
    }

    .ccv-form .ccv-form__button{
        width:100%;
    }
}

.ccv-form__check--privacy > span{
    display:inline;
    color:#17364f;
    font-size:14px;
    line-height:1.4;
}

.ccv-form__check--privacy label{
    font-weight:400;
    cursor:pointer;
}

.ccv-form button.ccv-form__privacy-link{
    display:inline;
    min-height:0;
    margin:0;
    padding:0;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--ccv-primary) !important;
    font:inherit;
    font-weight:400;
    line-height:inherit;
    text-decoration:underline;
    text-underline-offset:2px;
    cursor:pointer;
    box-shadow:none !important;
}

.ccv-form button.ccv-form__privacy-link:hover,
.ccv-form button.ccv-form__privacy-link:focus{
    color:var(--ccv-primary-hover) !important;
    outline:2px solid transparent !important;
    box-shadow:none !important;
}

body.ccv-form-modal-open{
    overflow:hidden;
}

.ccv-form__modal[hidden]{
    display:none !important;
}

.ccv-form__modal{
    position:fixed;
    z-index:999999;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
}

.ccv-form__modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(10,28,41,.66);
    backdrop-filter:blur(3px);
}

.ccv-form__modal-panel{
    position:relative;
    z-index:1;
    width:min(680px,100%);
    max-height:min(82vh,760px);
    overflow:auto;
    padding:clamp(26px,4vw,42px);
    border-radius:20px;
    background:#fff;
    color:#17364f;
    box-shadow:0 24px 70px rgba(10,28,41,.28);
}

.ccv-form__modal-title{
    margin:0 48px 20px 0;
    color:#17364f;
    font-size:clamp(24px,3vw,32px);
    line-height:1.2;
}

.ccv-form__modal-content p{
    margin:0 0 16px;
    color:#425563;
    font-size:15px;
    line-height:1.7;
}

.ccv-form__modal-content a{
    color:var(--ccv-primary);
    overflow-wrap:anywhere;
}

.ccv-form button.ccv-form__modal-close{
    position:absolute;
    top:16px;
    right:16px;
    width:40px;
    height:40px;
    min-height:0;
    padding:0;
    border:0 !important;
    border-radius:50% !important;
    background:#eef5f7 !important;
    color:#17364f !important;
    font-size:28px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    box-shadow:none !important;
}

.ccv-form__modal-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:24px;
}

.ccv-form button.ccv-form__modal-read{
    min-height:48px;
    padding:12px 24px;
    border:0 !important;
    border-radius:999px !important;
    background:var(--ccv-primary) !important;
    color:#fff !important;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.ccv-form button.ccv-form__modal-read:hover,
.ccv-form button.ccv-form__modal-read:focus{
    background:var(--ccv-primary-hover) !important;
    outline:none !important;
    box-shadow:0 0 0 4px rgba(var(--ccv-primary-rgb),.20) !important;
}

@media (max-width:600px){
    .ccv-form__modal{
        padding:12px;
    }

    .ccv-form__modal-panel{
        max-height:88vh;
        padding:26px 20px 22px;
        border-radius:16px;
    }

    .ccv-form__modal-actions{
        justify-content:stretch;
    }

    .ccv-form button.ccv-form__modal-read{
        width:100%;
    }
}

/* CCV Form 1.0.6: validation and loading states */
.ccv-form__field-error{
    min-height:18px;
    margin:0;
    color:#b42318;
    font-size:13px;
    line-height:1.35;
}

.ccv-form__field-error:empty{
    display:none;
}

.ccv-form__field-error--consent{
    margin:-6px 0 0 28px;
}

.ccv-form .ccv-form__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.ccv-form .ccv-form__button:disabled{
    cursor:wait;
    opacity:.82;
    transform:none !important;
}

.ccv-form__spinner{
    display:none;
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,.45);
    border-top-color:#fff;
    border-radius:50%;
    animation:ccv-form-spin .75s linear infinite;
}

.ccv-form__button.is-loading .ccv-form__spinner{
    display:inline-block;
}

.ccv-form__status.is-success{
    color:#257243;
    font-weight:700;
}

@keyframes ccv-form-spin{
    to{ transform:rotate(360deg); }
}

@media (prefers-reduced-motion:reduce){
    .ccv-form__spinner{ animation-duration:1.5s; }
    .ccv-form .ccv-form__button{ transition:none; }
}
