* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Karla", sans-serif;
}
body {
  background: hsl(148, 38%, 91%);
  width: 320px; 
 padding: 40px; 
}
.container {
  background: #ffffff;
  width: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.2em;
  margin-top: 0px;
  border-radius: 10px;
  box-shadow: 0px 0px 30px 2px ;
}
.container h1 {
  font-size: 1.6rem;
  color: hsl(187, 24%, 22%);
}

.contct-frm {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}


label input {
  width: 100%;
  height: 33px;
  padding: 5px;
  margin-top: 0.5rem;
  border-radius: 5px;
  border: 0.5px solid rgb(40, 40, 40);
  transition: 0.2s;
  /* border: 2px solid hsl(148, 81%, 25%); */
  
}
label input:hover {
  border: 2px solid hsl(148, 81%, 25%);
  cursor:pointer ;
}
label input:focus{
  outline: 2px hsl(120, 1%, 16%);
}

.radio-card{
  display: flex;
  flex-direction: column;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card label {
  position: relative;
  width: 100%;
  border: 1px solid #303030;
  margin: 0.4rem 0;
  padding: 8px 15px 8px 44px; /* Padding left for the circle */
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.radio-el{
    border: 1px solid rgb(43, 43, 43);

}
.radio.error{
  border: 1px solid red;
  color: red;
}

.radio-card label::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  height: 19px;
  width: 19px;
  border: 3px solid #9c9c9c;
  border-radius: 50%;
  background-color: white;
  box-sizing: border-box;
  transition: 0.2s;
}

.radio-card input[type="radio"]:checked + label {
  background-color: hsl(146, 60%, 90%);
  color: rgb(0, 0, 0);
  border: 2px solid hsl(148, 81%, 25%);
}


.radio-card input[type="radio"]:checked + label::before {
  background-color: rgb(255, 255, 255);
  height: 10px;
  width: 10px;
  border: 10px double hsl(169, 86%, 27%);
}
.radio-card label:hover {
  border: 1px solid hsl(148, 100%, 24%);
}
.p {
  margin: 6px 0px;
}
p::after{
  content: "*";
  margin-left: 2px;
  /* background-color: green; */
  color:hsl(142, 97%, 36%);
  font-size: 16px;
  
}
#txt-area {
  width: 100%;
  height: 200px;
  max-height: 250px;
  border-radius: 5px;
  resize: none;
  outline: none;
  cursor:pointer ;
  padding: 10px;
  font-size: 1em;
  border: 1px solid rgb(42, 41, 41);
}
#txt-area:hover {
  border: 2px solid hsl(148, 81%, 25%);
}
.check-box-area {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0px 10px;
}
.check-box-area input {
  cursor: pointer;
  width: 24px;
  height: 20px;
  accent-color: hsl(135, 31%, 39%);
}

.check-box-area label {
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin-left: 10px;
}
.btn-1 {
  width: 100%;
  font-size: 1em;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 5px;
  background-color:hsl(169, 82%, 27%);
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
}
.btn-1:hover{
  background-color:  hsl(187, 24%, 22%);
}
.btn-1:active{
  background-color:  hsl(154, 33%, 27%);
}
.message {
  position: fixed;
  display: none;
  background-color: hsl(187, 24%, 22%);
  color: white;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 10px 20px;
  margin: 10px 0px;
  border-radius: 10px;
  z-index: 999;
}

.message.active {
  display: block;
  animation: appear-top 0.2s ease-in-out forwards;
}

@keyframes appear-top {
  from {
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0%) ;
    opacity: 1;
  }
}

.message h3 {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 4px 0px;

}
.message img{
  margin-right: 10px;
}
.message p{
  font-size: 12px;
  margin:0px 5px;
}
.message.active{
  display: block;
  animation: appear-top 0.2s ease-out forwards;
}
.message.hidden{
  animation: out 0.5s ease-out forwards;
}

@keyframes out {
  from{
    transform: translateX(-50%)   ;
    opacity: 1;
    
  }
  to{
    transform:translateX(-50%) translateY(-50%);
    opacity: 0;
    display: none;
  }
}
span{
  color: red;
  padding: 3px 5px;
  font-size: 12px;
  visibility: hidden;
}

@media (min-width:760px) {


  .container{
    width: 500px;
  }
  .container h1{
    font-size: 2rem;
  }
  .name-section{
    display: flex;
    justify-content: space-between
  ;
  }
  .name-label{
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 200px;
    
  }
  input{
    
    font-size: 1.0005rem;
  }
  .radio-card{
  flex-direction: row;
  justify-content: space-between;
}
.radio-card label{
  width: 210px;
  padding: 10px 20px 10px 44px;
}
#txt-area{
  height: 100px;
}
.message{
  width: 440px;
}

}