@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');


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

body {
    font-family: "Karla", sans-serif;
    background-color: hsl(148, 38%, 91%);
    height: 100%;
}

.container {
    background-color: hsl(0, 0%, 100%);
    color: #000;
    padding: 2rem;
    border-radius: 10px;
    width: 50%;
    margin: 2rem auto;
    text-align: start;
    font-size: 20px;
}

.form-header {
    margin-bottom: 1.5rem;
    color: hsl(187, 24%, 22%);
}

.form-container {
    display:flex;
    flex-direction: column;
    
}

.form-row {
    display: flex;
    gap: 20px;

}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 20px;
}

label {
    margin-bottom: 10px;
    font-size: 16px;
    color: hsl(187, 24%, 22%);
    font-weight: 500;
}

label::after {
      content: " *";
      color: #6db28e;
    }

input, textarea {
      padding: 10px 12px;
      border: 1px solid hsl(186, 15%, 59%);
      border-radius: 6px;
      font-size: 16px;
      outline: none;
      transition: border-color 0.3s;
      cursor: pointer;
      color: hsl(187, 24%, 22%)
    }

input:focus {
      border-color: hsl(169, 82%, 27%);
    }
input:hover, textarea:hover  {
    border: 2px solid hsl(169, 82%, 27%);
}

.query-row {
    border: 1px solid hsl(186, 15%, 59%);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    
}


.query-row label {
    margin-bottom: 0;
}

.query-row label::after {
    content: "";
}

input[type="radio"] {
      width: 16px;
      height: 16px;
      border: 2px solid #2e7d67;
      accent-color: #2e7d67;
      border-radius: 50%;
      margin-right: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }


.query-row:has(input[type="radio"]:checked) {
  background-color: hsl(148, 38%, 91%);
  border-radius: 6px;
}

.message-row {
        margin-top: 20px;

    }

textarea {
   height: 100px;
   resize: none;
}


input[type="checkbox"] {
    transform: scale(1.2);
     margin-right: 10px;
    accent-color: #2e7d67;
}

.consent {
    margin: 10px 0 20px 0;
}

.btn {
    cursor: pointer;
    height: 50px;
    border: 1px solid hsl(186, 15%, 59%);
    border-radius: 6px;
    background-color:hsl(169, 82%, 27%) ;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.btn:hover {
    background-color:hsl(169, 82%, 20%)
}

.hidden {
    display: none;
}

.error-message {
    margin-top: 8px;
    font-size: 14px;
    color: hsl(0, 66%, 54%);
}

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

.attribution { 
   font-size: 11px; 
   text-align: center; 
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}

.success-message {
    position: absolute;
    top: 1rem;
    background-color: hsl(187, 24%, 22%);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    left: 50%;
    transform: translate(-50%);
    border-radius: 15px;
}

.check-img {
    width: 10px;
    height: 10px;
    img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(61%) saturate(746%) hue-rotate(114deg) brightness(87%) contrast(88%);
}

}

@media screen and (max-width:1028px) {

    .container {
        width: 90%;
    }
    .form-row {
    flex-direction: column;
    gap: 0;

    }
    .query-form-row {
        gap: 20px;
    }
    
}
