/* =====================================================================
   Strona KONTAKT — redesign (Claude Design handoff).
   Wszystko scopowane pod body.fc-redesign. Reużywa systemu designu z
   design.css (tokeny, .tag, .crest, .btn, .serif, .container-wide).
   ===================================================================== */

/* ---------------- HERO ---------------- */
.fc-redesign .kt-hero {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  padding: calc(var(--top-stack-h, 82px) + 112px) 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fc-redesign .kt-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,0.4), transparent);
}
.fc-redesign .kt-crumb {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
  padding: 8px 16px; background: var(--paper-warm);
  border: 1px solid var(--line); border-radius: 99px;
}
.fc-redesign .kt-crumb a { color: var(--muted); text-decoration: none; }
.fc-redesign .kt-crumb a:hover { color: var(--navy); }
.fc-redesign .kt-crumb svg { opacity: 0.5; }
.fc-redesign .kt-crumb .cur { color: var(--navy); }
.fc-redesign .kt-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 1; letter-spacing: -0.015em;
  color: var(--ink); max-width: 1100px;
}
.fc-redesign .kt-hero h1 em { font-style: italic; color: var(--navy); }
.fc-redesign .kt-hero-lead {
  font-size: 19px; line-height: 1.55; color: #3a3f55; max-width: 680px; margin-top: 26px;
}

/* ---------------- KAFELKI SZYBKIEGO KONTAKTU ---------------- */
.fc-redesign .kt-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: -36px; position: relative; z-index: 2;
}
.fc-redesign .kt-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fc-redesign .kt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -22px rgba(14,32,73,0.28);
  border-color: var(--accent-soft);
}
.fc-redesign .kt-card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-redesign .kt-card .lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.fc-redesign .kt-card .val { font-size: 17px; font-weight: 600; color: var(--ink); word-break: break-word; }

/* ---------------- SEKCJE ---------------- */
.fc-redesign .kt-sec { padding: 72px 0; }

/* ---------------- GŁÓWNY GRID: formularz + boksy ---------------- */
.fc-redesign .kt-main-grid {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 32px; align-items: start;
}

/* karta formularza */
.fc-redesign .kt-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px;
}
.fc-redesign .kt-form-card > .tag { margin-bottom: 16px; }
.fc-redesign .kt-form-card h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px;
}
.fc-redesign .kt-form-card h2 em { font-style: italic; color: var(--navy); }
.fc-redesign .kt-form-intro { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 28px; }

/* pola (kartik ActiveForm renderuje .form-group + .form-control) */
.fc-redesign .kt-form .form-group { margin-bottom: 18px; }
.fc-redesign .kt-form label,
.fc-redesign .kt-form .control-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
/* złota gwiazdka przy polach wymaganych (Yii dodaje klasę .required) */
.fc-redesign .kt-form .required > label::after { content: " *"; color: var(--accent); }
/* rząd dwukolumnowy (Imię + Telefon) */
.fc-redesign .kt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fc-redesign .kt-form .form-control,
.fc-redesign .kt-form textarea,
.fc-redesign .kt-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s;
}
.fc-redesign .kt-form .form-control::placeholder,
.fc-redesign .kt-form textarea::placeholder { color: #9aa0ad; }
.fc-redesign .kt-form .form-control:focus,
.fc-redesign .kt-form textarea:focus,
.fc-redesign .kt-form select:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,106,0.15); outline: none;
}
.fc-redesign .kt-form textarea { min-height: 150px; resize: vertical; }
/* select: własna strzałka (gold), spójnie z polami */
.fc-redesign .kt-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9A86A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* RODO — natywny checkbox z granatowym accentem, dokładnie jak w projekcie.
   Wyższa specyficzność niż reguła etykiet (.kt-form label), by zresetować uppercase. */
.fc-redesign .kt-form label.kt-rodo {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5;
  text-transform: none; letter-spacing: normal; margin: 4px 0 20px; cursor: pointer;
}
.fc-redesign .kt-rodo input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--navy); cursor: pointer;
}
.fc-redesign .kt-form .has-error .form-control { border-color: #D9534F; }
.fc-redesign .kt-form .help-block { color: #9B2C2C; font-size: 12.5px; margin-top: 6px; }

.fc-redesign .kt-form-btn { margin-top: 4px; }
.fc-redesign .kt-form-btn .btn { padding: 15px 30px; font-size: 15px; }

/* baner sukcesu (flash) */
.fc-redesign .kt-flash-ok {
  display: flex; gap: 12px; align-items: flex-start;
  background: #ECF8F0; border: 1px solid #BFE6CC; color: #1E7D45;
  font-size: 14px; line-height: 1.5; padding: 14px 18px; border-radius: 12px; margin-bottom: 24px;
}
.fc-redesign .kt-flash-ok svg { flex-shrink: 0; margin-top: 2px; }
.fc-redesign .kt-flash-ok strong { display: block; }

/* ---------------- BOKSY INFO (prawa kolumna) ---------------- */
.fc-redesign .kt-aside { display: flex; flex-direction: column; gap: 18px; }
.fc-redesign .kt-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
}

/* ciepły (kremowy) boks — np. Dane firmy */
.fc-redesign .kt-box.warm { background: var(--paper-warm); border-color: transparent; }
.fc-redesign .kt-box.warm .kt-box-head .ic { background: #fff; }

/* granatowy boks adresu (jak w projekcie) */
.fc-redesign .kt-box.navy { background: var(--navy); border-color: transparent; color: #fff; }
.fc-redesign .kt-box.navy .tag { color: var(--accent); margin-bottom: 16px; }
.fc-redesign .kt-box.navy h3 {
  font-family: var(--serif); font-weight: 400; font-size: 27px; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.fc-redesign .kt-box.navy .kt-addr { color: var(--accent); }
.fc-redesign .kt-box.navy .kt-addr .sub { color: rgba(255,255,255,0.6); }

/* nagłówek jasnych boksów: subtelna ikona + mały label */
.fc-redesign .kt-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fc-redesign .kt-box-head .ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--paper-warm); border: 1px solid var(--line); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-redesign .kt-box-head .lbl { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.fc-redesign .kt-addr { font-size: 15px; line-height: 1.7; color: var(--ink); }
.fc-redesign .kt-addr .sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.fc-redesign .kt-box-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 99px; background: #fff;
  transition: filter .15s, transform .15s, border-color .15s;
}
.fc-redesign .kt-box-cta:hover { border-color: var(--accent); transform: translateX(2px); }
/* na granatowym tle: złoty przycisk z ciemnym tekstem */
.fc-redesign .kt-box.navy .kt-box-cta {
  background: var(--accent); color: var(--ink); border-color: transparent;
}
.fc-redesign .kt-box.navy .kt-box-cta:hover { filter: brightness(0.95); border-color: transparent; }

.fc-redesign .kt-hours-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.fc-redesign .kt-hours-row:last-child { border-bottom: none; padding-bottom: 0; }
.fc-redesign .kt-hours-row .d { color: var(--muted); }
.fc-redesign .kt-hours-row .h { font-weight: 600; color: var(--ink); }
.fc-redesign .kt-hours-row.off .h { color: var(--muted); font-weight: 500; }

/* dane firmowe — etykieta + wartość */
.fc-redesign .kt-data-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.fc-redesign .kt-data-row:last-child { border-bottom: none; padding-bottom: 0; }
.fc-redesign .kt-data-row .k { color: var(--muted); flex-shrink: 0; }
.fc-redesign .kt-data-row .v { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------------- MAPA (pełna szerokość) ---------------- */
.fc-redesign .kt-map-sec { padding-bottom: 84px; }
.fc-redesign .kt-map-wrap {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  height: 460px; background: var(--paper-warm); position: relative;
}
.fc-redesign .kt-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- RESPONSYWNOŚĆ ---------------- */
@media (max-width: 980px) {
  .fc-redesign .kt-main-grid { grid-template-columns: 1fr; }
  .fc-redesign .kt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fc-redesign .kt-cards { grid-template-columns: 1fr; margin-top: -24px; }
  .fc-redesign .kt-form-card { padding: 28px 22px; }
  /* imię/nazwa + telefon w 2 kolumnach: etykieta łamała się w 3 linie, pola na różnych
     wysokościach, placeholder ucięty — na telefonie jedno pod drugim */
  .fc-redesign .kt-row2 { grid-template-columns: 1fr; }
  .fc-redesign .kt-sec { padding: 56px 0; }
  .fc-redesign .kt-map-wrap { height: 340px; }
}
