.claudify-contact-form {
  background: var(--bera-color-beige);
  padding: var(--sp-pt, 0px) var(--sp-pr, 24px) var(--sp-pb, 80px) var(--sp-pl, 24px);
}

.claudify-contact-form__inner {
  max-width: 800px;
  margin: 0 auto;
}

.claudify-contact-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Row: Name + Email side by side */
.claudify-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.claudify-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.claudify-contact-form__field--last {
  margin-bottom: 24px;
}

.claudify-contact-form__label {
  font-family: var(--sp-label-font, 'Cormorant Garamond', Georgia, serif);
  font-style: normal;
  font-weight: var(--sp-label-weight, 500);
  font-size: var(--sp-label-size, 14px);
  color: #1A1C18;
  line-height: 1;
}

.claudify-contact-form__input,
.claudify-contact-form__textarea {
  width: 100%;
  background: #ECEAE3;
  border: none;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1A1C18;
  outline: none;
  box-sizing: border-box;
  transition: background 0.2s ease;
  -webkit-appearance: none;
}

.claudify-contact-form__input,
.claudify-contact-form__select {
  height: 54px;
  line-height: normal;
}

.claudify-contact-form__input::placeholder,
.claudify-contact-form__textarea::placeholder {
  color: #9A9A95;
}

.claudify-contact-form__input:focus,
.claudify-contact-form__textarea:focus,
.claudify-contact-form__select:focus-visible {
  background-color: #E4E2DB;
}

.claudify-contact-form__textarea {
  height: 180px;
  resize: none;
  line-height: 1.6;
}

/* Topic dropdown — matches the text inputs, with a custom chevron */
.claudify-contact-form__select {
  width: 100%;
  background-color: #ECEAE3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A9A95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 16px 44px 16px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: #1A1C18;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.claudify-contact-form__select:focus {
  background-color: #E4E2DB;
}

/* Show the "Select a topic" prompt in the muted placeholder colour until a
   real topic is chosen (falls back to normal text colour where :has() is unsupported) */
.claudify-contact-form__select:has(option[value=""]:checked) {
  color: #9A9A95;
}

/* Send button */
.claudify-contact-form__submit {
  width: 100%;
  height: 59px;
  background: #0b2615;
  color: #fff;
  font-family: var(--sp-btn-font, 'Jost', sans-serif);
  font-size: var(--sp-btn-size, 16px);
  font-weight: var(--sp-btn-weight, 600);
  line-height: normal;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  border-radius: 50px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 28px;
}

.claudify-contact-form__submit:hover {
  background: #000000;
}

/* FAQ link */
.claudify-contact-form__faq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #8C8C8A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.claudify-contact-form__faq:hover {
  color: #1A1C18;
}

.claudify-contact-form__faq svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.claudify-contact-form__address {
  margin: 40px auto 0;
  padding-top: 30px;
  max-width: 460px;
  border-top: 1px solid rgba(26, 28, 24, 0.12);
  text-align: center;
  box-sizing: border-box;
}

.claudify-contact-form__address-heading {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: #1A1C18;
}

.claudify-contact-form__address-email {
  display: inline-block;
  margin: 0 0 10px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #1A1C18;
  text-decoration: none;
  transition: color 0.2s ease;
}

.claudify-contact-form__address-email:hover {
  color: #6D6E68;
}

.claudify-contact-form__address-text {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  color: #6D6E68;
  overflow-wrap: break-word;
}

/* Button: success state */
.claudify-contact-form__submit--success {
  background: #0b2615 !important;
  cursor: default;
  opacity: 0.85;
}

/* Button: error state */
.claudify-contact-form__submit--error {
  background: #FDDEE0 !important;
  color: #D95464 !important;
}

.claudify-contact-form__submit--error:hover {
  background: #F9CDD1 !important;
}

/* Mobile: stack Name + Email */
@media (max-width: 749px) {
  .claudify-contact-form {
    padding: 0 20px 48px;
    font-size: 15px;
    line-height: 1.8;
  }

  .claudify-contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Prevent iOS Safari auto-zoom on input focus (requires >= 16px) */
  .claudify-contact-form__input,
  .claudify-contact-form__select {
    font-size: 16px !important;
    height: 55px;
  }

  .claudify-contact-form__textarea {
    font-size: 16px !important;
  }

  .claudify-contact-form__address {
    margin-top: 34px;
    padding-top: 26px;
    max-width: 300px;
  }

  .claudify-contact-form__address-heading {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .claudify-contact-form__address-email {
    font-size: 14px;
  }

  .claudify-contact-form__address-text {
    font-size: 14px;
    line-height: 1.6;
  }
}
