/*
Theme Name: Akademia Detektywa Newtona 1.8
Theme URI: https://example.com/akademia-detektywa-newtona
Author: OpenAI Codex
Author URI: https://openai.com/
Description: Motyw WordPress przygotowany na podstawie oryginalnego index.html dla Akademii Detektywa Newtona.
Version: 1.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: akademia-detektywa-newtona
*/

.admin-bar #nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #nav {
    top: 46px;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wp-page-shell {
  padding: 140px 24px 88px;
  background: #f6f0e4;
  min-height: 100vh;
}

.wp-page-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(26, 45, 79, 0.12);
}

.wp-page-header {
  margin-bottom: 24px;
}

.wp-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f7ecd4;
  color: #1a2d4f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wp-page-title {
  margin: 0 0 24px;
  color: #1a2d4f;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.wp-page-content {
  color: #394964;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.wp-page-content > :first-child {
  margin-top: 0;
}

.wp-page-content a {
  color: #1a2d4f;
}

.wp-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.wp-page-shell--form {
  background:
    radial-gradient(circle at top right, rgba(245, 200, 66, 0.18), transparent 26%),
    linear-gradient(180deg, #f5efe3 0%, #f0e8d8 100%);
}

.wp-page-card--form {
  max-width: 1120px;
}

.wp-page-header--form {
  max-width: 760px;
}

.wp-page-content--form {
  font-size: 1rem;
}

.wp-page-content--form .wpcf7 {
  margin-top: 28px;
}

.page-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.page-form-side {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1a2d4f 0%, #253f6d 100%);
  box-shadow: 0 26px 56px rgba(26, 45, 79, 0.2);
  color: #ffffff;
}

.page-form-side::before {
  content: "🐾";
  position: absolute;
  right: -8px;
  bottom: -24px;
  font-size: 7rem;
  opacity: 0.08;
  pointer-events: none;
}

.page-form-side > :first-child,
.page-form-box > :first-child {
  margin-top: 0;
}

.page-form-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.14);
  color: #ffd76a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-form-side h2,
.page-form-side h3 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.page-form-side p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.page-form-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-form-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
}

.page-form-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  border-radius: 999px;
  background: #f5c842;
  flex: 0 0 auto;
}

.page-form-box {
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 45, 79, 0.08);
  box-shadow: 0 26px 56px rgba(26, 45, 79, 0.12);
  backdrop-filter: blur(10px);
}

.page-form-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #6a7488;
}

.booking-form-shell {
  text-align: left;
}

.booking-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.18);
  color: #8a5c00;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-form-title {
  margin: 0 0 6px;
  color: #1a2d4f;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
}

.booking-form-lead {
  margin: 0 0 14px;
  max-width: none;
  color: #5a667c;
  font-size: 0.98rem;
  line-height: 1.55;
}

.booking-form-grid {
  display: grid;
  grid-template-areas:
    "age term"
    "phone email"
    "message message";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 12px;
  align-items: start;
}

.booking-form-field {
  min-width: 0;
  width: 100%;
}

.booking-form-field--age { grid-area: age; }
.booking-form-field--term { grid-area: term; }
.booking-form-field--phone { grid-area: phone; }
.booking-form-field--email { grid-area: email; }
.booking-form-field--message { grid-area: message; }

.booking-form-field--wide {
  grid-column: 1 / -1;
}

.booking-form-grid label {
  margin-bottom: 0;
  width: 100%;
}

.booking-form-field p {
  margin: 0;
  max-width: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.booking-form-field p br {
  display: none;
}

.booking-form-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}

.booking-form-actions .cf-turnstile,
.booking-form-actions .wpcf7-turnstile {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  flex: 0 0 auto;
  align-items: center;
  position: relative;
  top: -20px;
}

.booking-form-actions input[type="submit"] {
  flex: 0 0 auto;
}

.booking-form-label {
  display: block;
  margin: 0 0 8px;
  color: #1a2d4f;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
}

.booking-form-consent {
  margin: 8px 0 0;
  color: #667086;
  font-size: 0.85rem;
  line-height: 1.6;
}

.booking-form-consent a {
  color: #1a2d4f;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(232, 160, 32, 0.55);
  box-shadow: inset 0 -0.18em 0 rgba(245, 200, 66, 0.26);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.booking-form-consent a:hover {
  color: #10223e;
  border-bottom-color: rgba(232, 160, 32, 0.75);
  box-shadow: inset 0 -0.2em 0 rgba(245, 200, 66, 0.34);
}

.wpcf7 {
  position: relative;
}

.wpcf7 form {
  margin: 0;
}

.wpcf7 form label {
  display: block;
  margin: 0 0 14px;
  color: #1a2d4f;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.booking-form-field > .wpcf7-form-control-wrap {
  margin-top: 0;
}

.wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(26, 45, 79, 0.12);
  border-radius: 18px;
  background: #ffffff;
  color: #1a2d4f;
  font: inherit;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.booking-form-field--age select,
.booking-form-field--phone input,
.booking-form-field--email input {
  min-height: 52px;
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 textarea.booking-form-message {
  min-height: 0;
  height: 5.2rem;
}

.wpcf7 select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a2d4f 50%),
    linear-gradient(135deg, #1a2d4f 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #7b8496;
}

.wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: rgba(232, 160, 32, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 200, 66, 0.18);
  transform: translateY(-1px);
}

.wpcf7 .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.booking-form-field--term .wpcf7-radio {
  margin-top: 0;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(26, 45, 79, 0.12);
  border-radius: 18px;
  background: rgba(247, 236, 212, 0.52);
  color: #1a2d4f;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.booking-form-field--term .wpcf7-list-item > label {
  min-height: 52px;
}

.wpcf7 .wpcf7-list-item > label:hover {
  border-color: rgba(232, 160, 32, 0.4);
  background: rgba(245, 200, 66, 0.1);
  transform: translateY(-1px);
}

.wpcf7 .wpcf7-list-item > label:has(input:checked) {
  border-color: rgba(232, 160, 32, 0.78);
  background: rgba(245, 200, 66, 0.16);
  box-shadow: 0 10px 28px rgba(232, 160, 32, 0.14);
}

.wpcf7 input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #e8a020;
  flex: 0 0 auto;
}

.wpcf7 .cf-turnstile,
.wpcf7 .wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.wpcf7 input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 17px 34px;
  background: linear-gradient(90deg, #f5c842 0%, #e8a020 100%);
  color: #1a2d4f;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(232, 160, 32, 0.26);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(232, 160, 32, 0.3);
  filter: saturate(1.06);
}

.wpcf7 input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.75;
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(26, 45, 79, 0.12);
  border-radius: 16px;
  color: #1a2d4f;
  font-size: 0.94rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.88);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(60, 184, 90, 0.48);
  background: rgba(60, 184, 90, 0.11);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: rgba(228, 87, 85, 0.4);
  background: rgba(228, 87, 85, 0.1);
}

.wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #c53b3b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

.cta .wpcf7 {
  max-width: 980px;
  width: 100%;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}

.cta .wpcf7 form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

.cta .wpcf7 form > .booking-form-shell {
  display: contents;
}

.cta .wpcf7 form label,
.cta .wpcf7 form > p,
.cta .wpcf7 form > span,
.cta .wpcf7 .booking-form-label {
  color: #ffffff;
  text-align: left;
  font-weight: 800;
}

.cta .wpcf7 form > p {
  margin: 0 0 10px;
  max-width: none;
  font-size: 0.96rem;
  line-height: 1.5;
}

.cta .booking-form-kicker {
  background: linear-gradient(90deg, #f5c842 0%, #e8a020 100%);
  color: #1a2d4f;
  box-shadow: 0 10px 24px rgba(232, 160, 32, 0.22);
}

.cta .booking-form-title {
  color: #ffffff;
  max-width: 720px;
}

.cta .booking-form-lead {
  color: rgba(255, 255, 255, 0.8);
}

.cta .booking-form-kicker,
.cta .booking-form-title,
.cta .booking-form-lead,
.cta .booking-form-grid,
.cta .booking-form-actions,
.cta .booking-form-consent,
.cta .wpcf7 form .wpcf7-response-output {
  grid-column: 1 / -1;
}

.cta .booking-form-consent {
  margin: 0;
  max-width: none;
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
}

.cta .booking-form-consent a {
  color: #f8d66b;
  border-bottom-color: rgba(245, 200, 66, 0.82);
  box-shadow: inset 0 -0.16em 0 rgba(245, 200, 66, 0.18);
}

.cta .booking-form-consent a:hover {
  color: #fff2b6;
  border-bottom-color: rgba(255, 242, 182, 0.95);
  box-shadow: inset 0 -0.22em 0 rgba(245, 200, 66, 0.28);
}

.cta .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.cta .wpcf7 select,
.cta .wpcf7 textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cta .wpcf7 .wpcf7-list-item > label {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

.cta .wpcf7 .wpcf7-list-item > label:hover {
  border-color: rgba(245, 200, 66, 0.45);
  background: rgba(245, 200, 66, 0.12);
}

.cta .wpcf7 .wpcf7-list-item > label:has(input:checked) {
  border-color: rgba(245, 200, 66, 0.86);
  background: rgba(245, 200, 66, 0.18);
}

.cta .wpcf7 textarea {
  min-height: 88px;
}

.cta .wpcf7 textarea.booking-form-message {
  min-height: 0;
  height: 5.2rem;
}

.cta .wpcf7 .wpcf7-response-output {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.cta .wpcf7-not-valid-tip {
  color: #ffd0cd;
}

.cta .wpcf7 .cf-turnstile,
.cta .wpcf7 .wpcf7-turnstile {
  margin-bottom: 24px;
}

.cta .booking-form-actions {
  margin-top: 0;
}

.cta .booking-form-actions .cf-turnstile,
.cta .booking-form-actions .wpcf7-turnstile {
  justify-content: flex-start;
  margin: 0;
}

.cta .booking-form-actions .cf-turnstile > div,
.cta .booking-form-actions .wpcf7-turnstile > div {
  margin-left: 0;
}

.cta .wpcf7 input[type="submit"] {
  min-width: 240px;
  margin: 0;
}

@media (max-width: 767px) {
  .wp-page-shell {
    padding: 118px 18px 64px;
  }

  .wp-page-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .wp-page-card--form {
    padding: 28px 18px;
  }

  .page-form-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-form-side,
  .page-form-box,
  .cta .wpcf7 form {
    padding: 0;
    border-radius: 0;
  }

  .booking-form-grid {
    grid-template-areas:
      "age"
      "term"
      "phone"
      "email"
      "message";
    grid-template-columns: 1fr;
  }

  .booking-form-actions {
    display: flex;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }

  .booking-form-actions .cf-turnstile,
  .booking-form-actions .wpcf7-turnstile,
  .cta .booking-form-actions .cf-turnstile,
  .cta .booking-form-actions .wpcf7-turnstile {
    justify-content: center;
    margin: 0 auto 20px;
    top: 0;
  }

  .wpcf7 .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}
