/* ============================================================
   CONTACT — two-column layout, underline form (dark theme)
   Fully responsive
   ============================================================ */

.contact {
  position: relative;          /* nový stacking context */
  z-index: 2;                  /* kryje cokoli pod sebou */
  background-color: var(--color-fg);
  min-height: 958px;
  padding-bottom: 125px;
}

.contact__inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
  padding-top: 125px;
  display: flex;
  align-items: flex-start;
}

/* ---- Left column ---- */
.contact__info {
  flex-shrink: 0;
  width: 480px;
}

.contact__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(37, 37, 41, 1);
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 54px;
}

.contact__heading {
  font-size: var(--text-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: #fff;
  margin: 0 0 22px;
}

.contact__desc {
  font-size: var(--text-body-l);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: #fff;
  margin: 0 0 18px;
  max-width: 480px;
}

.contact__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body-l);
  font-weight: 400;
  color: #fff;
  text-decoration: none;
}

.contact__phone-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---- Right column: form ---- */
.contact__form {
  flex: 1;
  margin-left: 244px;
  padding-top: 16px;
}

.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.contact__field-wrap {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
}

.contact__input,
.contact__textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 500;
  color: #fff;
  outline: none;
  padding: 0 0 15px;
  resize: none;
  display: block;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.contact__input:focus::placeholder,
.contact__textarea:focus::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact__input {
  height: 48px;
  padding-top: 0;
  line-height: var(--leading-tight);
}

.contact__textarea {
  height: 110px;
  padding-top: 10px;
  line-height: var(--leading-normal);
}

/* Checkbox row */
.contact__check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 0 46px;
}

.contact__checkbox {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #fff;
  cursor: pointer;
}

.contact__check-label {
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---- Service chip row ---- */
.contact__service-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.contact__service-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
  transition: color 150ms var(--ease-out);
}

.contact__service-chip:hover {
  color: rgba(255, 255, 255, 0.7);
}

.contact__service-chip:has(input:checked) {
  color: #ffffff;
}

.contact__service-check {
  display: none;
}

.contact__service-chip-icon {
  width: 15px;
  height: 15px;
  border: 1px solid #ffffff;
  border-radius: 0;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

.contact__service-chip:has(input:checked) .contact__service-chip-icon {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'><polyline points='3,7.5 6,10.5 12,4.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 11px 9px;
}

/* ---- Form feedback ---- */
.contact__feedback {
  margin-top: 18px;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  font-weight: 400;
}

.contact__feedback--ok {
  color: #4cd964;
}

.contact__feedback--error {
  color: #ff453a;
}

.contact__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Submit button */
.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 123px;
  height: 50px;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-fg);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.contact__submit:hover {
  background: var(--color-accent);
  color: var(--color-fg);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- Wide desktop down (1280) — zmenšit gap mezi sloupci ---- */
@media (max-width: 1279px) {
  .contact {
    min-height: auto;
    padding-bottom: 96px;
  }
  .contact__inner {
    padding-top: 96px;
  }
  .contact__info {
    width: 420px;
  }
  .contact__form {
    margin-left: 120px;
  }
  .contact__chip {
    margin-bottom: 40px;
  }
  .contact__fields {
    gap: 32px;
  }
}

/* ---- Tablet (1023) — stack na sloupce ---- */
@media (max-width: 1023px) {
  .contact {
    padding-bottom: 80px;
  }
  .contact__inner {
    flex-direction: column;
    padding-top: 80px;
    gap: 56px;
  }
  .contact__info {
    width: 100%;
    max-width: 600px;
  }
  .contact__form {
    flex: none;
    width: 100%;
    margin-left: 0;
    padding-top: 0;
  }
  .contact__chip {
    margin-bottom: 32px;
  }
  .contact__heading {
    margin-bottom: 18px;
  }
  .contact__desc {
    max-width: none;
  }
}

/* ---- Mobile (768) ---- */
@media (max-width: 767px) {
  .contact {
    padding-bottom: 64px;
  }
  .contact__inner {
    padding-top: 56px;
    gap: 40px;
  }
  .contact__chip {
    font-size: 11px;
    padding: 3px 9px;
    margin-bottom: 24px;
  }
  .contact__desc {
    font-size: 17px;
    margin-bottom: 16px;
  }
  .contact__phone {
    font-size: 17px;
  }
  .contact__fields {
    gap: 26px;
  }
  .contact__input,
  .contact__textarea {
    font-size: 18px;
    padding-bottom: 12px;
  }
  .contact__input {
    height: 40px;
  }
  .contact__textarea {
    height: 90px;
  }
  .contact__service-row {
    gap: 14px;
  }
  .contact__service-chip {
    font-size: 16px;
  }
  .contact__check-row {
    padding: 28px 0 32px;
    align-items: flex-start;
  }
  .contact__check-label {
    font-size: 11px;
    line-height: 1.4;
  }
  /* Submit button full width na mobile pro lepší click area */
  .contact__submit {
    width: 100%;
    max-width: 280px;
    height: 52px;
    font-size: 15px;
  }
}

/* ---- Phone (480) — minor polish ---- */
@media (max-width: 479px) {
  .contact__inner {
    padding-top: 44px;
  }
  .contact__input,
  .contact__textarea {
    font-size: 17px;
  }
  .contact__service-row {
    gap: 12px;
  }
  .contact__service-chip {
    font-size: 15px;
  }
}
