* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
}

legend.main-title {
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    height: 100px; 
    background: #5c89b0;
     border-radius: 10px;
      display: -webkit-box;  
      display: -ms-flexbox; 
      display: -webkit-flex; 

} 
 
 
 #referral-form {
    background-color:#F2F2F2  ;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width:auto ;
    margin: 0 auto;
    padding: 50px;
}

.fieldset {
    display: -webkit-flex; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

 .main-unit { 
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.unit {
    margin-top: 30px;
    flex: 1; 
}

label {
    display: block;
    font-weight: 400; 
    color: #333;
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #5c89b0;
    outline: none;
}
.radio-group span , .radio-options span {
    display: -webkit-flex; 
    display: flex;
    gap: 8px;
}
.radio-group{
    display:flex;
    gap:30px;
}
.radioset label{
    margin-bottom: 0 !important;
}
 textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

input[type="radio"],
input[type="checkbox"] {
   margin:9px !important;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #5c89b0;
}

 .preferred-language {
    display: -webkit-flex; 
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.preferred-language label {
    margin-bottom: 0;
}
.mobile {
    display: none;
}

 input[type="submit"] {
    margin-top: 20px;
    background-color: #5c89b0;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #4a769d;
}
.lang-all{
    height: 50px!important;
    align-items: baseline;
}
.lang-all span{
    display: flex;
        gap: 5px;
        justify-content: space-evenly;
        align-items: baseline;
} 
 label[for="dischargeaddress"],
label[for="referring_name"] {
    font-size: 16px;
}

 input[type="text"],
input[type="date"],
textarea,
select {
    padding: 12px;
    font-size: 16px;
}

 .unit input[type="text"],
.unit select {
    width: 100%;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    resize: vertical;
    border-radius: 6px;
    border: 1px solid #ccc;
}

 input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #5c89b0;
}

fieldset {
    padding: 20px;
    border: none;
}

.question-unit label , .lang-all label , .fw400 label , .radio-options label {
    font-weight: 400 !important; }
    .radio-options {
        display: flex;
        gap:30px
    }
    .radio-options input {
        margin-right: 3px !important;
    }
    .margin-top{
        margin-top: 20px;
    }
    .short-term span{
        display: -webkit-flex; 
        display: flex;
        gap:10px;
    }
    @media (max-width: 1200px) { 
        .desktop-none{
            display: none !important;
        }
        .mobile {
            display: unset;
        }
        div#waitlist-form {
            padding: 20px;
        } 
         
        label {
          
        font-size:16px
        } 
        .lang-all{
            height: 20px !important;
             flex-wrap: wrap;
          
        }
        .question-unit label , .lang-all label , .fw400 label , .radio-options label {
            font-size:16px }
        
    }

    @media (max-width: 768px) {
      .short-term  input[type="checkbox"] {
            margin-right: 0px;
        }
        .unit {
            margin-top: 10px; 
        }
        
        .margin-top{
            margin-top: 15px;
        }
        .main-unit {
            flex-direction: column;
        }
     
        #lang { 
             width: 100%;
           }
           .main-unit.lang-all {
            display: flex;
            flex-direction: row;
            height: 91px !important; 
            gap: 0 !important; 
            justify-content: flex-start;
        }
        legend.main-title {
            font-size: 20px;
            font-weight: 400;
        }
        .submit-meb { 
            width: 100%; /* Make it span the full width */
            display: block; /* Ensure it behaves like a block element */
            margin: 0 auto; /
        }

    }
    @media (max-width: 530px) {
        legend.main-title{
            padding: 0 20px;
        }
    } 
  
  