.sycow-framework-form {
    width: 100%;
    margin: 0;
    padding: var(--sy-form-container-padding);
    background: var(--sy-form-container-background);
    border: var(--sy-form-container-border);
    border-radius: var(--sy-form-container-radius);
    box-shadow: var(--sy-form-container-shadow);
    box-sizing: border-box;
}

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

.sycow-framework-form .sycow-form-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap:
        var(--sy-form-row-gap)
        var(--sy-form-column-gap);
}

.sycow-framework-form .sycow-form-row {
    min-width: 0;
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="25%"] {
    flex: 0 0 calc(25% - (var(--sy-form-column-gap) * .75));
    width: calc(25% - (var(--sy-form-column-gap) * .75));
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="33.33%"] {
    flex: 0 0 calc(33.333% - (var(--sy-form-column-gap) * .666));
    width: calc(33.333% - (var(--sy-form-column-gap) * .666));
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="50%"] {
    flex: 0 0 calc(50% - (var(--sy-form-column-gap) / 2));
    width: calc(50% - (var(--sy-form-column-gap) / 2));
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="66.66%"] {
    flex: 0 0 calc(66.666% - (var(--sy-form-column-gap) * .333));
    width: calc(66.666% - (var(--sy-form-column-gap) * .333));
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="75%"] {
    flex: 0 0 calc(75% - (var(--sy-form-column-gap) * .25));
    width: calc(75% - (var(--sy-form-column-gap) * .25));
}

.sycow-framework-form
.sycow-form-row[data-sycow-width="100%"],
.sycow-framework-form .sycow-rgpd-row {
    flex: 0 0 100%;
    width: 100%;
}

.sycow-framework-form .sycow-label {
    display: block;
    margin: var(--sy-form-label-margin);
    color: var(--sy-form-label-color);
    font-size: var(--sy-form-label-size);
    font-weight: var(--sy-form-label-weight);
    line-height: 1.4;
}

.sycow-framework-form .sycow-form-help {
    display: block;
    margin: 0 0 6px;
    color: var(--sy-form-help-color);
    font-size: var(--sy-form-help-size);
    line-height: 1.5;
}

.sycow-framework-form input[type="text"],
.sycow-framework-form input[type="email"],
.sycow-framework-form input[type="tel"],
.sycow-framework-form input[type="url"],
.sycow-framework-form input[type="password"],
.sycow-framework-form input[type="number"],
.sycow-framework-form input[type="date"],
.sycow-framework-form input[type="time"],
.sycow-framework-form input[type="datetime-local"],
.sycow-framework-form select,
.sycow-framework-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--sy-form-field-height);
    margin: 0;
    padding: var(--sy-form-field-padding);
    color: var(--sy-form-field-color);
    background: var(--sy-form-field-background);
    border: var(--sy-form-field-border);
    border-radius: var(--sy-form-field-radius);
    box-shadow: none;
    outline: none;
    font: inherit;
    font-size: var(--sy-form-field-font-size);
    line-height: 1.4;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.sycow-framework-form textarea {
    min-height: var(--sy-form-textarea-height);
    height: var(--sy-form-textarea-height);
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.sycow-framework-form input::placeholder,
.sycow-framework-form textarea::placeholder {
    color: var(--sy-form-field-placeholder);
    opacity: 1;
}

.sycow-framework-form input:focus,
.sycow-framework-form select:focus,
.sycow-framework-form textarea:focus {
    border-color: var(--sy-form-field-focus-border);
    box-shadow: var(--sy-form-field-focus-shadow);
}

.sycow-framework-form input[type="checkbox"],
.sycow-framework-form input[type="radio"] {
    flex: 0 0 auto;
    width: var(--sy-form-choice-size);
    height: var(--sy-form-choice-size);
    margin: 0;
    accent-color: var(--sy-form-choice-color);
}

.sycow-framework-form .sycow-rgpd-row label,
.sycow-framework-form .sycow-checkbox-label,
.sycow-framework-form .sycow-radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--sy-form-field-color);
    font-size: var(--sy-form-label-size);
    line-height: 1.5;
}

.sycow-framework-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sy-form-button-width);
    min-height: 46px;
    margin-top: 8px;
    padding: var(--sy-form-button-padding);
    color: var(--sy-form-button-color);
    background: var(--sy-form-button-background);
    border: 0;
    border-radius: var(--sy-form-button-radius);
    cursor: pointer;
    font: inherit;
    font-size: var(--sy-form-button-font-size);
    font-weight: var(--sy-form-button-weight);
    line-height: 1.2;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.sycow-framework-form button[type="submit"]:hover,
.sycow-framework-form button[type="submit"]:focus-visible {
    color: var(--sy-form-button-hover-color);
    background: var(--sy-form-button-hover);
    transform: translateY(-1px);
}

.sycow-framework-form button[type="submit"]:active {
    transform: translateY(0);
}

.sycow-framework-form [aria-invalid="true"] {
    border-color: #d92d20;
}

@media (max-width: 768px) {
    .sycow-framework-form .sycow-form-grid {
        gap: var(--sy-form-row-gap);
    }

    .sycow-framework-form .sycow-form-row,
    .sycow-framework-form
    .sycow-form-row[data-sycow-width] {
        flex: 0 0 100%;
        width: 100%;
    }

    .sycow-framework-form button[type="submit"] {
        width: 100%;
    }
}




/*
|--------------------------------------------------------------------------
| Popup de résultat
|--------------------------------------------------------------------------
*/

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

.sycow-form-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sycow-form-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .55);
    backdrop-filter: blur(5px);
    animation: sycow-form-fade .25s ease both;
}

.sycow-form-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 42px 34px 34px;
    border-radius: 28px;
    background: #ffffff;
    color: var(--sy-form-field-color);
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
    animation: sycow-form-popup .3s ease both;
}

.sycow-form-modal-close {
    position: absolute;
    top: 15px;
    right: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #555555;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.sycow-form-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
}

.sycow-form-modal-icon.is-success {
    background: #4f9d69;
}

.sycow-form-modal-icon.is-error {
    background: #c95555;
}

.sycow-form-modal-dialog h2 {
    margin: 0 0 15px;
    color: var(--sy-form-field-color);
    font-size: 30px;
    line-height: 1.2;
}

.sycow-form-modal-message {
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

.sycow-form-modal-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: #f7f7f7;
}

.sycow-form-modal-contact span {
    color: #666666;
    font-size: 14px;
}

.sycow-form-modal-contact a {
    color: var(--sy-form-button-background);
    font-weight: 800;
    text-decoration: none;
}

.sycow-form-modal-button {
    width: 100%;
    min-height: 52px;
    margin-top: 25px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--sy-form-button-background);
    color: var(--sy-form-button-color);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.sycow-form-modal-button:hover,
.sycow-form-modal-button:focus-visible {
    background: var(--sy-form-button-hover);
    color: var(--sy-form-button-hover-color);
    transform: translateY(-1px);
}

@keyframes sycow-form-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sycow-form-popup {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .sycow-form-modal-dialog {
        padding: 40px 22px 26px;
        border-radius: 22px;
    }

    .sycow-form-modal-dialog h2 {
        font-size: 25px;
    }
}




.sycow-form-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}







/* =========================================================
   Loader formulaire Sycow
   ========================================================= */

.sycow-form-loader{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.sycow-form-loader.is-visible{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}

.sycow-form-loader__backdrop{
    position:absolute;
    inset:0;
    background:rgba(20,20,20,.42);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.sycow-form-loader__box{
    position:relative;
    z-index:1;
    width:min(100%,420px);
    padding:34px 30px;
    border-radius:24px;
    background:#fff;
    color:#222;
    text-align:center;
    box-shadow:
        0 24px 70px rgba(0,0,0,.18);
}

.sycow-form-loader__spinner{
    width:42px;
    height:42px;
    margin:0 auto 20px;
    border:3px solid rgba(0,0,0,.1);
    border-top-color:currentColor;
    border-radius:50%;
    animation:
        sycow-form-loader-spin .75s linear infinite;
}

.sycow-form-loader__box strong{
    display:block;
    margin:0;
    font-size:20px;
    line-height:1.3;
    font-weight:800;
}

.sycow-form-loader__box p{
    margin:10px 0 0;
    font-size:14px;
    line-height:1.6;
    opacity:.78;
}

.sycow-form-loader__box small{
    display:block;
    margin-top:12px;
    font-size:12px;
    line-height:1.5;
    opacity:.55;
}

.sycow-form-is-submitting{
    overflow:hidden;
}

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

@media(max-width:600px){

    .sycow-form-loader{
        padding:16px;
    }

    .sycow-form-loader__box{
        padding:30px 22px;
        border-radius:20px;
    }

}

/* =========================================================
   Vérification humaine Sycow
   ========================================================= */
.sycow-human-check {
    width: 100%;
    margin: 18px 0 12px;
}

.sycow-human-check[hidden] {
    display: none !important;
}

.sycow-human-check__card {
    width: 100%;
    overflow: hidden;
    border: var(--sy-form-security-border);
    border-radius: var(--sy-form-security-radius);
    background: var(--sy-form-security-background);
}

.sycow-human-check__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: var(--sy-form-security-border);
}

.sycow-human-check__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--sy-form-security-icon-color);
    border: 1px solid currentColor;
    border-radius: 9px;
}

.sycow-human-check__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sycow-human-check__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.sycow-human-check__title {
    margin: 0;
    color: var(--sy-form-security-title-color);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.sycow-human-check__subtitle {
    color: var(--sy-form-security-text-color);
    font: inherit;
    font-size: 11px;
    line-height: 1.35;
}

.sycow-human-check__body {
    padding: 13px 14px 14px;
}

.sycow-human-check__label {
    display: block;
    margin: 0 0 9px;
    color: var(--sy-form-security-title-color);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.sycow-human-check__input {
    width: min(100%, 210px) !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 13px !important;
    border: var(--sy-form-field-border) !important;
    border-radius: var(--sy-form-field-radius) !important;
    background: var(--sy-form-security-input-background) !important;
    color: var(--sy-form-field-color) !important;
    font: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    box-shadow: none;
    box-sizing: border-box;
}

.sycow-human-check__input:focus {
    outline: none !important;
    border-color: var(--sy-form-field-focus-border) !important;
    box-shadow: var(--sy-form-field-focus-shadow) !important;
}

.sycow-human-check__help {
    display: block;
    margin-top: 7px;
    color: var(--sy-form-security-text-color);
    font: inherit;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .sycow-human-check {
        margin-top: 16px;
    }

    .sycow-human-check__header,
    .sycow-human-check__body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sycow-human-check__input {
        width: 100% !important;
    }
}

.sycow-human-check__placeholder-text {
    padding: 10px 14px 12px;
    color: var(--sy-form-security-text-color);
    font: inherit;
    font-size: 11px;
    line-height: 1.45;
}
