.founders-form {
  background: linear-gradient(180deg, var(--light-color) 0%, var(--darker-color) 100%);
}

.founders-form__content {
  padding: var(--space-medium);
  padding-top: calc(var(--header-height) + var(--space-medium));
}

.founders-form__headline {
  text-align: center;
  font-size: var(--font-size-small);
  margin: 0;
}

.founders-form__headline h2 {
  margin: 0;
}

.founders-form__text {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: var(--font-size-small);
}

.founders-form__text p {
  margin: 0;
}

.founders-form__grid {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: var(--space-small);
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.founders-form__container {
  width: 100%;
  box-shadow: 0 var(--spacing-large) var(--spacing-xx-large) rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-large);
  gap: var(--space-small);
}

.founders-form__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-medium);
  padding-top: var(--space-medium);
  flex: 1 1 auto;
  justify-content: center;
  transition: all 0.3s ease;
}

.founders-form__form.submitting {
  opacity: 0.7;
  pointer-events: none;
}

.founders-form__form.submitting .founders-form__input,
.founders-form__form.submitting .founders-form__select {
  background: #333;
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.founders-form__form-disabled {
  opacity: 0.8;
  gap: var(--spacing-x-large);
}

.founders-form__row,
.founders-form__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-medium);
}

.founders-form__row-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-medium);
}

.founders-form__row-2-columns > .founders-form__group {
  min-width: 0;
}

.founders-form__group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.founders-form__label {
  position: absolute;
  left: 16px;
  top: 16px;
  transition: 0.2s;
  color: var(--text-color);
  font-weight: 600;
  font-size: var(--font-size-x-small);
}

.founders-form__label-static {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
}

.founders-form__select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.founders-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0000005f;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-x-small);
  height: var(--button-height);
  width: 100%;
}

.founders-form__select-wrapper::after {
  content: '';
  position: absolute;
  top: 35%;
  right: 8px;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M8 12l8 8 8-8" stroke="white" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center center;
  background-size: 16px 16px;
}

.founders-form__input,
.founders-form__select {
  height: var(--button-height);
  border-radius: var(--border-radius-x-small);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #0000005f;
  color: white;
  transition: var(--transition);
  padding-left: var(--space-medium);
  position: relative;
  font-size: var(--font-size-base);
}

.founders-form__input:focus,
.founders-form__select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.founders-form__input:focus + .founders-form__label,
.founders-form__input:focus + .founders-form__label,
.founders-form__input:not(:placeholder-shown):not(#birthdate) + .founders-form__label,
.founders-form__input.has-value + .founders-form__label,
.founders-form__select:focus + .founders-form__label,
.founders-form__select.has-value + .founders-form__label {
  top: -8px;
  left: var(--space-small);
  font-size: var(--font-size-x-small);
  color: var(--primary-color);
  background: var(--darker-color);
  padding: 0 var(--space-x-small);
  border-radius: var(--border-radius-medium);
}

#birthdate:focus + .founders-form__label,
#birthdate.has-value + .founders-form__label {
  top: -8px;
  left: var(--space-small);
  font-size: var(--font-size-x-small);
  color: var(--primary-color);
  background: var(--darker-color);
  padding: 0 var(--space-x-small);
  border-radius: var(--border-radius-medium);
}

.founders-form__group:has(.founders-form__select:focus) .founders-form__label,
.founders-form__group:has(.founders-form__select.has-value) .founders-form__label {
  top: -8px;
  left: var(--space-small);
  font-size: var(--font-size-x-small);
  color: var(--primary-color);
  background: var(--darker-color);
  padding: 0 var(--space-x-small);
  border-radius: var(--border-radius-medium);
}

.founders-form__checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-medium);
  margin-top: var(--space-small);
}

.founders-form__group-newsletter-checkbox {
  margin-top: var(--space-small);
  margin-bottom: 0;
}

.founders-form__toggle-buttons-phone {
  display: flex;
  border-radius: var(--border-radius-x-small);
  overflow: hidden;
  border: 2px solid var(--primary-color);
  margin-top: var(--space-small);
}

.founders-form__toggle-input-phone {
  display: none;
}

.founders-form__toggle-label-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  flex: 1 1 0;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  border-right: 2px solid var(--primary-color);
}

.founders-form__toggle-label-phone:last-child {
  border-right: none;
}

.founders-form__toggle-input-phone:checked+.founders-form__toggle-label-phone {
  background: var(--primary-color);
  color: #fff;
}

.founders-form__checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-small);
  font-size: var(--font-size-base);
  color: var(--text-color);
  font-weight: 500;
  text-align: left;
}

.founders-form__checkbox-item input[type="checkbox"] {
  vertical-align: middle;
  margin: 0;
}

.founders-form__submit {
  height: var(--button-height);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-base);
  border: none;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-small);
  position: relative;
}

.founders-form__submit:hover:not(.loading) {
  box-shadow: 0 var(--space-small) var(--spacing-large) rgba(255, 107, 53, 0.3);
}

.founders-form__submit.loading {
  cursor: not-allowed;
  background: linear-gradient(135deg, #666, #555);
  animation: pulse 2s infinite;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-medium);
  display: none;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 3px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.progress-bar.active .progress-bar__fill {
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Form submitting state */
.founders-form__form.submitting {
  opacity: 0.8;
  pointer-events: none;
}

.founders-form__form.submitting .founders-form__input,
.founders-form__form.submitting .founders-form__select {
  opacity: 0.6;
}

.founders-form__form.submitting .founders-form__label {
  opacity: 0.6;
}

.founders-form__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-x-small);
}

.founders-form__disclaimer span {
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

@media (min-width: 600px) {
  .founders-form__content {
    justify-content: center;
  }

  .founders-form__container {
    background: linear-gradient(145deg, var(--lighter-color), rgba(19, 19, 19, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: var(--space-medium);
    gap: var(--spacing-large);
  }

  .founders-form__headline {
    font-size: var(--font-size-x-large);
  }

  .founders-form__text {
    font-size: var(--font-size-base);
  }

  .founders-form__label {
    font-size: var(--font-size-small);
  }

  .founders-form__input:focus+.founders-form__label,
  .founders-form__input:not(:placeholder-shown):not(#birthdate)+.founders-form__label,
  .founders-form__input.has-value+.founders-form__label,
  .founders-form__select:focus+.founders-form__label,
  .founders-form__select.has-value+.founders-form__label {
    background: linear-gradient(145deg, var(--lighter-color), rgba(19, 19, 19, 0.9));
  }
  #birthdate:focus+.founders-form__label,
  #birthdate.has-value+.founders-form__label {
    background: linear-gradient(145deg, var(--lighter-color), rgba(19, 19, 19, 0.9));
  }

  .founders-form__group:has(.founders-form__select:focus) .founders-form__label,
  .founders-form__group:has(.founders-form__select.has-value) .founders-form__label {
    background: linear-gradient(145deg, var(--lighter-color), rgba(19, 19, 19, 0.9));
  }

  .founders-form__grid {
    flex: unset;
  }

  .founders-form__disclaimer {
    gap: var(--space-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-small);
  }
}

@media (min-width: 1024px) {
  .founders-form__content {
    padding: var(--header-height) var(--space-medium);
    margin: var(--header-height) auto 0;
  }

  .founders-form__container {
    max-width: 600px;
    margin: 0 auto;
  }

  .founders-form__input,
  .founders-form__select {
    height: var(--button-height-large);
  }

  .founders-form__submit {
    font-size: var(--font-size-large);
    height: var(--button-height-large);
  }
}

/* Form Messages */
.form-message {
  margin: var(--space-small) 0 var(--space-medium) 0;
  padding: var(--space-small);
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-small);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
  display: block;
  clear: both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.form-message--success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid #059669;
}

.form-message--error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: 1px solid #dc2626;
}

.form-message__content {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-message__icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.form-message__text {
  flex: 1;
  line-height: 1.4;
}