/* ============================================================
   Fiberglass World — Contact page styles
   (extends css/style.css — shares header, footer, contact widget)
   ============================================================ */

.contact-page { padding: 26px 0 4px; }

/* Breadcrumb (same look as the category page) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--navy); }
.crumb-home { display: inline-flex; }
.crumb-sep { color: var(--muted-2); }
.crumb-current { color: var(--ink); font-weight: 600; }

.contact-head { margin-bottom: 24px; }
.contact-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.contact-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- Two columns: form (left) + info (right) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  align-items: start;
}

/* ---------- Form card ---------- */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.contact-form-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.contact-form-card .form-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ct-field { display: flex; flex-direction: column; }
.ct-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.ct-field label .req { color: var(--red); }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ct-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--muted-2); }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 34, 54, .08);
}
.ct-field select {
  appearance: none;
  -webkit-appearance: none;
  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='%237a8190' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---------- Navy (blue) form variant ---------- */
.contact-form-card--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy-deep);
  color: #fff;
}
.contact-form-card--navy h2 { color: #fff; }
.contact-form-card--navy .form-hint { color: rgba(255,255,255,.6); }
.contact-form-card--navy .form-hint span { color: var(--gold-1) !important; }
.contact-form-card--navy .ct-field label { color: rgba(255,255,255,.85); }
.contact-form-card--navy .ct-field label .req { color: var(--gold-1); }
.contact-form-card--navy .ct-field input,
.contact-form-card--navy .ct-field select,
.contact-form-card--navy .ct-field textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.contact-form-card--navy .ct-field input::placeholder,
.contact-form-card--navy .ct-field textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form-card--navy .ct-field input:focus,
.contact-form-card--navy .ct-field select:focus,
.contact-form-card--navy .ct-field textarea:focus {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.contact-form-card--navy .ct-field select {
  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='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-form-card--navy .ct-field select option { color: var(--ink); }
.contact-form-card--navy .ct-consent { color: rgba(255,255,255,.7); }
.contact-form-card--navy .ct-consent input { accent-color: var(--red); }
.contact-form-card--navy .ct-consent a { color: var(--gold-1); }
.contact-form-card--navy .ct-submit { background: var(--red); }
.contact-form-card--navy .ct-submit:hover { background: var(--red-dark); }
.contact-form-card--navy .ct-success-ico { background: rgba(255,255,255,.12); color: #6ee7a0; }
.contact-form-card--navy .ct-success strong { color: #fff; }
.contact-form-card--navy .ct-success span { color: rgba(255,255,255,.7); }

/* Consent checkbox */
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.ct-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--navy); cursor: pointer; }
.ct-consent a { color: var(--navy); font-weight: 600; text-decoration: underline; }

.ct-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
}
.ct-submit:hover { background: var(--navy-2); }
.ct-submit:disabled { opacity: .65; cursor: default; }
.ct-submit svg { flex: none; }

/* Success state */
.ct-success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
}
.ct-success-ico {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  background: #e8f7ee;
  color: #1ca25a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-success strong { display: block; font-size: 16px; color: var(--ink); }
.ct-success span { font-size: 13.5px; color: var(--muted); }

/* ---------- Info column ---------- */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.ic-badge {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-badge svg { width: 19px; height: 19px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:first-of-type { padding-top: 0; }
.contact-line:last-child { border-bottom: none; padding-bottom: 0; }
.cl-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-icon svg { width: 20px; height: 20px; }
.cl-body { min-width: 0; }
.cl-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.cl-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.cl-value a { color: var(--ink); transition: color .2s; }
.cl-value a:hover { color: var(--red); }
.cl-value small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-2); margin-top: 2px; }
.cl-value-sm { font-size: 15px; }
.cl-closed { color: var(--muted); }

/* ---------- Map ---------- */
.contact-map {
  position: relative;
  margin-top: 28px;
  margin-bottom: 40px;   /* odstęp od stopki — jak na innych stronach (wcześniej mapa stykała się ze stopką) */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9edf2;
}
.contact-map iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}
.map-card {
  position: absolute;
  top: 22px;
  left: 22px;
  max-width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}
.map-card .mc-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.map-card .mc-brand svg { color: var(--red); flex: none; }
.map-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.map-card .mc-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  transition: color .2s;
}
.map-card .mc-dir:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-title { font-size: 23px; }
  .ct-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 20px; }
  .ct-submit { width: 100%; justify-content: center; }
  .contact-map iframe { height: 340px; }
  .map-card {
    position: static;
    max-width: none;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
}

/* ---------- Treść stron CMS (regulamin, polityka, FAQ…) — bez białych boxów ---------- */
.cms-prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2, #3a4255);
  padding-bottom: 28px;
  max-width: 860px;
}
.cms-prose > :first-child { margin-top: 0; }
.cms-prose h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 30px 0 12px; }
.cms-prose h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
/* Kotwice sekcji (np. regulamin#platnosci ze stopki) — offset pod przyklejony nagłówek (2 wiersze menu ≈130px). */
.cms-prose h2, .cms-prose h3 { scroll-margin-top: 145px; }
.cms-prose h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.cms-prose p { margin: 0 0 14px; }
.cms-prose ul, .cms-prose ol { margin: 0 0 14px; padding-left: 22px; }
.cms-prose li { margin: 5px 0; }
.cms-prose a { color: var(--red); text-decoration: underline; }
.cms-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.cms-prose blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--red); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.cms-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.cms-prose > table:first-child { margin-top: 0; }
.cms-prose table + table { margin-top: 24px; }
.cms-prose th, .cms-prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; font-size: 14px; }
.cms-prose th { background: var(--surface-2); }
.cms-prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
