/* Sailvero 0.2.4 contact-form presentation.
 * Targets the stable AEY Core form contract directly and does not depend on an
 * optional theme wrapper around the shortcode output.
 */
.svr-site .aey-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  width: 100%;
  max-width: 1120px;
  margin: 28px auto 24px;
  padding: clamp(24px, 4vw, 42px);
  box-sizing: border-box;
  border: 1px solid var(--swy-line, #d5e0dd);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f7faf9 100%);
  box-shadow: 0 18px 48px rgba(8, 37, 53, .10);
}

.svr-site .aey-contact-form > .aey-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.svr-site .aey-contact-form label,
.svr-site .aey-contact-form legend {
  color: var(--swy-navy, #082535);
  font-size: .94rem;
  font-weight: 760;
  line-height: 1.35;
}

.svr-site .aey-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.svr-site .aey-contact-form select,
.svr-site .aey-contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 15px;
  box-sizing: border-box;
  border: 1px solid #bfd0cc;
  border-radius: 13px;
  background: #ffffff;
  color: var(--swy-ink, #17333d);
  font: inherit;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(8, 37, 53, .035);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.svr-site .aey-contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.svr-site .aey-contact-form input:not([type="checkbox"]):not([type="radio"]):focus,
.svr-site .aey-contact-form select:focus,
.svr-site .aey-contact-form textarea:focus {
  border-color: var(--swy-teal, #74aba4);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(116, 171, 164, .20);
}

.svr-site .aey-contact-form > fieldset.aey-contact-form__field {
  grid-column: 1 / -1;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 18px 20px 20px;
  box-sizing: border-box;
  border: 1px solid var(--swy-line, #d5e0dd);
  border-radius: 16px;
  background: rgba(116, 171, 164, .08);
}

.svr-site .aey-contact-form > fieldset.aey-contact-form__field legend {
  padding: 0 8px;
}

.svr-site .aey-contact-form > fieldset.aey-contact-form__field label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(8, 37, 53, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--swy-ink, #17333d);
  font-weight: 650;
  cursor: pointer;
}

.svr-site .aey-contact-form input[type="radio"],
.svr-site .aey-contact-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--swy-navy-2, #0d3f4e);
}

.svr-site .aey-contact-form > .aey-contact-form__field:has(textarea),
.svr-site .aey-contact-form > .aey-contact-form__field:has(input[type="checkbox"]),
.svr-site .aey-contact-form > .aey-contact-form__message,
.svr-site .aey-contact-form > .aey-contact-form__actions {
  grid-column: 1 / -1;
}

.svr-site .aey-contact-form > .aey-contact-form__field:has(input[type="checkbox"]) {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(116, 171, 164, .28);
  border-radius: 14px;
  background: rgba(116, 171, 164, .10);
}

.svr-site .aey-contact-form > .aey-contact-form__field:has(input[type="checkbox"]) label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: var(--swy-ink, #17333d);
  font-weight: 620;
  cursor: pointer;
}

.svr-site .aey-contact-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0 0;
}

.svr-site .aey-contact-form button,
.svr-site .aey-contact-form input[type="submit"] {
  min-width: 200px;
  min-height: 54px;
  padding: 15px 27px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--swy-navy, #082535), var(--swy-navy-2, #0d3f4e));
  color: #fff;
  font: inherit;
  font-weight: 780;
  box-shadow: 0 14px 30px rgba(8, 37, 53, .20);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.svr-site .aey-contact-form button:hover,
.svr-site .aey-contact-form input[type="submit"]:hover {
  transform: translateY(-1px);
  background: #123f55;
  box-shadow: 0 18px 34px rgba(8, 37, 53, .24);
}

.svr-site .aey-contact-form button:focus-visible,
.svr-site .aey-contact-form input[type="submit"]:focus-visible {
  outline: 3px solid var(--swy-gold, #b88f4a);
  outline-offset: 3px;
}

.svr-site .aey-contact-form__message {
  padding: 15px 17px;
  border: 1px solid var(--swy-line, #d5e0dd);
  border-radius: 13px;
  font-weight: 650;
}

.svr-site .aey-contact-form__message--success {
  border-color: rgba(55, 126, 92, .32);
  background: #edf8f1;
  color: #215f40;
}

.svr-site .aey-contact-form__message--error {
  border-color: rgba(160, 70, 58, .30);
  background: #fff2ef;
  color: #843b31;
}

.svr-site .aey-contact-form + .swy-note {
  max-width: 1120px;
  margin: 14px auto 0;
  color: var(--swy-muted, #52676f);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .svr-site .aey-contact-form {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .svr-site .aey-contact-form > fieldset.aey-contact-form__field,
  .svr-site .aey-contact-form > .aey-contact-form__field:has(textarea),
  .svr-site .aey-contact-form > .aey-contact-form__field:has(input[type="checkbox"]),
  .svr-site .aey-contact-form > .aey-contact-form__message,
  .svr-site .aey-contact-form > .aey-contact-form__actions {
    grid-column: auto;
  }

  .svr-site .aey-contact-form > fieldset.aey-contact-form__field {
    align-items: stretch;
  }

  .svr-site .aey-contact-form > fieldset.aey-contact-form__field label {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
  }

  .svr-site .aey-contact-form button,
  .svr-site .aey-contact-form input[type="submit"] {
    width: 100%;
  }
}
