/*
Theme Name: P2W Astra Child
Template: astra
*/

/* ============================================================
   GLOBAL FIXES
   ============================================================ */

html, body {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
/* ============================================================
   COMPLIANZ — ukryj do zakończenia loadera
   ============================================================ */

#cmplz-cookiebanner-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#cmplz-cookiebanner-container.cmplz-visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   CF7 Karmix
   ============================================================ */
.nx-cf7-wrap .wpcf7 form p { margin: 0; padding: 0; }
.nx-cf7-wrap .wpcf7 form br { display: none; }
.nx-cf7-wrap .wpcf7-form-control-wrap { display: block; width: 100%; }

.nx-cf7-wrap .cf7-float-row {
  position: relative;
  margin-bottom: 4px;
  width: 100%;
}

.nx-cf7-wrap .wpcf7 input[type="text"],
.nx-cf7-wrap .wpcf7 input[type="email"],
.nx-cf7-wrap .wpcf7 input[type="tel"],
.nx-cf7-wrap .wpcf7 input[type="url"],
.nx-cf7-wrap .wpcf7 input[type="number"],
.nx-cf7-wrap .wpcf7 textarea,
.nx-cf7-wrap .wpcf7 select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-n);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
  margin-bottom: 10px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.nx-cf7-wrap .wpcf7 input[type="text"],
.nx-cf7-wrap .wpcf7 input[type="email"],
.nx-cf7-wrap .wpcf7 input[type="tel"],
.nx-cf7-wrap .wpcf7 input[type="url"],
.nx-cf7-wrap .wpcf7 input[type="number"] {
  height: 52px;
  padding: 24px 14px 8px;
}

.nx-cf7-wrap .wpcf7 select {
  height: 58px;
  padding: 22px 14px 8px;
  color: var(--text);
}

.nx-cf7-wrap .wpcf7 select option {
  background: var(--bg);
  color: var(--text);
}

.nx-cf7-wrap .wpcf7 textarea {
  height: 120px;
  padding: 28px 14px 12px;
  resize: vertical;
}

.nx-cf7-wrap .wpcf7 input:focus,
.nx-cf7-wrap .wpcf7 textarea:focus,
.nx-cf7-wrap .wpcf7 select:focus {
  border-color: var(--green);
  background: rgba(61,214,140,.04);
}

.nx-cf7-wrap .wpcf7 input::placeholder,
.nx-cf7-wrap .wpcf7 textarea::placeholder { color: transparent; }

/* Floating label */
.nx-cf7-wrap .cf7-float-row label {
  position: absolute;
  left: 14px;
  top: 18px;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
  pointer-events: none;
  transition: all .2s ease;
  z-index: 2;
  margin: 0;
  line-height: 1;
  font-family: var(--font);
}

.nx-cf7-wrap .cf7-float-row:has(input:focus) label,
.nx-cf7-wrap .cf7-float-row:has(input:not(:placeholder-shown)) label,
.nx-cf7-wrap .cf7-float-row:has(textarea:focus) label,
.nx-cf7-wrap .cf7-float-row:has(textarea:not(:placeholder-shown)) label,
.nx-cf7-wrap .cf7-float-row:has(select) label {
  top: 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Walidacja */
.nx-cf7-wrap .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #f87171;
  margin-top: 2px;
  margin-bottom: 6px;
  display: block;
}
.nx-cf7-wrap .cf7-float-row:has(.wpcf7-not-valid) input,
.nx-cf7-wrap .cf7-float-row:has(.wpcf7-not-valid) textarea {
  border-color: #f87171;
}

/* Zgoda */
.nx-cf7-wrap .cf7-acceptance-row {
  display: block;
  margin-bottom: 12px;
}
.nx-cf7-wrap .cf7-acceptance-row p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  flex-wrap: nowrap;
}
.nx-cf7-wrap .cf7-acceptance-row .wpcf7-form-control {
  display: inline-flex !important;
  flex-shrink: 0;
}
.nx-cf7-wrap .cf7-acceptance-row .wpcf7-form-control-wrap {
  display: inline-flex !important;
  flex-shrink: 0;
  width: auto !important;
}
.nx-cf7-wrap .cf7-acceptance-row .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex;
}
.nx-cf7-wrap .cf7-acceptance-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  accent-color: var(--green);
  padding: 0 !important;
}

/* Submit */
.nx-cf7-wrap .wpcf7 input[type="submit"] {
  height: auto;
  padding: 14px 28px;
  background: var(--green);
  color: var(--text-1);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  transition: all .25s;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nx-cf7-wrap .wpcf7 input[type="submit"]:hover {
  background: var(--green-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(61,214,140,.3);
}

/* Response */
.nx-cf7-wrap .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: var(--r);
  font-size: 13px;
  padding: 12px 16px;
  border: none;
}
.nx-cf7-wrap .wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(61,214,140,.1);
  border: 1px solid rgba(61,214,140,.2) !important;
  color: var(--green);
}
.nx-cf7-wrap .wpcf7 .wpcf7-validation-errors {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2) !important;
  color: #f87171;
}
body .wpcf7 input.wpcf7-form-control:not([type=submit]):focus,
body .wpcf7 select.wpcf7-form-control:focus,
body .wpcf7 textarea.wpcf7-form-control:focus {
  color: var(--text) !important;
}