/*=======================
     Complaint Style 
=========================*/
/* Only apply inside .my-form-wrapper */
.my-form-wrapper,
.my-form-wrapper * ,
.my-form-wrapper *::before,
.my-form-wrapper *::after {
  box-sizing: border-box;
}
.mb-0{ margin-bottom: 0; }
.mt-4{ margin-top: 15px; }
.mt-3{ margin-top: 10px; }
.btn-submit-complaint{ 
    /* text-align: right;  */
    margin-top: 20px;
}
.btn-submit-complaint button{
    font-size: 15px;
    font-family: none;
}
.bg-green { background-color: #058248; }
.text-white { color: white; }
.btn{
    border: solid 1px #058248;
    border-radius: 5px;
    padding: .7rem 1rem;
    cursor: pointer;
}

.complaint-content-container{
    margin: 0 auto;
    flex-flow: row wrap;
    padding: 1rem;
}
.customer-form-body-content-wrapper { margin-top: 15px; }
.customer-form-body-content-wrapper .customer-green-bg-wrapper{
    width: 100%;
    padding: .6em .9rem;
    background-color: #058248;
    color: white;
}

label { font-size: 13px; }
.customer-green-bg-wrapper,
.customer-header-description-wrapper { font-size: 15px; }

.form-control {
    border: solid 1px #ccc;
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #DAFDEC;
    background-clip: padding-box;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* 3) Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;   /* creates gutters with the column padding */
  margin-left: -15px;
}
[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;   /* gutter */
  padding-left: 15px;    /* gutter */
  margin-top: 10px;
}

/* 4) Form controls */
label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 1px);
  padding: 0.375rem 0.75rem;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
  background-color: #DAFDEC;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.customer-green-bg-wrapper{ 
    margin-top: 20px; 
    margin-bottom: 10px;
}

.radio-custom{
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #058248;
}
.customer-radio-background-wrapper{
    background-color: #DAFDEC;
    padding: 8px 10px 7px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}
.customer-other-input-custom-wrapper{
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #058248;
    height: 20px;
    background-color: #DAFDEC;
}
/* .customer-complaint-marging-custom{ margin-top: 10px; } */
.customer-radio-margin-custom{ margin-top: 1rem; }
.customer-radio-background-wrapper label{ 
    font-size: 13px; 
    margin-bottom: 0;
}

/* upload file */
.complaint-upload-thumbnail {
    padding: 10px;
    display: flex;
    border-radius: 5px;
    background-color: #DAFDEC;
}
.complaint-upload-thumbnail .upload-btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.complaint-upload-thumbnail .upload-btn input[type="file"] {
    top: 0;
    right: 0;
    opacity: 0;
    position: absolute;
}
.complaint-upload-thumbnail .upload-btn label {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    border-radius: 5px;
    border: 2px dashed #ccc;
}
.complaint-upload-thumbnail .upload-btn label i { font-size: 40px; }
.complaint-upload-thumbnail .upload-btn label:hover {
    color: #333;
    border-color: #333;
}
.complaint-btn .bg-green {
    margin-left: 15px;
    padding-left: 20px;
    padding-right: 20px;
}
.complaint-thumbnail {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y)* -1);
    margin-left: calc(var(--bs-gutter-x)* -.5);
}
.complaint-thumbnail-column-custom{
    flex-shrink: 0;
    max-width: 50%;
    margin-left: calc(var(--bs-gutter-x)* .5);
    margin-top: var(--bs-gutter-y);
}
.complaint-thumbnail-column-custom label{ margin-bottom: 0; }
.thumbnail-image-wrappper {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
}
.thumbnail-image-wrappper img { width: 100%; }
.complaint-close-icon {
    top: 0px;
    right: 3px;
    position: absolute;
    color: red;
    cursor: pointer;
}
.description_complaint,
.relevant_file{ margin-top: 15px; }
#incidentOther{ width: 198px; }
#incidentOther{  outline: none; box-shadow: none; }

/* googel recaptcha */
.rc-anchor-checkbox-label{ font-size: 13px; }
.rc-anchor-normal { width: 285px !important; }
.rc-anchor-logo-portrait { margin: 10px 0 0 16px !important; }
.rc-anchor-normal .rc-anchor-pt { margin: 2px 21px 0 0 !important; }


/* ################
    Media Query
################### */
/* =====  Middle Laptop View (!) Width ( 425px <-> 768px ) (!) ===== */
    @media only screen and ( min-width: 425px ) {
        #incidentOther{ width: 305px; }
    }

    /* Small (≥576px) */
    @media (min-width: 576px) {
        .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
        #incidentOther{ width: 456px; }
    }

    @media only screen and ( min-width: 768px ) {
        .complaint-content-container { width: 38rem; }
        .col-md-6 { flex: 0 0 50%; max-width: 50%; }

        .customer-radio-background-wrapper label{ font-size: 0.9rem; }
        /* .customer-complaint-marging-custom{ margin-top: 15px; } */
        .customer-radio-margin-custom{ margin-top: 1.3rem; }

        /* complaint add and update */
        .complaint-upload-thumbnail { padding: 13px; }
        .complaint-upload-thumbnail .upload-btn label,
        .thumbnail-image-wrappper {
            width: 100px;
            height: 100px;
        }
        #incidentOther{ width: 180px; }

        /* btn */
        .btn-submit-complaint{
            display: flex;
            justify-content: space-between;
        }
        .mt-3{ margin-top: 0; }

        label,
        .customer-green-bg-wrapper,
        .customer-header-description-wrapper,
        .form-control,
        .btn-submit-complaint button { font-size: 1rem; }

    }

/* ===== Medium Laptop View (!) Width ( 768px <-> 1024px ) (!) ===== */
    @media only screen and ( min-width: 912px ) {
        .complaint-content-container { width: 44.5rem; }
        #incidentOther{ width: 233px; }
    }

/* =====  Large Laptop View (!) Width ( 1024px <-> 1920px ) (!) ===== */
    @media only screen and ( min-width: 1024px ) {
        .complaint-content-container { width: 51rem; }
        #incidentOther{ width: 285px; }
    }
    
    @media only screen and ( min-width: 1200px ){
        .complaint-content-container { padding: 1.5rem 3rem; }
        #incidentOther{ width: 252px; }
    }

    @media only screen and ( min-width: 1280px ){
        .complaint-content-container { width: 60rem; }
        #incidentOther{ width: 325px; }
    }

    @media only screen and ( min-width: 1366px ){
        .complaint-content-container { width: 67rem; }
        #incidentOther{ width: 380px; }
    }

    @media only screen and ( min-width: 1400px ){
        .complaint-content-container { width: 64rem; }
        #incidentOther{ width: 357px; }
    }

    @media only screen and ( min-width: 1440px ){
        .complaint-content-container { width: 67rem; }
        #incidentOther{ width: 380px; }
    }

    @media only screen and ( min-width: 1600px ){
        .complaint-content-container { width: 73rem; }
        #incidentOther{ width: 425px; }
    }

    @media only screen and ( min-width: 1680px ){
        .complaint-content-container { width: 78rem; }
        #incidentOther{ width: 465px; }
    }

    @media only screen and ( min-width: 1920px ){
        .complaint-content-container { width: 88rem; }
        #incidentOther{ width: 545px; }
    }
