/* === Styles CSS du formulaire visiteur BWS === */

#bws-formulaire-visiteur {
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    font-family: sans-serif;
}

#bws-formulaire-visiteur label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

#bws-formulaire-visiteur input,
#bws-formulaire-visiteur select,
#bws-formulaire-visiteur textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

#bws-formulaire-visiteur textarea {
    resize: vertical;
    min-height: 100px;
}

#char_count {
    font-size: 12px;
    color: #fff;
    text-align: right;
    margin-top: -16px;
    margin-bottom: 16px;
    position: absolute;
    bottom: -13px;
    right: 2px;
    font-weight: bold;
}

#bws-formulaire-visiteur button[type="submit"] {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

#bws-formulaire-visiteur button[type="submit"]:hover {
    background-color: #1e40af;
}

#bws-form-message {
    margin-top: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 640px) {
    #bws-formulaire-visiteur {
        padding: 1rem;
    }
}

/* Radio et checkbox inline */
#bws-formulaire-visiteur input[type="radio"],
#bws-formulaire-visiteur input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

#bws-formulaire-visiteur label input {
    display: inline-block;
    width: auto;
    margin-right: 8px;
}

/* Style reCAPTCHA */
.g-recaptcha {
    margin: 1rem 0;
}
.blocformcontact {
    width:80%;
    height:auto;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 88%, 50% 75%, 0% 75%);
    background-color:orange;
    padding-bottom:19%;
    margin:130px auto;
    position:relative;
}
.blocformcontact form { background-color: transparent;}
table#tabformbws {
    width:90%;
    height:auto;
    margin:30px auto;
}
table#tabformbwsplus {
    width:100%;
    height:auto;
    margin:0px auto;
}
table#tabformbws input,
table#tabformbws select { max-width:90%;}
select#bws_service {margin-top:23px;}
.tdcharcountdesc {position:relative;}
#bws-formulaire-visiteur td.tdappel input,
#bws-formulaire-visiteur td.tdappel label,
#bws-formulaire-visiteur td.tdnumero input,
#bws-formulaire-visiteur td.tdnumero label { 
    display: inline-block;
}
#bws-formulaire-visiteur td.tdnumero input { 
    width: 350px;
    margin-left: 20px;
}
#bws-formulaire-visiteur td.tdappel input {
    margin-right: 1px;
    margin-left:5px;
}
#bws-formulaire-visiteur tr#trcheckboxmoment label { font-size:12px; font-weight:500; }
#bws-formulaire-visiteur tr#trcheckboxmoment td.tdhoraireprecis label,
#bws-formulaire-visiteur tr#trcheckboxmoment td.tdhoraireprecis select{ display:inline-block; }
#bws-formulaire-visiteur tr#trcheckboxmoment td.tdhoraireprecis select { width:100px; }
div#jours_rappel {
    display:flex;
    font-size:12px;
    font-weight:500;
    margin-top: 5px;
    justify-content: space-evenly;
}
div#jours_rappel .displaydatedispo { margin-right:20px; }
div#jours_rappel .displaydatedispo input { margin-right:5px; margin-top:0px; }
div#jours_rappel .displaydatedispo label { margin-top:0px; }
div#jours_rappel .displaydatedispo input,
div#jours_rappel .displaydatedispo label { display:inline-block; }

.thumbs-up-container {
    position:absolute;
    width: 400px;
    height:400px;
    top: calc(50% - 270px);
    left: calc(50% - 200px);
    clip-path: circle(50% at 50% 50%);
    background-color:#77bc1891;
    z-index:100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.thumbs-up-container.visible {
    opacity: 1;
    animation: popUp 0.5s ease-out;
}

@keyframes popThumb {
    0% {
        transform: scale(0.7) rotate(-10deg);
        opacity: 0.5;
    }
    60% {
        transform: scale(1.15) rotate(6deg);
        opacity: 1;
    }
    80% {
        transform: scale(0.97) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseCircle {
    0% {
        r: 0;
        opacity: 0.5;
    }
    70% {
        r: 32;
        opacity: 0.3;
    }
    100% {
        r: 40;
        opacity: 0;
    }
}

/* Pour que le cercle pulse derrière le pouce */
.thumbs-up-svg .pulse {
    transform-origin: 32px 32px;
}

.thumbs-up-svg {
    position: absolute;
    top: 37px;
    left: 24px;
    width: 350px;
    height: 350px;
    display: block;
}

.form-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full {
    flex: 0 0 100%;
}

.half {
    flex: 0 0 50%;
}

.third {
    flex: 0 0 33.33%;
}

label {
    margin-bottom: 0.3rem;
    font-weight: bold;
}

input,
textarea,
select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type="submit"] {
    padding: 0.8rem 1.2rem;
    background-color: #0063a5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    max-width:250px;
}

.btnsubmitform button {
    margin: 0 auto 40px auto;
    min-width: 200px;
}

.forcountercontainer {
    position:relative;
}
@media screen and (max-width: 480px) {
    .blocformcontact { width: 96%; margin: 80px auto; clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 75% 95%, 75% 100%, 58% 95%, 0 95%); }
    div#jours_rappel { flex-wrap: wrap; }
    #bws-formulaire-visiteur textarea { min-height: 250px; }
    div#jours_rappel .displaydatedispo { margin-bottom: 15px; }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .half,
    .third {
        flex: 1 0 100%;
    }
}

