:root {
  --font-main: 'Karla', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'karla' - sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: hsl(187, 24%, 22%); 
  background: hsl(148, 38%, 91%); 
  padding: 24px;
}

.container {
  width: 50%;
  max-width: 700px;
  height: auto;
  margin: auto;
  background: hsl(0, 0%, 100%);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

h1 {
  font-weight: 700;
  color: hsl(187, 24%, 22%);
  margin-bottom: 24px;
  font-size: 1.8rem;
}


.form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}


.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-field label {
  font-weight: 700;
  margin-bottom: 6px;
  color: hsl(187, 24%, 22%);
}

.form-field input,
.form-field textarea {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid hsl(186, 15%, 59%);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: hsl(169, 82%, 27%);
  box-shadow: 0 0 0 2px hsla(169, 82%, 27%, 0.2);
}


.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  border: 1px solid hsl(186, 15%, 59%);
  border-radius: 8px;
  cursor: pointer;
  background: hsl(0, 0%, 100%);
  transition: background 0.3s, border-color 0.3s;
}

.option input {
  display: none;
}

.radio {
  width: 18px;
  height: 18px;
  border: 2px solid hsl(186, 15%, 59%);
  border-radius: 50%;
  position: relative;
}

.radio::after {
  content: "";
  width: 8px;
  height: 8px;
  background: hsl(169, 82%, 27%);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.option input:checked + .radio::after {
  opacity: 1;
}

.option:has(input:checked) {
  border-color: hsl(169, 82%, 27%);
  background: hsl(148, 38%, 91%);
}

input[type="checkbox"] {
  accent-color: hsl(169, 82%, 27%);
  margin-right: 8px;
}


button {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 6px;
  border: none;
  background: hsl(169, 82%, 27%);
  color: hsl(0, 0%, 100%);
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background: hsl(169, 82%, 20%);
  transform: translateY(-1px);
}

.success-message {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: hsl(187, 24%, 22%);
  color: hsl(0, 0%, 100%);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  width: 420px;
  font-size: 0.9rem;
}

.success-message .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: hsl(169, 82%, 27%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.success-message strong {
  display: block;
  margin-bottom: 0.25rem;
}

.success-message p {
  opacity: 0.85;
  font-size: 0.85rem;
}

.success-message {
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .success-message {
    width: calc(100% - 32px);
    font-size: 0.85rem;
  }

}
