* {
  box-sizing: border-box;
}

:root {
  --ink: #17211b;
  --muted: #5c6960;
  --paper: #f4f1e8;
  --panel: #eaf8fe;
  --line: #d8ded4;
  --accent: #14ACF5;
  --error: #b42318;
  --radius: 8px;
}
.form-page {
  min-height: 100vh;
  padding:10px 0px;
}

.form-panel {
  width: min(600px, 100%);
  /* margin: 0 auto; */
  padding: 0px;
 /*  background: var(--panel); */
  /* border: 1px solid var(--line); */
  border-radius: var(--radius);
  /* box-shadow: 0 12px 32px rgba(23, 33, 27, 0.08); */
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}


.field input::placeholder,
.field textarea::placeholder {color: #bdbdbd;}

.field-wide {
  grid-column: 1 / -1;
}

label {
  font-size: 18px;
  /* font-weight: 700; */
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

label .required {
  color: var(--error);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-family: "Myriad-Pro-Light", Sans-serif !important;
}

textarea{border: 1px solid #666;} 

/* input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 111, 91, 0.25);
  border-color: var(--accent);
} */

textarea {
  min-height: 104px;
  resize: vertical;
}

.field-error {
  color: var(--error);
  font-size: 14px;
  font-family: "Myriad-Pro-Light", Sans-serif;
}

.form-error {
  grid-column: 1 / -1;
}

.consent-field {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
}

.consent-field > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.custom-checkbox {
  display: inline-grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.custom-checkbox svg {
  width: 15px;
  height: 15px;
}

.custom-checkbox path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}

.consent-field > input:checked + .consent-label .custom-checkbox {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.04);
}

.consent-field > input:checked + .consent-label .custom-checkbox path {
  animation: draw-check 260ms ease-out forwards;
}

.consent-label:hover .custom-checkbox {
  border-color: var(--accent);
}

.consent-field > input:focus-visible + .consent-label .custom-checkbox {
  outline: 3px solid rgba(31, 111, 91, 0.25);
  outline-offset: 2px;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.submit-button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font: 700 16px, "Myriad-Pro-Light", Sans-serif;
  width: 300px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.success-message {
  padding: 32px 0;
  text-align: center;
}

.success-message h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.success-message p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .form-page {
    padding: 0;
  }

  .form-panel {
    padding: 0;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .form-error,
  .submit-button,
  .consent-field {
    grid-column: auto;
  }

  .consent-field{flex-direction: column;}
}
