:root {
  --primary-color: #047487;
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

#donation-form, .donation-form-container {
  height: 100%;
  width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: start;
  gap: 1em;
}

.donation-form-container {
  width: 400px;
}



#donation-form label {
  font-size: 17px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  color: #1F242E;
  width: 100%;
  text-align: left;
}

#custom-donation-amount {
  width: 100%;
  height: 60px;
  font-size: 1em;
  position: relative;
}

#custom-donation-amount::before {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  content: "€";
}

.frequency-selector-container {
  display: flex;
  gap: 1em;
  width: 100%;
}

.donation-form-button {
  border-radius: 30px;
  border: 1px solid var(--primary-color);
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  color: var(--primary-color);
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  height: 60px;
}
.donation-form-button:hover, 
.donation-form-button.active {
  background-color: var(--primary-color);
  color: white;
}

.frequency-selector-container .donation-form-button {
  flex: 1;
}

.prices-container {
  display: grid;
  grid-row: 2;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.donation-form-input {
  color: #1F242E;
  background: white;
  height: 60px;
  width: 100%;
}

/* stripe elements adaption  */
div.donation-form-input {
  border-radius: 30px;
  border-width: 1px;
  border-style: solid;
  border-color: #DEE0F5;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.payment-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.donation-form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(4, 116, 135, 0.3);
}

.next-step-button {
  margin-top: 1em;
  width: 100%;
  height: 60px;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border: none;
  background-color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border-radius: 30px;

}
.next-step-button:not(:disabled):hover, 
.next-step-button:active {
  background-color: #0e9ab1;
  color: white;
}

.next-step-button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

.donation-inputs-container {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1px;
}

.input-error {
  color: red;
  font-size: 1em;
  margin-top: 0.1em;
  text-align: left;
  width: 100%;
}

.input-group.has-error .donation-form-input {
  border-color: red;
}

.form-group {
  width: 100%;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
  width: 100%;
}

.checkbox-field input[type="checkbox"] {
  clip: auto !important;
  position: relative !important;
}

@media (max-width: 768px) {
  #donation-form, .donation-form-container {
    width: 350px;
  }

  .donation-price-step > .next-step-button {
    margin-top: -20px;
  } 
}
