.accu_forms-setup-block-list a{
    color : #222;
}

.accu_forms-setup-panel-body_lhs .accu_forms_blocks_list .ff-each-block{
    position: relative;
    padding: 10px;
}

.accu_forms-setup-panel-body_lhs .accu_forms_blocks_list .ff-block-action{
    position: absolute;
    right: 0;
    top: 10px;
    display: none;
    transition: 400ms;
}

.accu_forms-setup-panel-body_lhs .accu_forms_blocks_list .ff-each-block:hover .ff-block-action{
    display: block;
    transition: 400ms;
}

.accu_forms-setup-panel-body_middle{
     min-height: 70vh;
     padding : 23% 50px;
    /*pointer-events: none;*/
    /*disable text selection*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.accu_forms-setup-block-list__item a {
    display: block;
}
.accu_forms-setup-block-list__item.active{
    background-color: #f2f4f6;
}

.accu_forms-text-input{
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
    border-color: #0a0a0a !important;
    box-shadow: none !important;
}

/** Style input fields */
.ff-center-align,.ff-left-align{
    display: inline;
}
.ff-center-align input,.ff-left-align input{
    visibility: hidden;
    height: 0;
    width: 0;
}
/** Statement image upload sytles */
.ff-statement-wrapper.center{
    display: block;
    margin:0 auto;
    text-align: center;
}
.ff-statement-wrapper.center .ff-statement-image{
    display: block;
    margin:0 auto;
}
.ff-image-preview{
    width: 200px;
    height: 150px;
    padding: 5px;
    position:relative;
}
.ff-image-preview_remove_btn{
    position: absolute;
    top:0;
    right: -40px;
    z-index: 1;
}
.ff-image-preview img{
    width: 100%;
    height: 100%;
}
.ff-statement-image{
    max-width: 400px;
    margin-bottom: 20px;
}
.ff-statement-image img{
    max-width: 100%;
    height: auto;
}
.ff-image-preview.hidden{
    display: none;

}

.accu_forms-textarea{
    min-height: 200px;
}
.accuforms-title-preview{
    color : #0a0a0a;
    font-weight: 500;
    line-height: 1.4;
}

/* The form's own button keeps the colour the firm picked, on a bevelled,
   glossy surface so it matches the rest of the product. */
.ff-submit-button,
.accu_forms-next-button-preview{
    border: 1px solid rgba(126, 93, 23, 0.45);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 31, 61, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ff-submit-button:hover,
.ff-submit-button:focus,
.accu_forms-next-button-preview:hover{
    filter: saturate(1.06) brightness(1.03);
    box-shadow: 0 14px 26px rgba(15, 31, 61, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce){
    .ff-submit-button,
    .accu_forms-next-button-preview{ transition: none; }
    .ff-submit-button:hover,
    .ff-submit-button:focus,
    .accu_forms-next-button-preview:hover{ transform: none; }
}

/** Style for the multiple fields */
.ff-options-wrapper .option{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ff-options-wrapper .option .option__input{
    width: 90%;
}

/* Choice options: each option is a tile with its own mark, in columns that
   divide the options evenly (set inline from accu_forms_choice_columns()).
   The input stays on the page rather than display:none, so the keyboard and
   screen readers reach it. */
.ff-option-tiles{
    display: grid;
    grid-template-columns: repeat(var(--af-cols-narrow, 1), minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 640px){
    .ff-option-tiles{ grid-template-columns: repeat(var(--af-cols, 1), minmax(0, 1fr)); }
}
.ff-option-tiles .ff-option-box{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(110, 100, 150, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    box-shadow: 0 1px 2px rgba(27, 39, 64, 0.05), inset 0 1px 0 #ffffff;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ff-option-tiles .ff-option-box input{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.ff-option-box__mark{
    flex: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(90, 84, 120, 0.55);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(27, 39, 64, 0.1);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ff-option-box:has(input[type="checkbox"]) .ff-option-box__mark{ border-radius: 5px; }
.ff-option-tiles .ff-option-box:hover{
    border-color: color-mix(in srgb, var(--af-accent, #c9a13a) 55%, #ffffff);
}
.ff-option-tiles .ff-option-box:has(input:checked){
    border-color: var(--af-accent, #c9a13a);
    background: color-mix(in srgb, var(--af-accent, #c9a13a) 7%, #ffffff);
    box-shadow: 0 0 0 1px var(--af-accent, #c9a13a), 0 6px 16px color-mix(in srgb, var(--af-accent, #c9a13a) 18%, transparent);
}
.ff-option-box:has(input[type="radio"]:checked) .ff-option-box__mark{
    border-color: var(--af-accent, #c9a13a);
    background: radial-gradient(circle, var(--af-accent, #c9a13a) 0 42%, #ffffff 46%);
}
.ff-option-box:has(input[type="checkbox"]:checked) .ff-option-box__mark{
    border-color: var(--af-accent, #c9a13a);
    background: var(--af-accent, #c9a13a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ff-option-tiles .ff-option-box:has(input:focus-visible){
    outline: 2px solid var(--af-accent, #c9a13a);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
    .ff-option-tiles .ff-option-box,
    .ff-option-box__mark{ transition: none; }
}
@keyframes ffshake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.ff-shake {
    animation: ffshake 0.5s;
}

/** Style for Star Rating */
.accu_forms-rating__stars{
    display: flex;
}
.accu_forms-rating__stars input[type="radio"]{
    display: none;
}
.accu_forms-rating__stars label{
    display: inline-block;
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
}
.accu_forms-rating__stars label {
    color: #ccc; /* Set color */
    cursor: pointer;
}

.accu_forms-rating__stars label:hover,
.accu_forms-rating__stars label.active-star{
    color: #f8d32f; /* Set color */
}

/** opinion scale */
.accu_forms-opinion-scale .label_wrapper{
    display: block;
    min-height: 20px;
}
.accu_forms-opinion-scale .accu_forms-opionion-scale_inner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 10px;
}

.accu_forms-opionion-scale_inner input[type="radio"]{
    display: none;
}

.accu_forms-opionion-scale_inner .accu_forms_opinion_scale_label{
    font-size: 16px;
    background-color: #f2f4f6;
    color: #222;
    padding: 10px 18px;
    outline: none;
    margin-right: 5px;
    border: 1px solid #222;
    transition: 400ms;
}

.accu_forms-opionion-scale_inner .accu_forms_opinion_scale_label:hover,
.accu_forms-opionion-scale_inner .accu_forms_opinion_scale_label.active,
.accu_forms-opionion-scale_inner input[type="radio"]:checked + .accu_forms_opinion_scale_label{
    background-color: #222;
    color: #fff;
    outline: none;
    transition: 400ms;
}


/* Signature block: draw or type, then a full name and the consent line. */
.af-sign {
    --af-sign-edge: var(--a1-border-strong, rgba(163, 144, 200, 0.35));
    --af-sign-accent: var(--a1-purple-ink, #550672);
    display: grid;
    gap: 10px;
    max-width: 560px;
}
.af-sign__modes {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--af-sign-edge);
    border-radius: 8px;
    background: var(--a1-lavender, #e5e7ff);
    justify-self: start;
}
.af-sign__mode { margin: 0; cursor: pointer; }
.af-sign__mode input { position: absolute; opacity: 0; pointer-events: none; }
.af-sign__mode span {
    display: block;
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--a1-muted, #6b6f86);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.af-sign__mode input:checked + span {
    background: #fff;
    color: var(--af-sign-accent);
    box-shadow: 0 1px 3px rgba(27, 39, 64, .12), inset 0 -2px 0 var(--a1-gold, #c9a13a);
}
.af-sign__mode input:focus-visible + span { outline: 2px solid var(--af-sign-accent); outline-offset: 1px; }
.af-sign__pad {
    position: relative;
    border: 3px double var(--af-sign-edge);
    border-radius: 10px;
    background:
        linear-gradient(transparent calc(100% - 38px), var(--af-sign-edge) calc(100% - 38px), var(--af-sign-edge) calc(100% - 37px), transparent calc(100% - 37px)),
        linear-gradient(180deg, #fff, #faf9ff);
    box-shadow: inset 0 1px 2px rgba(27, 39, 64, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.af-sign__pad:focus-within,
.af-sign__pad:hover { border-color: var(--a1-lavender-deep, #b9a8e0); box-shadow: inset 0 1px 2px rgba(27, 39, 64, .06), 0 0 0 4px rgba(185, 168, 224, .18); }
.af-sign.is-signed .af-sign__pad { border-color: var(--a1-gold, #c9a13a); }
.af-sign__canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.af-sign.is-typed .af-sign__canvas { cursor: default; }
.af-sign.is-typed .af-sign__actions { display: none; }
.af-sign__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.af-sign__btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--af-sign-edge);
    border-radius: 6px;
    background: rgba(255, 255, 255, .9);
    color: var(--a1-muted, #6b6f86);
    transition: color .2s ease, border-color .2s ease;
}
.af-sign__btn:hover,
.af-sign__btn:focus-visible { color: var(--af-sign-accent); border-color: var(--af-sign-accent); outline: none; }
.af-sign__label { margin: 0; font-weight: 500; }
.af-sign__consent { margin: 0; font-size: 12px; color: var(--a1-muted, #6b6f86); }
.af-logo-upload__preview { display: block; max-height: 48px; max-width: 200px; margin-bottom: 8px; }
.af-duplicate-rules[hidden], .af-logo-upload[hidden] { display: none !important; }
.af-sign-evidence { display: block; margin-top: 4px; font-size: 12px; color: var(--a1-muted, #6b6f86); }
.af-sign-image { max-width: 240px; max-height: 110px; border: 1px solid var(--a1-border, #e4e1ef); border-radius: 6px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
    .af-sign__mode span, .af-sign__pad, .af-sign__btn { transition: none; }
}

.ff-submit-button{
    font-size:18px;
}

/** Style for the Design and configuration section */
.ff-section{
    background-color: #f1f5f9;
    padding : 5px 10px;
    margin-bottom: 20px;
}

.ff-section_title{
    font-size: 14px;
}

/** Style logic section */
.accu_forms_block_logic_wrapper_each{
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.accu_forms_block_logic_wrapper_each .accu_forms-remove-logic-btn{
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    display: none;
    transition: 800ms;
}

.accu_forms_block_logic_wrapper_each:hover .accu_forms-remove-logic-btn{
    display: block;
    transition: 800ms;
}

.accu_forms-condition-wrapper_each{
    margin-top: 10px;
    border-top: 3px dotted #ccc;
    padding-top: 20px;
}
/** hide the first .accu_forms_block_logic_wrapper_each button coditionr */
.accu_forms-condition-wrapper_each:first-child{
    border-top: 0 dotted #ccc;
    padding-top: 5px;
}
.accu_forms-condition-wrapper_each:first-child .accu_forms-next-condition-wrapper{
    display: none;
}

.block-logic-content .ff-each-block{
    width: auto;
    border: 1px solid #ccc;
    pointer-events: none;
    display: inline-block;
}

/** thank you spinner */
.ff-thankyou-wrapper{
    font-size: 1rem;
}
/* Define the animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Apply the animation to the spinner icon */
.ff-thankyou-wrapper-redirect-block .fa-spinner {
    animation: spin 2s linear infinite;
    font-size: 30px;
}

/** Style for share form */
.accu_forms-share-wrapper svg{
    height: 50px;
    max-width: 40px;
}

.accu_forms-share-wrapper .accu_forms-code-wrapper {
    padding: 20px;
    background-color: rgb(31 41 55);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.accu_forms-share-wrapper .accu_forms-code-wrapper code{
    color: #fff;
    background-color: rgb(31 41 55);
    overflow-wrap: break-word;
}

.accu_forms-share-wrapper .accu_forms-code-wrapper .ff-copy-code-btn {
    position: absolute;
    right: 10px;
    color: #fff;
}

/** The client content */
.accu_forms_client{
    background-color: #fff;
}
.accu_forms-client-block-container{
    justify-content: center;
    align-items: center;
    height:90vh;
    margin-left: auto;
    margin-right: auto;
    min-width: 600px;
    max-width: 70px;
    background-color: #fff;
    padding: 8% 20px;
}

.accu_forms-navigation .logo{
    margin-top: 0;
}

.accu_forms-client-block-container .accu_forms-desc-preview {
    font-size: 1rem;
}

.accu_forms-client-block-container .accuforms-title-preview {
    font-size: 1.5rem;
}

.accu_forms-client-block-container #dropzoneDragArea, .dropzoneDragArea {
    background-color: #fff;
    border: 1px dashed #93c5fd;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.accu_forms-progress-bar{
    width: 100%;
    height: 5px;
    background-color: #22344f;
    margin-bottom: 10px;
    position: fixed;
    top: 0;
}

/** Style for client dropzone
 */

.accu_forms-client-block-container .dz-preview{
    max-width: 200px;
    display: inline-block;
    margin : 10px
}

.accu_forms-client-block-container .dropzone-previews {
    /**overflow scroll y */
    max-height: 200px;
    overflow-y: scroll;
}

.accu_forms-client-block-container .dz-success-mark,
.accu_forms-client-block-container .dz-error-message,
.accu_forms-client-block-container .dz-size,
.accu_forms-client-block-container .dz-error-mark{
    display: none;
}

#accu_forms-remove-files{
    display: none;
}

.accu_forms-setup-block-list{
    max-height: none;
    overflow-y: visible;
}
/* Floating scroll-to-top on the form editor. */
#accu_forms-scroll-top{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    width: 42px;
    height: 42px;
    border: 1px solid var(--a1-section-border-strong, #d8b85a);
    border-radius: 12px;
    background: #fff;
    color: var(--a1-purple-ink, #550672);
    cursor: pointer;
    box-shadow: var(--a1-shadow-soft, 0 8px 20px rgba(36, 32, 68, .07));
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color .18s ease, box-shadow .18s ease;
}
#accu_forms-scroll-top:hover,
#accu_forms-scroll-top:focus-visible{
    background: var(--a1-lavender, #e5e7ff);
    box-shadow: 0 10px 22px rgba(36, 32, 68, .14);
}

#accu_formsSubmissionAnswers{
    padding : 20px;
}

.accu_forms-single-page-layout{
    max-width: 800px;
    margin : 10px auto;
    border: 2px solid #f2f4f6;
    border-radius: 5px;
}

.accu_forms-single-page-layout .accu_forms-single-page-each-block{
    margin: 15px;
}
.accu_forms-single-page-layout .g-recaptcha>div{
    margin: 0;
}

.accu_forms-single-page-layout .ff-statement-image{
    max-width: 800px;
}

.accu_forms-staff-forms-select{
    max-width: 300px;
}
@media (max-width: 768px) {

    .accu_forms-client-block-container{
        min-width: 100%;
        max-width: 100%;
        background-color: #fff;
        padding: 13% 10px;
    }

    .accu_forms-client-block-container .accuforms-title-preview{
        font-size: 1.2rem;
    }

    .accu_forms-client-block-container .accu_forms-desc-preview{
        font-size: 14px;
    }

    .ff-submit-button{
        font-size: 16px;
    }
}