* {
font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body {
  font-family: 'Montserrat', sans-serif;
  background: #fff27c;
}
.decor {
  position: relative;
  max-width: 620px;
  margin: 50px auto 0;
  background: white;
  border-radius: 30px;
  box-shadow: inset 1px 0 5px 2px rgba(0, 0, 0, 0.2);
}
.form-left-decoration,
.form-right-decoration {
  content: "";
  position: absolute;
  width: 50px;
  height: 20px;
  background: #fff27c;
  border-radius: 20px;
}
.form-left-decoration {
  bottom: 60px;
  left: -30px;
}
.form-right-decoration {
  top: 60px;
  right: -30px;
}
.form-left-decoration:before,
.form-left-decoration:after,
.form-right-decoration:before,
.form-right-decoration:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 20px;
  border-radius: 30px;
  background: white;
}
.form-left-decoration:before {
  top: -20px;
}
.form-left-decoration:after {
  top: 20px;
  left: 10px;
}
.form-right-decoration:before {
  top: -20px;
  right: 0;
}
.form-right-decoration:after {
  top: 20px;
  right: 10px;
}
.circle {
  position: absolute;
  bottom: 80px;
  left: -55px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
}
.form-inner {
  padding: 50px;
  padding-bottom: 20px;
}
.form-inner div {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #707981;
  margin-bottom: 8px;
  padding-top: 15px;
  margin-left: 5px;
}
.form-inner input,
.form-inner textarea {
  display: block;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 10px;
  background: #e9eff6;
  border-width: 0;
  border-radius: 20px;
  font-family: "Roboto", sans-serif;
}
.form-inner input {
  line-height: 40px;
}
.form-inner textarea {
  resize: none;
  line-height: 20px;
  color: #333;
  padding: 10px 40px 10px 20px;
  min-height: 40px;
}
.form-inner h3 {
  margin-top: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 24px;
  width: 55%;
  color: #333536;
  text-align: left;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}
.logo h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #333536;
  margin-bottom: 15px;
}
.logologo {
  width: 220px;
  height: auto;
}
.pTop {
  margin-top: -10px;
  text-align: center;
}
label,
span {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}
.radio {
  overflow: hidden;
}
.radio label {
  position: relative;
  padding-left: 70px;
  cursor: pointer;
  width: 50%;
  float: left;
  line-height: 40px;
  display: flex;
}
.radio div {
  padding-top: 0;
}
.radio p {
  text-align: center;
}
.radio label div {
  margin-left: 10px;
  line-height: 40px;
  cursor: pointer;
}
.radio input {
  position: absolute;
  opacity: 0;
}
.radio-control {
  position: relative;
  top: 0;
  left: 0;
  height: 40px;
  width: 40px;
  background: #e6e6e6;
  border-radius: 50%;
  text-align: center;
  transition: background-color 0.3s ease;
}
.radio-control:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "FontAwesome";
  font-size: 20px;
  color: #555;
}
.male:before {
  content: "\f222";
}
.female:before {
  content: "\f221";
}
.radio label:hover input ~ .radio-control,
.radio input:focus ~ .radio-control {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.radio input:checked ~ .radio-control {
  color: rgb(255, 0, 0);
}
.radio input[type="radio"]:checked + .radio-control.male {
  background-color: #89b1fc;
}
.radio input[type="radio"]:checked + .radio-control.female {
  background-color: #fc9fcd;
}
.form-group {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.form-group p {
  font-size: 1.2em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  align-items: center;
  font-size: 1em;
  color: #34495e;
  padding: 8px;
  padding-top: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-group label:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}
.form-group input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #aeb9c5;
  border-radius: 6px;
  margin-right: 15px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.form-group input[type="checkbox"]:checked {
  background-color: #2ecc71;
  border-color: #2ecc71;
}
.form-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.form-group2 input[type="radio"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #aeb9c5;
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.form-group2 input[type="radio"]:checked {
  background-color: #2ecc71;
  border-color: #2ecc71;
}
.form-group2 input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.form-group2 label {
  display: flex;
  align-items: center;
  font-size: 1em;
  color: #34495e;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon input {
  width: 100%;
  padding-right: 40px;
}
.input-with-icon .fa-keyboard {
  position: absolute;
  top: 64%;
  right: 15px;
  transform: translateY(-50%);
  color: #aeb9c5;
  font-size: 1.2em;
  pointer-events: none;
}
.textarea-wrapper {
  position: relative;
  width: 100%;
}
.textarea-wrapper .fa-keyboard {
  position: absolute;
  top: 26px;
  right: 18px;
  color: #aeb9c5;
  font-size: 1.2em;
  pointer-events: none;
}
.form-inner input[type="submit"] {
    margin-top: 30px;
    background: #4caf50;
    /* Приємний зелений */
    border: none;
    border-bottom: 4px solid #388e3c;
    /* Темніший відтінок для тіні */
    color: #ffffff;
    /* Білий колір тексту для кращої читабельності */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 0 #388e3c;
    /* Темніший відтінок для тіні */
}

.form-inner input[type="submit"]:hover {
    background: #66bb6a;
    /* Світліший зелений при наведенні */
    border-bottom: 4px solid #388e3c;
    box-shadow: 0 2px 0 #388e3c;
}

.form-inner input[type="submit"]:active {
    background: #388e3c;
    /* Ще темніший зелений при натисканні */
    border-bottom: 4px solid #388e3c;
    box-shadow: 0 0 0 #388e3c;
    margin-top: 32px;
}
textarea {
  resize: vertical;
}
footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  padding: 20px;
  text-align: center;
}
.footer-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background-color: #444;
  color: white;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
  border: none;
  box-shadow: inset 3px 0 5px 2px rgba(0, 0, 0, 0.3);
}
.footer-button:hover {
  background-color: #555;
}
.agreement-group {
  margin-top: 30px;
}
.agreement-group label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}
.agreement-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
}
.agreement-group input[type="checkbox"]:checked {
  border-color: #4caf50;
  background-color: #4caf50;
}
.agreement-group input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.agreement-group a {
  color: #4caf50;
  text-decoration: underline;
}
.agreement-group a:hover {
  color: #45a049;
}
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.required-label::after {
  content: " *";
  color: red;
}
@media (max-width: 440px) {
  .radio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .radio label {
    width: 100%;
    justify-content: flex-start;
  }
  .form-inner h3 {
    width: 100%;
  }
  .form-inner {
    padding: 15px;
  }
  .footer-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    background-color: #444;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: inherit;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    border: none;
  }
}
@media (max-width: 768px) {
  .form-inner {
    padding: 30px;
  }
  .form-inner h3 {
    width: 100%;
  }
}

/* ============================================= */
/* --- АДАПТИВНІСТЬ: ПЛАНШЕТИ (768px і більше) --- */
/* ============================================= */
@media (min-width: 768px) {
  .decor {
    max-width: 620px;
    margin: 50px auto;
    border-radius: 30px;
  }
  .form-inner {
    padding: 50px;
  }
  .form-left-decoration,
  .form-right-decoration {
    content: "";
    position: absolute;
    width: 50px;
    height: 20px;
    background: #fff27c;
    border-radius: 20px;
    display: block;
  }
  .form-left-decoration {
    bottom: 60px;
    left: -30px;
  }
  .form-right-decoration {
    top: 60px;
    right: -30px;
  }
  .form-left-decoration:before,
  .form-left-decoration:after,
  .form-right-decoration:before,
  .form-right-decoration:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 20px;
    border-radius: 30px;
    background: white;
  }
  .form-left-decoration:before {
    top: -20px;
  }
  .form-left-decoration:after {
    top: 20px;
    left: 10px;
  }
  .form-right-decoration:before {
    top: -20px;
    right: 0;
  }
  .form-right-decoration:after {
    top: 20px;
    right: 10px;
  }
  .circle {
    position: absolute;
    bottom: 80px;
    left: -55px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    display: block;
  }

  .logo {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .logo h3 {
    width: 55%;
    font-size: 24px;
  }
  .logologo {
    width: 220px;
  }
  .radio {
    flex-wrap: wrap;
    justify-content: center;
  }
  .radio label {
    width: 50%;
    justify-content: flex-start;
  }
  .footer {
    flex-direction: row;
    gap: 20px;
  }
}

/* ======================================================= */
/* --- АДАПТИВНІСТЬ: ВЕЛИКІ ЕКРАНИ (1440px і більше) --- */
/* ======================================================= */
@media (min-width: 1440px) {
  body {
    font-size: 16px;
  }
  .decor {
    max-width: 620px;
  }
  .form-inner h3 {
    font-size: 28px;
  }
  .form-group p {
    font-size: 1.25em;
  }
  .form-inner input,
  .form-inner textarea {
    font-size: 1rem;
  }
}

@media (min-width: 1921px) {
  body {
    font-size: 18px;
  }
  .decor {
    max-width: 920px;
  }
  .form-inner h3 {
    font-size: 28px;
  }
  .form-group p {
    font-size: 1.25em;
  }
  .form-inner input,
  .form-inner textarea {
    font-size: 1rem;
  }
}
