
/* ===== forms.css ===== */

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logos img {
    max-height: 80px;
}

.contact-card {
    display: flex;
    max-width: min(100%, 720px);
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    justify-content: center;
}

@media (max-width: 600px) {
  .contact-card {
      padding: 1.2rem 1.2rem;
  }
}

.contact-form {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form label span.required {
  color: #c00;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    font: inherit;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form button {
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,140,0,0.25);
}

.contact-form input:required,
.contact-form textarea:required,
.contact-form select:required {
  border: 1px solid #bbb;
  border-left: 4px solid var(--accent);
}

.contact-form input:required:focus,
.contact-form textarea:required:focus,
.contact-form select:required:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255,140,0,0.25);
}

.contact-form input:required:placeholder-shown,
.contact-form textarea:required:placeholder-shown {
  border-left: 4px solid var(--accent);
}

.contact-form textarea {
    min-height: 140px;
}

.contact-form button {
  margin-top: 0.5rem;
  padding: 0.6rem;
  font-weight: 600;
}

/* Popup */
.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 2000;
}

.success-popup.show {
    opacity: 1;
    pointer-events: all;
}

.success-popup-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    width: min(90%, 380px);
    text-align: center;
}

/* Legal Boxes */
.legal-box {
  position: fixed;
  inset: 8vh 8vw;
  background: #111;
  color: #eee;
  padding: 2rem 2.5rem;
  overflow-y: auto;              /* 🔑 Scroll IN der Box */
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.6);
}

.legal-box:focus {
  outline: none;
}

.legal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.legal-box h1,
.legal-box h2,
.legal-box h3 {
  color: #fff;
}

.legal-box a {
  color: #9ecbff;
}

.legal-box a:hover {
  text-decoration: underline;
}
