/* ===================================
   KCC FORM : 2 COLUMN DESKTOP
   1 COLUMN MOBILE
=================================== */

@media (min-width:768px){

    form[id^="form-"] .ktc-default-section{
        display:flex;
        flex-wrap:wrap;
        column-gap:18px;
        row-gap:10px;
    }

    /* default = 2 columns */

    form[id^="form-"] .ktc-default-section > .form-field{
        width:calc(50% - 9px);
        margin:0 !important;
        box-sizing:border-box;
    }

    /* full width */

    form[id^="form-"] .ktc-default-section > .form-field:nth-child(3),
    form[id^="form-"] .ktc-default-section > .form-field:nth-child(10),
    form[id^="form-"] .ktc-default-section > .form-field:nth-child(11),
    form[id^="form-"] .ktc-default-section > .form-field:nth-child(12),
    form[id^="form-"] .ktc-default-section > .form-field:nth-child(13),
    form[id^="form-"] .ktc-default-section > .form-field:nth-child(14){
        width:100% !important;
    }

    /* field width */

    form[id^="form-"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    form[id^="form-"] select,
    form[id^="form-"] textarea{
        width:100%;
        box-sizing:border-box;
    }

    /* PDPA */

    .kcc-condition{
        width:100%;
    }

    form[id^="form-"] input[type="checkbox"]{
        width:auto !important;
    }

    /* captcha */

    .kcc-capcha,
    .capcha-relative{
        width:100%;
        text-align:center !important;
    }

    .g-recaptcha{
        display:inline-block;
    }

    /* submit */

    .submit-button{
        display:block !important;
        margin:0 auto 40px auto !important;
    }

    .row.justify-content-center{
        width:100%;
        justify-content:center !important;
    }
}


/* ===================================
   MOBILE
=================================== */

@media (max-width:767px){

    form[id^="form-"] .ktc-default-section{
        display:block;
    }

    form[id^="form-"] .ktc-default-section > .form-field{
        width:100% !important;
        margin-bottom:12px !important;
    }

    form[id^="form-"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    form[id^="form-"] select,
    form[id^="form-"] textarea{
        width:100%;
        box-sizing:border-box;
    }
}