.grievance-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  background: linear-gradient(to right, #fff 70%, #f7fbff 30%);
}
.form-title {
  text-align: center;
  color: #1d75cc;
  font-weight: 600;
  margin-bottom: 25px;
}
.form-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}
.grievance-form,.grievance-section {
  flex: 1 1 50%;
  border-radius: 6px;
  box-sizing: border-box;
}
.grievance-form {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.input-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
input,select,textarea {
  width: 100%;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  font-size: 15px;
  background: #f9fbff;
  outline: none;
}
.input-row input,.input-row select {
  flex: 1;
  min-width: 200px;
}
textarea {
  resize: none;
}
.grievance-btn {
  width: 120px;
  background: #1d75cc;
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}
.grievance-btn:hover {
  background: #125ea5;
}
.grievance-section {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center; 
}
.grievance-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 14px solid #1d75cc;
  border-radius: 6px;
}
.grievance-content{
 margin: 20px;
 padding: 40px;
  background: #2a69c7;
  color:#fff;
}
.grievance-content p{
  padding: 5px;
  line-height: 1.6rem;
}
.grievance-content a{
  color:#fff;
  text-decoration: none;
}
.grievance-content a:hover{
  color: #0e1a2c;
  text-decoration: underline;
}
/* Tablet / Medium screens */
@media screen and (max-width: 1024px) {
  .form-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .grievance-form, .grievance-section {
    flex: 1 1 100%;
  }
  .grievance-section img {
    height: 300px; /* Adjust image height for medium screens */
  }
  .input-row input, .input-row select {
    min-width: 150px;
  }
}

/* Small tablets / Large phones */
@media screen and (max-width: 786px) {
  .grievance-container {
    padding: 30px 15px;
    background: linear-gradient(to bottom, #fff 70%, #f7fbff 30%);
  }
  .grievance-form {
    gap: 10px;
  }
  .input-row {
    flex-direction: column;
    gap: 10px;
  }
  textarea {
    padding: 15px;
  }
  .grievance-btn {
    width: 100%;
    padding: 10px 0;
  }
  .grievance-section img {
    height: 250px;
    border-width: 10px;
  }
  .grievance-content {
    padding: 30px 20px;
    margin: 15px;
  }
}

/* Mobile screens */
@media screen and (max-width: 480px) {
  .grievance-container {
    background: #fff;
    padding: 20px 10px;
  }
  .form-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  input, select, textarea {
    padding: 15px;
    font-size: 14px;
  }
  .grievance-btn {
    font-size: 14px;
    padding: 10px 0;
  }
  .grievance-section img {
    height: 200px;
    border-width: 8px;
  }
  .grievance-content {
    padding: 20px 15px;
    font-size: 14px;
  }
  .grievance-content p {
    line-height: 1.4rem;
  }
}
