/* =========================================================
   SOHOGLAM — FORMULARZ KONTAKTOWY I NEWSLETTER
   ========================================================= */

.sg-form-wrap {
  max-width: 760px;
  margin: 34px 0 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  scroll-margin-top: 120px;
}

.sg-form {
  display: grid;
  gap: 16px;
}

.sg-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sg-form__field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #3c3633;
  font-size: 11px;
  font-weight: 650;
}

.sg-form__field em {
  color: #a76670;
  font-style: normal;
}

.sg-form__field small {
  color: #9a918c;
  font-weight: 500;
}

.sg-form__field input,
.sg-form__field select,
.sg-form__field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px !important;
  border: 1px solid #ddd6d2 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #292525 !important;
  font: inherit;
  font-size: 13px !important;
  font-weight: 400;
}

.sg-form__field textarea {
  min-height: 150px;
  resize: vertical;
}

.sg-form__field input:focus,
.sg-form__field select:focus,
.sg-form__field textarea:focus {
  border-color: #191919 !important;
  outline: 2px solid rgba(25, 25, 25, .12);
  outline-offset: 0;
}

.sg-form__legal {
  margin: 0;
  color: #8c8580;
  font-size: 10.5px;
  line-height: 1.6;
}

.sg-form__legal a,
.sg-newsletter-form__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sg-form__submit {
  justify-self: start;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border: 0;
  border-radius: 100px;
  background: #191919;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  transition: background .18s ease;
}

.sg-form__submit:hover {
  background: #3a3634;
}

.sg-form__submit:focus-visible,
.sg-newsletter-form button:focus-visible {
  outline: 2px solid #a76670;
  outline-offset: 3px;
}

.sg-form__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sg-form__status {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid;
  font-size: 13px;
  line-height: 1.5;
}

.sg-form__status.is-success {
  border-color: #4f7a5a;
  background: #eef4ef;
  color: #2f4f37;
}

.sg-form__status.is-error {
  border-color: #a03b4c;
  background: #f8eef0;
  color: #7b2c39;
}

/* NEWSLETTER (ciemna sekcja na stronie głównej) */

.sg-newsletter-form-wrap {
  width: 100%;
  scroll-margin-top: 120px;
  color: #fff;
}

.sg-newsletter-form-wrap .sg-form__status {
  margin-bottom: 14px;
}

.sg-newsletter-form__field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.sg-newsletter-form__field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit;
  font-size: 13px !important;
}

.sg-newsletter-form__field input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.sg-newsletter-form__field input:focus-visible {
  outline: 0;
}

.sg-newsletter-form__field:focus-within {
  border-bottom-color: #fff;
}

.sg-newsletter-form__field button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #191919;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  transition: background .18s ease;
}

.sg-newsletter-form__field button:hover {
  background: #f0e8e4;
}

.sg-newsletter-form__field button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-newsletter-form__consent {
  max-width: 560px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  line-height: 1.6;
  cursor: pointer;
}

.sg-newsletter-form__consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 2px 0 0;
  accent-color: #c8959d;
}

@media (max-width: 650px) {
  .sg-form__row {
    grid-template-columns: 1fr;
  }

  .sg-form__submit {
    justify-self: stretch;
    justify-content: center;
  }

  .sg-newsletter-form__field {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .sg-newsletter-form__field input {
    border-bottom: 1px solid rgba(255, 255, 255, .3) !important;
  }

  .sg-newsletter-form__field button {
    justify-content: center;
  }
}
