/* ============================================
   KRESKI — Strona Kontakt
   /wp-content/themes/flatsome-child/css/kontakt.css
   ============================================ */

:root {
  --red: #e30613;
  --red-d: #b80510;
  --black: #1a1a1a;
  --gray-d: #2d2d2d;
  --gray-m: #6b6b6b;
  --gray-l: #f4f4f4;
  --gray-b: #e2e2e2;
  --white: #fff;
  --font: 'Exo 2', sans-serif;
}

/* Reset Flatsome na tej stronie */
.kreski-kontakt .container,
.kreski-kontakt .row,
.kreski-kontakt .col {
  all: unset;
}

/* ── Wrapper ── */
.kreski-kontakt {
  font-family: var(--font);
  color: var(--black);
}

.kk-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Breadcrumb ── */
.kk-breadcrumb {
  padding: 12px 0;
  background: var(--gray-l);
  border-bottom: 1px solid var(--gray-b);
  font-size: 12px;
  color: var(--gray-m);
}
.kk-breadcrumb a {
  color: var(--gray-m);
  text-decoration: none;
  transition: color .2s;
}
.kk-breadcrumb a:hover { color: var(--red); }
.kk-bc-sep { margin: 0 6px; }
.kk-breadcrumb span:last-child { color: var(--black); font-weight: 600; }

/* ── Info column title ── */
.kk-info-title,
h1.kk-info-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--black) !important;
  margin: 0 0 24px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

/* ── Main Layout ── */
.kk-layout {
  padding: 48px 0 80px;
  background: var(--white);
}
.kk-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Contact Info ── */
.kk-info {}

.kk-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-b);
}
.kk-contact-item:last-of-type {
  border-bottom: none;
}
.kk-contact-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
}
.kk-contact-body {}
.kk-contact-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-m);
  margin-bottom: 4px;
}
.kk-contact-val {
  display: block !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--black) !important;
  text-decoration: none !important;
}
a.kk-contact-val:hover { color: var(--red); }
.kk-contact-sub {
  display: block;
  font-size: 12px;
  color: var(--gray-m);
  margin-top: 3px;
  text-decoration: none;
}
a.kk-contact-sub:hover { color: var(--red); }
.kk-rejestr {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.6;
}

/* ── Hours ── */
.kk-hours {
  margin-bottom: 20px;
  background: var(--gray-l);
  padding: 20px;
}
.kk-hours-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--black);
  margin: 0 0 12px;
}
.kk-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-b);
}
.kk-hours-row:last-child { border-bottom: none; }
.kk-hours-val { font-weight: 700; }
.kk-hours-closed { color: var(--gray-m); }

/* ── Map ── */
.kk-map {
  width: 100%;
  height: 220px;
  background: var(--gray-l);
  border: 1px solid var(--gray-b);
  overflow: hidden;
}
.kk-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Form wrap ── */
.kk-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-b);
  padding: 32px;
}
.kk-form-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.kk-form-desc {
  font-size: 13px;
  color: var(--gray-m);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ============================================
   CF7 — layout zgodny z makietą
   ============================================ */

/* Ukryj domyślne paragrafy CF7, używamy własnego layoutu */
.kk-cf7-wrap .wpcf7 br { display: none; }
.kk-cf7-wrap .wpcf7 p { margin: 0; }

/* Siatka formularza */
.kk-cf7-wrap .wpcf7 .kk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.kk-cf7-wrap .wpcf7 .kk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.kk-cf7-wrap .wpcf7 .kk-field--full {
  grid-column: 1 / -1;
}

/* Etykiety */
.kk-cf7-wrap .wpcf7 label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--black);
  margin-bottom: 5px;
}

/* Pola input */
.kk-cf7-wrap .wpcf7 input[type="text"],
.kk-cf7-wrap .wpcf7 input[type="email"],
.kk-cf7-wrap .wpcf7 input[type="tel"],
.kk-cf7-wrap .wpcf7 select,
.kk-cf7-wrap .wpcf7 textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-b);
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}
.kk-cf7-wrap .wpcf7 input:focus,
.kk-cf7-wrap .wpcf7 textarea:focus,
.kk-cf7-wrap .wpcf7 select:focus {
  border-color: var(--red);
}
.kk-cf7-wrap .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* Dropdown — strzałka */
.kk-cf7-wrap .wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Fix — CF7 owija select w span który obcina tekst */
.kk-cf7-wrap .wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
}
.kk-cf7-wrap .wpcf7 .wpcf7-form-control-wrap select {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

/* Checkboxy RODO */
.kk-cf7-wrap .wpcf7 .kk-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.kk-cf7-wrap .wpcf7 .wpcf7-checkbox,
.kk-cf7-wrap .wpcf7 .wpcf7-acceptance {
  display: block;
}
.kk-cf7-wrap .wpcf7 .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
}
.kk-cf7-wrap .wpcf7 .wpcf7-list-item input[type="checkbox"],
.kk-cf7-wrap .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  accent-color: var(--red) !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.kk-cf7-wrap .wpcf7 .wpcf7-list-item-label,
.kk-cf7-wrap .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 12px !important;
  color: var(--gray-m) !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  cursor: pointer;
}
.kk-cf7-wrap .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a {
  color: var(--red);
  text-decoration: none;
}
.kk-cf7-wrap .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a:hover {
  text-decoration: underline;
}

/* Przycisk WYŚLIJ */
.kk-cf7-wrap .wpcf7 input[type="submit"] {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 15px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
  border-radius: 0;
}
.kk-cf7-wrap .wpcf7 input[type="submit"]:hover {
  background: var(--red-d);
}

/* Walidacja */
.kk-cf7-wrap .wpcf7 .wpcf7-not-valid-tip {
  font-size: 11px;
  color: var(--red);
  margin-top: 3px;
  display: block;
}
.kk-cf7-wrap .wpcf7 .wpcf7-response-output {
  font-size: 13px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  background: #fef2f2;
  margin-top: 12px;
}
.kk-cf7-wrap .wpcf7 .wpcf7-mail-sent-ok {
  border-left-color: #1a7a3a;
  background: #eafaf0;
  color: #1a7a3a;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .kk-layout-grid {
    grid-template-columns: 1fr;
  }
  .kk-form-wrap {
    order: -1;
  }
  .kk-inner {
    padding: 0 16px;
  }
  .kk-layout {
    padding: 32px 0 60px;
  }
  .kk-cf7-wrap .wpcf7 .kk-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kk-form-wrap {
    padding: 24px 16px;
  }
}

/* ── Pobij Flatsome — usuń pogrubienie z danych kontaktowych ── */
.kreski-kontakt .kk-contact-val,
.kreski-kontakt .kk-contact-val a,
.kreski-kontakt a.kk-contact-val,
.kreski-kontakt .kk-contact-body a,
.kreski-kontakt .kk-contact-body strong,
.kreski-kontakt .kk-contact-body b {
  font-weight: 400 !important;
  font-size: 15px !important;
}
