:focus {
  outline: none;
}

/* formulare */
textarea:focus,
input:focus {
  outline: none;
}

input {
  -webkit-appearance: none;
}

input.hidden {
  display: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

textarea {
  resize: none;
}

.formBox p {
  color: var(--grey);
}

form {
  width: 100%;
}

form h3 {
  font-size: 1.5rem;
  line-height: 100%;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

form h3 + p {
  font-size: 1.25rem;
  line-height: 130%;
}

[type=text],
[type=email],
[type=password],
[type=tel],
[type=number],
textarea,
select {
  background-color: var(--white);
  color: var(--black);
  font-size: 1.125rem;
  line-height: 1.25rem;
  padding: 0 1rem;
  border: 1px solid;
  border-color: var(--grey-d9);
  border-radius: 8px;
  font-family: "Samsung", sans-serif;
  width: 100%;
  height: 3.6rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 5rem var(--white) inset !important;
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--black) !important;
}

.err input {
  border-color: var(--err);
}

textarea.address {
  height: 8.5rem;
  padding: 1rem;
}

.row {
  position: relative;
}

.row.indentation {
  margin-top: 3rem;
}

.row:not(.condensed) .label {
  display: block;
  font-weight: bold;
  padding-bottom: 0.6rem;
}

.row.condensed {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.row.condensed .label {
  position: absolute;
  top: 1.175rem;
  left: 0.7rem;
  padding: 0 0.3rem;
  max-width: 100%;
  line-height: 1.25rem;
  height: 1.25rem;
  color: var(--grey-d9);
  background: var(--white);
  font-size: 1.25rem;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.25s;
  pointer-events: none;
  transform-origin: left top;
}

.row.condensed .label.active {
  color: var(--black);
  top: -0.625rem;
  font-size: 0.875rem;
  background: var(--grey-f7);
  background: linear-gradient(180deg, var(--grey-f7) 0%, var(--grey-f7) 50%, var(--white) 51%, var(--white) 100%);
}

.row .error {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--err);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  display: none;
}

.row.err .error {
  display: block;
}

.row.condensed.err .label {
  color: var(--err);
}

.row.condensed.err .label.active {
  color: var(--err);
}

.row.note {
  color: var(--grey);
  margin-top: 3rem;
  padding-bottom: 1.4rem;
}

@media screen and (max-width: 1023px) {
  .row.note {
    margin-top: 0.25rem;
  }
}
section div:has(> .row) {
  width: 100%;
}

section .row {
  margin-bottom: 0.3rem;
  width: calc((100% - 1rem) / 2);
}

section .row.w100 {
  width: 100%;
}

@media (max-aspect-ratio: 1/1) and (max-width: 1000px) {
  section .row {
    width: 100%;
  }
}
section .row.gap {
  margin-bottom: 1rem;
}

section form .row .btn {
  margin-top: 1rem;
}

section form {
  margin-top: 1.5rem;
}

[type=text]:focus,
[type=email]:focus,
[type=password]:focus,
[type=tel]:focus,
[type=number]:focus,
textarea:focus {
  border-color: var(--black);
}

#notification {
  font-size: 1.5rem;
  padding: 1rem 0;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: none;
}

#notification.success {
  background-color: var(--success);
}

#notification.warning {
  background-color: var(--warning);
}

#notification.error {
  background-color: var(--err);
}

#notification .middle {
  padding-right: 2rem;
}

#notification .close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("../images/close.svg");
  background-repeat: no-repeat;
  background-size: 1.5rem auto;
  background-position: center;
  background-color: inherit;
  border: none;
  padding: 1.5rem;
  margin-top: 0.5rem;
}