.complaint-section{
    max-width: 1064px;
    width: 100%;
    margin: 0 auto;
    /* padding: 0 40px; */
}
.complaint-container{
    background: linear-gradient(90deg, #F6EDFF 0%, #FFE9EA 61%, #FEF4E1 100%);
    border-radius: 20px;
    padding: 70px 109px 76px;
    margin-top: 60px;
    margin-bottom: 120px;
}
.complaint-header{
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.complaint-header-title{
    font-family: Lato;
    font-weight: 700;
    font-size: 36px;
    line-height: 130%;
    color: #1D1D1F;
    margin-bottom: 20px;
    padding: 0 19px;
    text-align: center;
}
.complaint-header-subtitle{
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #4D4D4D;
    text-align: center;
    margin-bottom: 60px;

}
.complaintFrmContent{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.complaintFrm__field-group{
    width: 48.8%;
}
.complaint-form-group .input-field,
.complaint-form-group .select-field{
    width: 100%;
    border: 1px solid var(--Neutral-color-grey-200, #B0B1B3);
    border-radius: 6px;
    padding: 16px;
    background-color: transparent;
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #232426;
}
.complaintFrm__field-group  input[type='tel'].input-field {
    text-indent: 50px;
}
 .input-field::placeholder{
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #75787B;
}
.input-field:focus-visible{
    border: 1px solid var(--Neutral-color-grey-900, #232426);
    outline: 1px solid transparent;
}
.complaintFrm__field-group{
    position: relative;
}
.regFrm__label {
    position: absolute;
   font-family: Lato;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    vertical-align: middle;
    background: #F9EBF7;
    color: #202020;
    top: -7px;
    left: 14px;
    display: none;
    z-index: 2;
    padding: 0 4px;
}

.complaintFrm__field-group:nth-child(even) .regFrm__label {
  background-color: #ffeaec;
}

.complaintFrm__field-group:nth-child(odd) .regFrm__label {
  background-color: #F9EBF7;
}

.input-field:focus~.regFrm__label{
    display: block;
}
.complaint-form-group.invalid .input-field:focus, .complaint-form-group.invalid .input-field:focus-visible {
    outline: 0;
    border: 1px solid var(--Primary-Colours-Shades-Red-color-red-500, #ED1C24);
    box-shadow: none;
}
.complaintFrm__field-group .invalid label{
    color: #ED1C24;
}
.mobile-prefix {
    position: absolute;
    left: 16px;
    top: 15px;
    display: flex;
    align-items: center;
    column-gap: 8px;
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #75787B;
}
.mobile-prefix::after {
    content: '';
    width: 1px;
    height: 24px;
    background-color: #110000;
    opacity: .2;
    display: inline-block;
    margin-left: 3px;
}
.complaint-form-group.invalid .error-message{
    position: relative;
    display: block;
    padding-top: 6px;
    padding-left: 18px;
}
.error-message{
    font-family: Lato;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    vertical-align: middle;
    color: #ED1C24;
    display: none;
}
.complaintFrm__field-group .error-message::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("../../../../content/dam/asianpaintsbeautifulhomes/complaint-warranty/registration-popup/error.png");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    position: absolute;
    left: 0;
    top: 8px;
}
.dropdown-group {
  position: relative;
  display: inline-block;
  width: 100%;
}
.selected-display {
    display: block;
    padding: 16px;
    border: 1px solid var(--Neutral-color-grey-200, #B0B1B3);
    cursor: pointer;
    border-radius: 6px;
    background-color: transparent;
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #75787B;
}
.selected-display.select-value-active{
    color:#232426;
}
.dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    max-height: 0;
    /* overflow: hidden; */
    display: none;
    transition: max-height 0.3s ease;
    position: absolute;
    width: 100%;
    background-color: #fff;
    z-index: 10;
    border: 1px solid #EFEFEF;
    box-shadow: 0px 4px 4px 0px #00000014;
     margin-top: 6px;

}
.dropdown .item {
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
}
.dropdown .item:last-child{
    margin-bottom: 0px;
}
.dropdown .item:hover{
    background: linear-gradient(90.85deg, rgba(246, 237, 255, 0.5) 2.92%, rgba(255, 233, 234, 0.5) 61.17%, rgba(254, 244, 225, 0.5) 98.14%);
    /*border: 1px solid #CCCCCC66;*/
    padding: 10px 16px;
    border-radius: 4px;
}
.dropdown-group.dropdownOpen .dropdown {
    max-height: 200px; 
    overflow-y: auto;
    display: block;
    padding: 20px;
}
.complaint-form-group.dropdown-group.dropdownOpen .selected-display{
    border: 1px solid var(--Neutral-color-grey-900, #232426);
    border-radius: 6px;
}
.custom-arrow {
  position: absolute;
  right: 16px;
  top: 52%;
  transform: translateY(-50%) rotate(0deg);
  width: 10px;   
  height: 5px;
  pointer-events: none;
  background-image: url('../../../../content/dam/asianpaintsbeautifulhomes/complaint-warranty/registration-popup/dropdown-arrow.svg'); 
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s;
}
.dropdown-group.dropdownOpen .custom-arrow {
  transform: translateY(-50%) rotate(180deg);
}
.dropdown-group.dropdownOpen .regFrm__label{
    display: block;
}
.dropdown-group.invalid .custom-arrow{
    top: 37%;
}
.complaint-form-group.dropdown-group.dropdownOpen.invalid .selected-display{
    border: 1px solid var(--Primary-Colours-Shades-Red-color-red-500, #ED1C24);
}
/* textarea */
.textarea-field{
    width: 100%;
    height: 124px;
    border-radius: 6px;
    border: 1px solid var(--Neutral-color-grey-200, #B0B1B3);
    resize: none;
    padding: 16px;
    background-color: transparent;
}
.complaintFrm__field-group:nth-last-child(2){
    width: 100%;
}
.textarea-field:focus-visible{
    border: 1px solid var(--Neutral-color-grey-900, #232426);
    outline: 1px solid transparent;
}
.textarea-field:focus-visible ~ .regFrm__label {
    display: block;
}
/* submit */
.complaintFrm__field-group:nth-last-child(1){
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}
.terms-text{
    font-family: Lato;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #53565A;
    margin-bottom: 20px;
}
.terms-text a{
    font-family: Lato;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    color: #7455A2;
}
.reg-submit-button{
    font-family: Lato;
font-weight: 700;
font-size: 18px;
line-height: 130%;
color: #FFFFFF;
background-color: #7345B2;
padding: 8.5px 39px;
border: none;
border-radius: 30px;
cursor: pointer;
}
.reg-submit-button.disabled{
    background: #C9BDDB;
    color: #EEEAF3;
}
.dropdown-group.disabled{
     pointer-events: none; /* Disable all mouse events */
  opacity: 0.6; /* Optional: make it look inactive */
  cursor: not-allowed;
}
@media screen and (max-width:768px) {
    .complaint-section{
        padding: 0;
    }
    .complaint-container{
        padding: 60px 16px 30px;
        border-radius: unset;
        margin-top: 0;
        margin-bottom: 80px;
    }
    .complaint-header-title{
        font-size: 24px;
        line-height: 130%;
        margin-bottom: 10px;
    }
    .complaint-header-subtitle{
        font-size: 16px;
        line-height: 100%;
        margin-bottom: 30px;
    }

    .complaintFrm__field-group{
    width: 100%;
    }
    .terms-text{
    font-family: Lato;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #53565A;
    margin-bottom: 16px;
}
.terms-text a{
    font-weight: 700;
    font-size: 14px;
    line-height: 120%;
    color: #7455A2;
}
.complaintFrm__field-group:nth-child(even) .regFrm__label {
  background-color: #F9EBF7;
}

.complaintFrm__field-group:nth-child(odd) .regFrm__label {
  background-color: #F9EBF7;
}
}