/* Kontakt — premium compact card form (newsletter-inspired) */

.contact-section {
  --ct-light-green: #86efac;
  --ct-primary-green: #4ade80;
  --ct-dark-green: #166534;
  --ct-bg: #16212f;
  --ct-card: #223044;
  --ct-text: #ffffff;
  --ct-text-secondary: #d1d5db;
  --ct-field-height: 48px;

  position: relative;
  overflow: hidden;
  color: var(--ct-text);
  padding: clamp(1.65rem, 3vw, 2.35rem) 1.25rem;
  border-top: 1px solid rgba(134, 239, 172, .1);
  border-bottom: 1px solid rgba(22, 33, 47, .8);
  background-color: var(--ct-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 18% 20%, rgba(134, 239, 172, .18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 82% 75%, rgba(74, 222, 128, .08), transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 0%, rgba(255, 255, 255, .04), transparent 60%),
    linear-gradient(128deg, rgba(134, 239, 172, .14) 0%, rgba(74, 222, 128, .05) 22%, #1a3340 48%, var(--ct-bg) 78%, #111827 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .28;
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(134, 239, 172, .1), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 47.5rem);
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: center;
  padding: clamp(1.15rem, 2.4vw, 1.55rem) clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: 24px;
  background-color: rgba(34, 48, 68, .72);
  border: 1px solid rgba(134, 239, 172, .14);
  box-shadow:
    0 20px 48px rgba(17, 24, 39, .42),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 0 60px rgba(74, 222, 128, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* —— Copy —— */
.contact-copy .eyebrow {
  margin: 0 0 .38rem;
  color: var(--ct-light-green);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .68rem;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(134, 239, 172, .16);
}

.contact-copy h2 {
  margin: 0 auto .32rem;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 900;
  text-wrap: balance;
  color: var(--ct-text);
  text-shadow: 0 2px 16px rgba(17, 24, 39, .35);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--ct-text-secondary);
  font-size: .86rem;
  line-height: 1.45;
}

/* —— Form —— */
.contact-form {
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  text-align: left;
  display: grid;
  gap: .55rem;
}

.contact-form label:not(.consent) {
  display: grid;
  gap: .28rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(209, 213, 219, .9);
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(59, 77, 99, .55);
  border-radius: 16px;
  padding: 0 .9rem;
  color: var(--ct-text);
  background: rgba(22, 33, 47, .85);
  font-size: .9rem;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .18);
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.contact-form input:not([type="checkbox"]) {
  height: var(--ct-field-height);
  min-height: var(--ct-field-height);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(209, 213, 219, .62);
}

.contact-form textarea {
  min-height: 6.75rem;
  padding: .68rem .9rem;
  resize: vertical;
  line-height: 1.45;
}

.contact-form input:not([type="checkbox"]):hover,
.contact-form textarea:hover {
  border-color: rgba(74, 222, 128, .26);
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ct-primary-green);
  background-color: rgba(22, 33, 47, .95);
  box-shadow:
    0 3px 14px rgba(17, 24, 39, .24),
    0 0 0 3px rgba(74, 222, 128, .14);
}

/* —— Footer: consent, captcha, button —— */
.contact-form-footer {
  display: grid;
  gap: .5rem;
  margin-top: .2rem;
  width: 100%;
  justify-items: center;
}

.contact-form-footer .consent {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  color: rgba(209, 213, 219, .86);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
}

.contact-form-footer .consent input {
  width: 1rem;
  height: 1rem;
  min-height: auto;
  margin-top: .14rem;
  flex-shrink: 0;
  accent-color: var(--ct-primary-green);
  border-radius: 4px;
}

.contact-form-footer .consent a {
  color: var(--ct-light-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .16rem;
  transition: color .2s ease;
}

.contact-form-footer .consent a:hover {
  color: var(--ct-primary-green);
}

.contact-captcha {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: -.15rem 0 -.25rem;
  padding: .1rem 0;
  transform: scale(.84);
  transform-origin: center center;
  opacity: .88;
  filter: saturate(.82) brightness(.94);
}

.contact-captcha .h-captcha {
  display: flex;
  justify-content: center;
  margin: 0;
}

.contact-form-footer > button {
  width: 100%;
  height: var(--ct-field-height);
  min-height: var(--ct-field-height);
  margin: 0;
  border: 0;
  border-radius: 14px;
  padding: 0 1.35rem;
  background: linear-gradient(135deg, var(--ct-light-green) 0%, var(--ct-primary-green) 52%, #22c55e 100%);
  color: var(--ct-dark-green);
  font-weight: 900;
  font-size: .88rem;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(74, 222, 128, .28),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), box-shadow .24s ease, filter .24s ease;
}

.contact-form-footer > button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a7f3d0 0%, var(--ct-primary-green) 45%, #22c55e 100%);
  box-shadow:
    0 12px 32px rgba(74, 222, 128, .36),
    0 0 20px rgba(134, 239, 172, .16),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  filter: brightness(1.03);
}

.contact-form-footer > button:active:not(:disabled) {
  transform: translateY(0);
}

.contact-form-footer > button:disabled {
  opacity: .72;
  cursor: wait;
}

.contact-form .honeypot {
  position: absolute;
  left: -9999px;
}

/* —— Form message —— */
.contact-form-footer .form-message {
  display: none;
  width: 100%;
  margin: 0;
  padding: .7rem .85rem;
  border-radius: 14px;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.contact-form-footer .form-message.success,
.contact-form-footer .form-message.error {
  display: block;
  animation: contact-fade-in .3s ease-out both;
}

@keyframes contact-fade-in {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-form-footer .form-message.success {
  background: rgba(22, 101, 52, .28);
  color: var(--ct-text-secondary);
  border: 1px solid rgba(134, 239, 172, .22);
  box-shadow: 0 0 20px rgba(74, 222, 128, .08);
}

.contact-form-footer .form-message.error {
  background: rgba(127, 29, 29, .22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, .25);
}

/* —— Notice —— */
.contact-notice {
  margin: 0;
  padding: .7rem .85rem;
  text-align: center;
  background: rgba(22, 33, 47, .5);
  border: 1px solid rgba(134, 239, 172, .09);
  border-radius: 14px;
  color: rgba(209, 213, 219, .84);
  font-size: .76rem;
  line-height: 1.45;
}

.contact-notice strong {
  color: var(--ct-light-green);
  font-weight: 800;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .contact-section {
    padding-bottom: .35rem;
  }
}

@media (max-width: 820px) {
  .contact-section {
    padding: 1.75rem 1.1rem .25rem;
  }

  .contact-inner {
    width: 90%;
    gap: .9rem;
    padding: 1.15rem 1.3rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .contact-section {
    padding: 1.55rem 1rem .2rem;
  }

  .contact-inner {
    width: 100%;
    gap: .85rem;
    padding: 1.1rem 1rem 1.15rem;
    border-radius: 24px;
  }

  .contact-copy h2 {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
  }

  .contact-copy > p:not(.eyebrow) {
    font-size: .84rem;
  }

  .contact-form {
    gap: .5rem;
  }

  .contact-form textarea {
    min-height: 6.25rem;
  }

  .contact-captcha {
    transform: scale(.8);
    margin: -.2rem 0 -.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-footer .form-message.success,
  .contact-form-footer .form-message.error {
    animation: none;
  }

  .contact-form-footer > button:hover:not(:disabled) {
    transform: none;
  }
}