/* =========================================================
   KLUB - Pristupnica klubu (CF7-driven, Figma 1217:3778)
   ========================================================= */

.klub-form-section {
  background: #f5f3ee;
  padding: 110px 0;
}

/* Head */
.klub-form-section__head {
  width: 685px;
  max-width: 100%;
  margin: 0 auto 27px auto;
  text-align: center;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.klub-form-section__subtitle {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 11.2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #191d23;
  margin: 0;
}

.klub-form-section__title {
  font-family: "trajan-pro-3", serif;
  font-weight: 400;
  font-size: clamp(34px, 3.125vw, 60px);
  line-height: 1.177;
  letter-spacing: -3.6px;
  text-transform: uppercase;
  color: #191d23;
  margin: 0;
}

.klub-form-section__desc {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.5px;
  color: rgba(25, 29, 35, 0.8);
  max-width: 643px;
  margin: 0;
}

/* Form shell */
.klub-form-section__shell {
  background: #fff;
  border-radius: 4px;
  padding: 50px;
  max-width: 875px;
  margin: 0 auto;
}

/* Admin placeholder */
.klub-form-section__placeholder {
  text-align: left;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: rgba(25, 29, 35, 0.7);
}

.klub-form-section__placeholder code {
  background: #f5f3ee;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.klub-form-section__cf7-tpl summary {
  cursor: pointer;
  font-weight: 600;
  color: #bd9831;
  margin-top: 12px;
}

.klub-form-section__cf7-tpl pre {
  background: #f5f3ee;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

/* =========================================================
   CF7 form styling - matches Figma 1:1
   Defensive against wpautop wrapping content in <p> and <br>
   ========================================================= */

.klub-form-section__shell .wpcf7 {
  display: flex;
  flex-direction: column;
  gap: 33px;
}

.klub-form-section__shell .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Neutralize wpautop noise — <br> tags and stray <p> spacing */
.klub-form-section__shell .wpcf7-form br {
  display: none;
}

.klub-form-section__shell .wpcf7-form > p,
.klub-form-section__shell .kf-row > p,
.klub-form-section__shell .kf-tier-group + p,
.klub-form-section__shell .kf-consents > p {
  margin: 0;
  padding: 0;
}

/* Rows — make CF7's <p> wrappers behave as flex children */
.klub-form-section__shell .kf-row {
  display: flex;
  gap: 7px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.klub-form-section__shell .kf-row > p,
.klub-form-section__shell .kf-row > .kf-field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.klub-form-section__shell .kf-row > p > .kf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.klub-form-section__shell .kf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: text;
  width: 100%;
}

/* Labels */
.klub-form-section__shell .kf-label,
.klub-form-section__shell .wpcf7 label > span:first-child {
  font-family: "trajan-pro-3", serif;
  font-weight: 400;
  font-size: 11.4px;
  line-height: normal;
  color: #191d23;
  letter-spacing: 0.2px;
  margin-bottom: 0;
  text-transform: capitalize;
}

/* wpcf7-form-control-wrap shouldn't add layout */
.klub-form-section__shell .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs */
.klub-form-section__shell .wpcf7 input[type="text"],
.klub-form-section__shell .wpcf7 input[type="email"],
.klub-form-section__shell .wpcf7 input[type="tel"],
.klub-form-section__shell .wpcf7 input[type="url"],
.klub-form-section__shell .wpcf7 input[type="number"],
.klub-form-section__shell .wpcf7 input[type="date"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #191d23;
  background: transparent;
  padding: 20px 0;
  font-family: "trajan-pro-3", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: #191d23;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  box-shadow: none;
  -webkit-appearance: none;
}

.klub-form-section__shell .wpcf7 input::placeholder,
.klub-form-section__shell .wpcf7 textarea::placeholder {
  color: #c5bdb9;
  font-family: "trajan-pro-3", serif;
  font-size: 18px;
}

.klub-form-section__shell .wpcf7 input:focus,
.klub-form-section__shell .wpcf7 textarea:focus {
  border-bottom-color: #bd9831;
}

/* Textarea */
.klub-form-section__shell .wpcf7 textarea {
  width: 100%;
  min-height: 124px;
  border: 0;
  border-bottom: 1px solid #191d23;
  background: transparent;
  padding: 20px 0;
  font-family: "trajan-pro-3", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #191d23;
  border-radius: 0;
  outline: none;
  resize: vertical;
  box-shadow: none;
}

/* Tier radio cards */
.klub-form-section__shell .kf-tier-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.klub-form-section__shell .kf-tier-group legend {
  font-family: "trajan-pro-3", serif;
  font-size: 11.4px;
  color: #191d23;
}

.klub-form-section__shell .wpcf7-radio .wpcf7-list-item {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
}

.klub-form-section__shell .wpcf7-radio {
  display: flex !important;
  gap: 14px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.klub-form-section__shell .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  padding: 18px 14px;
  border: 1px solid rgba(42, 35, 26, 0.2);
  border-radius: 4px;
  background: #faf6eb;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: "trajan-pro-3", serif;
  font-size: 17.6px;
  color: #191d23;
  line-height: 29.04px;
}

.klub-form-section__shell .wpcf7-radio .wpcf7-list-item label:hover {
  border-color: rgba(189, 152, 49, 0.6);
}

.klub-form-section__shell .wpcf7-radio .wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Checked tier state — applied to label wrapper via JS or default radio state */
.klub-form-section__shell .wpcf7-radio .wpcf7-list-item.is-checked label,
.klub-form-section__shell
  .wpcf7-radio
  .wpcf7-list-item:has(input:checked)
  label {
  background: rgba(184, 147, 42, 0.12);
  border-color: #bd9831;
  color: #191d23;
}

/* "ILI" + WhatsApp below CF7 submit */
.klub-form-section__shell .klub-form__alt {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.klub-form-section__shell .klub-form__divider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.klub-form-section__shell .klub-form__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(25, 29, 35, 0.15);
}

.klub-form-section__shell .klub-form__divider-text {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: rgba(25, 29, 35, 0.38);
  text-transform: uppercase;
}

.klub-form-section__shell .klub-form__wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 55px;
  border: 1px solid #bd9831;
  border-radius: 2.5px;
  color: #bd9831;
  background: transparent;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 18.2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 18px 42px;
}

.klub-form-section__shell .klub-form__wa-btn:hover {
  background: #bd9831;
  color: #fff;
}

.klub-form-section__shell .klub-form__wa-btn:hover svg path {
  fill: #fff;
}

/* Acceptance / consent checkboxes */
.klub-form-section__shell .wpcf7-acceptance {
  display: block;
  margin: 0;
}

.klub-form-section__shell .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 0 6px 0 !important;
  display: block;
}

.klub-form-section__shell .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #191d23;
}

.klub-form-section__shell .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #191d23;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.klub-form-section__shell .wpcf7-acceptance input[type="checkbox"]:checked {
  background: #191d23;
}

.klub-form-section__shell
  .wpcf7-acceptance
  input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

.klub-form-section__shell .wpcf7-acceptance a {
  color: inherit;
  text-decoration: underline;
}

.klub-form-section__shell .wpcf7-acceptance a:hover {
  color: #bd9831;
}

/* Submit */
.klub-form-section__shell .wpcf7 [type="submit"],
.klub-form-section__shell .klub-cf7-submit {
  width: 100%;
  height: 55px;
  background: #bd9831;
  color: #fff;
  border: 1px solid #bd9831;
  border-radius: 2.5px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 18.2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 18px 42px;
  margin-top: 20px;
}

.klub-form-section__shell .wpcf7 [type="submit"]:hover,
.klub-form-section__shell .klub-cf7-submit:hover {
  background: #fff;
  color: #191d23;
}

/* CF7 response output */
.klub-form-section__shell .wpcf7-response-output {
  margin: 20px 0 0 0;
  padding: 14px 18px;
  border-radius: 4px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
}

.klub-form-section__shell .wpcf7-not-valid-tip {
  color: #b62b2b;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .klub-form-section {
    padding: 70px 0;
  }
  .klub-form-section__shell {
    padding: 32px 24px;
  }
  .klub-form-section__shell .kf-row {
    flex-direction: column;
    gap: 22px;
  }
  .klub-form-section__shell .wpcf7-radio {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .klub-form-section {
    padding: 50px 0;
  }
}
