/* kontakt.css — final compact SaaS */

.contact-page { background: var(--bg); }

/* HERO: krótszy, lżejszy */
.contact-hero .page-hero__inner {
  padding-top: clamp(26px, 3.6vw, 44px);
  padding-bottom: clamp(18px, 2.8vw, 34px);
}
.contact-hero .page-hero__copy {
  max-width: 860px;
}
.contact-hero h1 {
  margin-bottom: 8px;
  line-height: 1.08;
}
.contact-hero .lead--hero {
  max-width: 60ch;
}
.contact-hero__chips {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-hero__chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.72);
  font-weight: 650;
  font-size: 0.86rem;
  padding: 6px 11px;
}

/* SECTION */
.contact-section {
  padding-top: 12px;
  padding-bottom: 56px;
}
.contact-grid {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* CARDS */
.contact-info-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* LEFT CARD */
.contact-info-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}
.contact-info-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.contact-steps {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.contact-meta {
  margin-top: 14px;
  color: var(--muted);
}
.contact-meta a {
  color: #0b5f67;
  font-weight: 700;
  text-decoration: none;
}
.contact-meta a:hover {
  text-decoration: underline;
}

/* FORM CARD */
.contact-form-card {
  padding: 18px;
}
.form-head h2 {
  margin: 0 0 2px;
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
}
.form-intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FORM GRID (kompakt) */
.rm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}
.field-span-2 { grid-column: 1 / -1; }

.form-field {
  display: grid;
  gap: 5px;
}
.form-field label {
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.01em;
}
.form-field label span { color: #c62828; }
.form-field label small {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.86em;
}

/* INPUTS */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-field textarea {
  min-height: 102px;
  resize: vertical;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: rgba(0,131,132,.46);
  box-shadow: 0 0 0 4px rgba(0,131,132,.12);
}

.field-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ERRORS */
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: rgba(198,40,40,.55);
  box-shadow: 0 0 0 4px rgba(198,40,40,.12);
}
.field-error {
  margin: 0;
  min-height: 1.02em;
  font-size: 0.82rem;
  color: #b71c1c;
}

/* CONSENT */
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.91rem;
  color: var(--muted);
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
}
.form-consent a {
  color: #0b5f67;
  text-decoration: none;
  font-weight: 650;
}
.form-consent a:hover { text-decoration: underline; }

/* ACTIONS */
.form-actions {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* STATUS */
.form-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: none;
  font-size: 0.93rem;
}
.form-status.is-success {
  display: block;
  border-color: rgba(22,163,74,.35);
  background: rgba(22,163,74,.1);
  color: #14532d;
}
.form-status.is-error {
  display: block;
  border-color: rgba(198,40,40,.35);
  background: rgba(198,40,40,.08);
  color: #7f1d1d;
}

/* Honeypot */
.hp-wrap {
  position: absolute;
  left: -99999px;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-info-card {
    position: static;
    padding: 16px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .contact-hero__chips { justify-content: flex-start; }

  .rm-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .field-span-2 {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}
