.modal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  width: 550px;
  padding: 20px;
  min-height: 250px;
  position: absolute;
  top: calc(50% - 125px);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  z-index: 99;
}

@media screen and (max-width: 768px) {
  .modal {
    width: 350px;
    top: 30%;
    padding: 10px;
    margin: 0 20px;
    width: calc(100% - 40px);
  }
}

.modal .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal input {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9em;
}

.modal p {
  font-size: 16px;
  color: #777;
  margin: 0.4rem 0 0.2rem;
}

.modal button {
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.modal .btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  background-color: black;
  color: white;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-open {
  color: #444444;
  background: white;
  border: none;
  font-weight: 500;
  font-family: 'Raleway';
}

.btn-close {
  padding: 0.5rem 0.7rem;
  background: #eee;
  border-radius: 50%;
}

.overlay-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden {
  display: none;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-button {
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.radio-button label:hover {
  background-color: #2196f3;
  color: #ffffff;
}

.radio-button input {
  display: none;
}

.radio-button label {
  font-size: 14px;
  padding: 8px 10px;
  border: 2px solid #ccc;
  border-radius: 20px;
}

.radio-button input:checked + label {
  background-color: #2196f3;
  color: #ffffff;
}

.radio-button:checked {
  background-color: #2196f3;
  color: #ffffff;
}
