:root {
  --green-200: hsl(148, 38%, 91%);
  --green-600: hsl(169, 82%, 27%);
  --red: hsl(0, 66%, 54%);
  --white: hsl(0, 0%, 100%);
  --grey-500: hsl(186, 15%, 59%);
  --grey-900: hsl(187, 24%, 22%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Karla', sans-serif;
  background-color: var(--green-200);
  color: var(--grey-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-container {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 700px;
  width: 100%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--grey-900);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fst-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;

}
span {
  font-weight: bold;
   color: var(--green-600);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--grey-500);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 2px var(--green-200);
}

.query-type {
  display: flex;
  flex-wrap:wrap  ;
  justify-content: space-around;
  align-items: flex-start;
  gap: 1rem;

}

.img, .img2{
  display: inline-block;
  border:1px solid black ;
  border-radius: 50%;
  padding: 8px;
}
.bg-img{
  background-image: url('./assets/images/icon-checkbox-check.svg');
}

.support, .general{
  width: 100%;
  max-width: 300px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  border: 1px solid var(--grey-500);
 padding: 0.75rem;
 border-radius: 5px;
}
textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  background-color: var(--green-600);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: hsl(169, 82%, 22%);
}

.attribution {
  margin-top: 2rem;
  font-size: 0.8rem;
  text-align: center;
}

.attribution a {
  color: var(--green-600);
  text-decoration: none;
}

.err {
    border: 1px solid hsl(0, 66%, 54%);
}

.error-msg {
    color: hsl(0, 66%, 54%);

    margin-top: 0.25rem;
}
.input-container {
  position: relative;
}


.check-box{
  display: inline-block;
  border: 1px solid var(--grey-900);
  padding: 9px;
  cursor: pointer;
   border-radius: 4px;
  transition: all 0.2s ease;
}
.selected {
    border-color: var(--green-600) !important;
    background-color: var(--green-200);
}


.box-msg {
    display: inline-block;
    vertical-align: middle;
    margin:0 0 10px 1rem;
    cursor: pointer;
    
}

.query-type > div {
    transition: all 0.2s ease;
}

.query-type > div:hover {
    border-color: var(--green-600);
}
.success-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%); 
  background: var(--grey-900);
  color: white;
  padding: 15px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /
}
@media (max-width: 600px) {
  .query-type{
    flex-direction: column;
  }
  .fst-row {
  grid-template-columns: 1fr;
  }
  
  .form-container {
  padding: 1.5rem;
  }
  .check-box{
     margin-top: 8px;
    height: 20px;
    width: 20px;
  }
  .ch{
    display: flex;
    justify-content: space-around;
    align-items:center ;
}
.box-msg{
  margin-top: 10px;
}
}

