/* =========================================================
   Nuni — Kontakt widget
   Adapted from nundes/Kontakt.html. Header + footer are
   intentionally absent — those come from the V3 header + Nuni
   Footer widgets that wrap this on the page. Background is a
   solid token (configurable via Elementor) rather than the
   radial-gradient on the prototype.
   ========================================================= */
.nuni-contact {
  position: relative;
  width: 100%;
  background: transparent;
  color: var(--nuni-ink, #2A1F14);
  padding: clamp(40px, 6vw, 80px) 0;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
}
.nuni-contact * { box-sizing: border-box; }

.nuni-contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

/* ───────── Left column ───────── */

.nuni-contact__left {
  display: flex;
  flex-direction: column;
  max-width: 560px;
}

.nuni-contact__title {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--nuni-ink, #2A1F14);
  margin: 0 0 20px;
}

.nuni-contact__lede {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--nuni-ink-2, #4A3C2C);
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* Info grid — 2 cols on desktop, 1 col on narrow */
.nuni-contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--nuni-line, rgba(28, 20, 12, 0.12));
}
.nuni-contact__info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nuni-contact__info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nuni-sand-deep, #8A765C);
}
.nuni-contact__info-value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--nuni-ink, #2A1F14);
}
.nuni-contact__info-value a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.nuni-contact__info-value a:hover {
  opacity: 0.7;
}

/* FAQ */
.nuni-contact__faq-title {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--nuni-ink, #2A1F14);
  margin: 0 0 20px;
}
.nuni-contact__faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nuni-contact__faq-item {
  border: 1px solid rgba(28, 20, 12, 0.08);
  border-radius: 10px;
  background: rgba(251, 247, 238, 0.45);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nuni-contact__faq-item:hover {
  background: rgba(251, 247, 238, 0.7);
}
.nuni-contact__faq-item[open] {
  background: rgba(251, 247, 238, 0.85);
  border-color: rgba(28, 20, 12, 0.15);
}
.nuni-contact__faq-trigger {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nuni-contact__faq-trigger::-webkit-details-marker { display: none; }
.nuni-contact__faq-q {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nuni-ink, #2A1F14);
  line-height: 1.4;
}
.nuni-contact__faq-icon {
  width: 18px;
  height: 18px;
  color: var(--nuni-muted, #6B5B47);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nuni-contact__faq-item[open] .nuni-contact__faq-icon {
  transform: rotate(180deg);
}
.nuni-contact__faq-body {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--nuni-ink-2, #4A3C2C);
}
.nuni-contact__faq-body p:first-child { margin-top: 0; }
.nuni-contact__faq-body p:last-child  { margin-bottom: 0; }

/* ───────── Right column: form card ───────── */

.nuni-contact__form-card {
  background: var(--nuni-page, #FBF7EE);
  border: 1px solid rgba(28, 20, 12, 0.08);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 20px 40px rgba(42, 31, 20, 0.06);
  position: relative;
  overflow: hidden;
}

/* Wrapper that fades out when success state shows */
.nuni-contact__form-wrapper {
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.nuni-contact__form-wrapper.is-hidden {
  opacity: 0;
  transform: scale(0.97) translateY(-12px);
  pointer-events: none;
  display: none;
}

.nuni-contact__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nuni-contact__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.nuni-contact__group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nuni-ink-2, #3A2E20);
}

.nuni-contact__input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(28, 20, 12, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  color: var(--nuni-ink, #1C140C);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.nuni-contact__input::placeholder {
  color: rgba(74, 60, 44, 0.45);
}
.nuni-contact__input:focus {
  border-color: var(--nuni-ink, #1C140C);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(28, 20, 12, 0.05);
}

/* Native select arrow → custom chevron */
.nuni-contact__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231C140C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.nuni-contact__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

/* Honeypot — invisible to humans, present in DOM for bots to fill */
.nuni-contact__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Submit button */
.nuni-contact__submit {
  width: 100%;
  padding: 15px 28px;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--nuni-ink, #1C140C);
  color: var(--nuni-page, #FAF9F6);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 20, 12, 0.08);
  margin-top: 6px;
  position: relative;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nuni-contact__submit:hover:not(:disabled) {
  background: var(--nuni-sand-deep, #8A765C);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 118, 92, 0.3);
}
.nuni-contact__submit:active:not(:disabled) {
  transform: translateY(0);
}
.nuni-contact__submit:disabled {
  opacity: 0.55;
  cursor: progress;
}
.nuni-contact__submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: nuni-contact-spin 0.7s linear infinite;
}
.nuni-contact__submit.is-loading .nuni-contact__submit-spinner {
  display: inline-block;
}
@keyframes nuni-contact-spin {
  to { transform: rotate(360deg); }
}

/* Inline error message under the form (validation, rate limit, etc) */
.nuni-contact__error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #8B2D2D;
  background: rgba(139, 45, 45, 0.06);
  border: 1px solid rgba(139, 45, 45, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}
.nuni-contact__error[hidden] { display: none; }

/* ───────── Success state ───────── */

.nuni-contact__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nuni-contact__success[hidden] { display: none; }
.nuni-contact__success.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.nuni-contact__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nuni-sand-deep, #5A6E62);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(90, 110, 98, 0.2);
}
.nuni-contact__success-icon svg {
  width: 32px;
  height: 32px;
}
.nuni-contact__success-title {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--nuni-ink, #2A1F14);
  margin: 0 0 14px;
}
.nuni-contact__success-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nuni-ink-2, #4A3C2C);
  margin: 0 0 10px;
  max-width: 400px;
}
.nuni-contact__success-message strong,
.nuni-contact__success-message em {
  font-style: normal;
  font-weight: 600;
  color: var(--nuni-ink, #2A1F14);
}
.nuni-contact__success-submessage {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nuni-muted, #6B5B47);
  max-width: 380px;
  margin: 0 0 28px;
}
.nuni-contact__success-reset {
  padding: 11px 24px;
  background: rgba(28, 20, 12, 0.05);
  color: var(--nuni-ink, #1C140C);
  border: 1px solid rgba(28, 20, 12, 0.12);
  border-radius: 999px;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nuni-contact__success-reset:hover {
  background: var(--nuni-ink, #1C140C);
  color: var(--nuni-page, #FAF9F6);
  border-color: var(--nuni-ink, #1C140C);
}

/* ───────── Responsive ───────── */

@media (max-width: 1024px) {
  .nuni-contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .nuni-contact__left {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .nuni-contact__info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nuni-contact__form-card {
    padding: 22px;
  }
}
