/*
 * Eptamed — Form "Diventa Ambassador".
 * Incluso direttamente nel markup dello shortcode [eptamed_ambassador_form],
 * così il form è stilizzato su qualunque pagina lo usi.
 */

.damb-join-form {
  background: #FAF7F2;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1C2221;
}

.damb-join-form *,
.damb-join-form *::before,
.damb-join-form *::after {
  box-sizing: border-box;
}

.damb-join-form h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #241509;
  margin: 0 0 6px;
}

.damb-form-group {
  margin-bottom: 14px;
}

.damb-form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  color: #4E5655;
  margin-bottom: 6px;
}

.damb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.damb-form-input,
.damb-form-select,
.damb-form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #1C2221;
  background: #fff;
  border: 1.5px solid rgba(122, 52, 24, .18);
  border-radius: 12px;
  padding: 0 16px;
  height: 48px;
  outline: none;
  transition: border-color 150ms;
}

.damb-form-input:focus,
.damb-form-select:focus,
.damb-form-textarea:focus {
  border-color: #7A3418;
}

.damb-form-textarea {
  height: auto;
  min-height: 96px;
  padding: 14px 16px;
  resize: vertical;
}

.damb-form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23A0ABAB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.damb-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: #7A3418;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background 150ms;
}

.damb-btn-submit:hover {
  background: #241509;
}

/* Responsive */
@media (max-width: 600px) {
  .damb-join-form {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .damb-form-row {
    grid-template-columns: 1fr;
  }

  .damb-form-input,
  .damb-form-select,
  .damb-form-textarea {
    font-size: 16px; /* evita lo zoom automatico su iOS */
  }
}
