/* Contact page layout. Loaded only on /kontakt/. */

#formularz {
  padding: 48px 0 54px;
}

/* Keep the same container axis as the sections above. */
#formularz .container {
  width: min(100%, var(--container));
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.contact-form-card {
  padding: 24px 26px;
}

.contact-form-card .eyebrow {
  margin-bottom: 8px;
}

.contact-form-card h2 {
  margin: 0 0 7px;
  font-size: 30px;
  line-height: 1.12;
}

.contact-form-card > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-card .wpcf7 {
  margin-top: 16px !important;
}

.contact-form-card .wpcf7 form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px !important;
}

.contact-form-card .wpcf7 form > p {
  margin: 0 !important;
}

/* Name + e-mail and phone + service stay paired. */
.contact-form-card .wpcf7 form > p:nth-of-type(n+5) {
  grid-column: 1 / -1;
}

.contact-form-card .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-card .wpcf7 input[type="text"],
.contact-form-card .wpcf7 input[type="email"],
.contact-form-card .wpcf7 input[type="tel"],
.contact-form-card .wpcf7 input[type="url"],
.contact-form-card .wpcf7 input[type="number"],
.contact-form-card .wpcf7 select {
  min-height: 44px !important;
  height: 44px !important;
  padding: 9px 12px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.contact-form-card .wpcf7 textarea {
  min-height: 108px !important;
  height: 108px !important;
  padding: 11px 12px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  resize: vertical;
}

.contact-form-card .wpcf7 .wpcf7-list-item label {
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.contact-form-card .wpcf7 .privacy-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.contact-form-card .wpcf7 .privacy-link:hover,
.contact-form-card .wpcf7 .privacy-link:focus-visible {
  color: #7c6cff;
  opacity: 1;
}

.contact-form-card .wpcf7 input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  margin-top: 1px;
}

.contact-form-card .wpcf7 input[type="submit"],
.contact-form-card .wpcf7 .wpcf7-submit {
  min-height: 44px !important;
  height: 44px;
  padding: 10px 19px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}

.contact-form-card .wpcf7-spinner {
  margin: 0 0 0 8px;
}

.contact-sidebar {
  gap: 12px;
}

.contact-option {
  padding: 18px;
}

.contact-option .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.contact-option span {
  margin-top: 9px;
  font-size: 10px;
}

.contact-option a,
.contact-option strong {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 920px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .contact-form-card .wpcf7 form {
    grid-template-columns: 1fr;
  }

  .contact-form-card .wpcf7 form > p {
    grid-column: 1 !important;
  }
}

@media (max-width: 767px) {
  #formularz {
    padding: 34px 0 40px;
  }

  .contact-form-card {
    padding: 19px;
  }

  .contact-form-card h2 {
    font-size: 26px;
  }

  .contact-sidebar {
    grid-template-columns: 1fr;
  }
}
