/* =========================================================================
   12 Days of Karma — enquiry pop-up
   Palette: gold #8a6f47 · dark #1b1b1b · Montserrat
   Everything is namespaced with .kg12d- and scoped to #kg12d-modal so it
   cannot leak into the rest of the theme.
   ====================================================================== */

:root {
  --kg12d-gold: #8a6f47;
  --kg12d-gold-soft: #a98a5c;
  --kg12d-gold-faint: rgba(138, 111, 71, 0.35);
  --kg12d-dark: #1b1b1b;
  --kg12d-dark-2: #232323;
  --kg12d-field: #2e2e2e;
  --kg12d-field-focus: #383838;
  --kg12d-line: rgba(255, 255, 255, 0.12);
  --kg12d-text: #f2f0ec;
  --kg12d-muted: #a7a29a;
  --kg12d-error: #e0836b;
  --kg12d-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- shell ---------- */

.kg12d-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  font-family: var(--kg12d-font);
  -webkit-font-smoothing: antialiased;
}

.kg12d-modal.is-open {
  display: block;
}

.kg12d-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: kg12d-fade 0.25s ease both;
}

.kg12d-modal__dialog {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--kg12d-dark);
  border: 1px solid var(--kg12d-gold-faint);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: kg12d-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 768px) {
  .kg12d-modal__dialog {
    margin: 4vh auto;
    max-height: 92vh;
  }
}

@keyframes kg12d-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kg12d-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

html.kg12d-locked,
body.kg12d-locked {
  overflow: hidden !important;
}

/* ---------- close ---------- */

.kg12d-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--kg12d-line);
  border-radius: 50%;
  color: var(--kg12d-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kg12d-modal__close:hover,
.kg12d-modal__close:focus-visible {
  background: var(--kg12d-gold);
  border-color: var(--kg12d-gold);
  transform: rotate(90deg);
  outline: none;
}

.kg12d-modal__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}

/* ---------- head ---------- */

.kg12d-modal__head {
  padding: 34px 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--kg12d-line);
}

.kg12d-modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kg12d-gold-soft);
}

.kg12d-modal__title {
  margin: 0 0 8px;
  font-family: var(--kg12d-font);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--kg12d-text);
  text-transform: none;
}

.kg12d-modal__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--kg12d-muted);
}

.kg12d-modal__body {
  padding: 24px 28px 32px;
}

@media (max-width: 575px) {
  .kg12d-modal__head { padding: 30px 18px 18px; }
  .kg12d-modal__body { padding: 20px 18px 26px; }
  .kg12d-modal__title { font-size: 20px; }
}

/* ---------- CF7 reset inside the modal ---------- */

#kg12d-modal .wpcf7 { font-family: var(--kg12d-font); }
#kg12d-modal .wpcf7 form { margin: 0; }
#kg12d-modal .wpcf7 p { margin: 0; }
#kg12d-modal .kg12d-hidden { display: none !important; }

#kg12d-modal .kg12d-field,
#kg12d-modal .kg12d-section { margin-bottom: 16px; }

#kg12d-modal .kg12d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 575px) {
  #kg12d-modal .kg12d-grid { grid-template-columns: 1fr; gap: 14px; }
}

#kg12d-modal label,
#kg12d-modal .kg12d-field__label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--kg12d-muted);
  text-transform: none;
}

#kg12d-modal .kg12d-req { color: var(--kg12d-gold-soft); margin-left: 2px; }

/* ---------- inputs ---------- */

#kg12d-modal input[type="text"],
#kg12d-modal input[type="email"],
#kg12d-modal input[type="tel"],
#kg12d-modal select,
#kg12d-modal textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  font-family: var(--kg12d-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 48px;
  color: var(--kg12d-text);
  text-align: left;
  background: var(--kg12d-field);
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

#kg12d-modal textarea { height: auto; line-height: 1.6; padding: 12px 14px; }

#kg12d-modal input::placeholder,
#kg12d-modal textarea::placeholder { color: #8d8880; opacity: 1; }

#kg12d-modal input:focus,
#kg12d-modal select:focus,
#kg12d-modal textarea:focus {
  outline: none;
  background: var(--kg12d-field-focus);
  border-color: var(--kg12d-gold);
}

#kg12d-modal select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a6f47' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

#kg12d-modal select option { background: var(--kg12d-dark-2); color: var(--kg12d-text); }

/* ---------- selected event card ---------- */

#kg12d-modal .kg12d-section__label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kg12d-gold-soft);
}

#kg12d-modal .kg12d-eventcard {
  padding: 16px;
  background: linear-gradient(180deg, rgba(138, 111, 71, 0.16), rgba(138, 111, 71, 0.06));
  border: 1px solid var(--kg12d-gold-faint);
  border-radius: 3px;
}

#kg12d-modal .kg12d-eventcard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 10px;
}

@media (max-width: 575px) {
  #kg12d-modal .kg12d-eventcard__grid { grid-template-columns: 1fr; }
}

#kg12d-modal .kg12d-eventcard__row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#kg12d-modal .kg12d-eventcard__row[hidden] { display: none; }

#kg12d-modal .kg12d-eventcard__row i {
  flex: 0 0 auto;
  width: 15px;
  font-size: 13px;
  text-align: center;
  color: var(--kg12d-gold-soft);
}

#kg12d-modal .kg12d-eventcard__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--kg12d-text);
  word-break: break-word;
}

#kg12d-modal .kg12d-eventcard__row--name {
  align-items: flex-start;
}

#kg12d-modal .kg12d-eventcard__row--name .kg12d-eventcard__value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fff;
}

/* ---------- radios ---------- */

#kg12d-modal .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#kg12d-modal .wpcf7-radio .wpcf7-list-item { margin: 0; flex: 0 0 auto; }

#kg12d-modal .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 84px;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--kg12d-text);
  background: var(--kg12d-field);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#kg12d-modal .wpcf7-radio .wpcf7-list-item label:hover { border-color: var(--kg12d-gold-faint); }

#kg12d-modal .wpcf7-radio input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #6e6a64;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#kg12d-modal .wpcf7-radio input[type="radio"]:checked {
  border-color: var(--kg12d-gold);
  box-shadow: inset 0 0 0 4px var(--kg12d-gold);
}

#kg12d-modal .wpcf7-radio .wpcf7-list-item label:has(input:checked) {
  background: rgba(138, 111, 71, 0.18);
  border-color: var(--kg12d-gold);
}

#kg12d-modal .wpcf7-radio .wpcf7-list-item-label { line-height: 1; }

/* ---------- member number (conditional reveal) ---------- */

/* The conditional-fields plugin animates height + vertical padding of the group
   wrapper, so the spacing lives there rather than on the panel inside it. */
#kg12d-modal .kg12d-field--member .wpcf7cf_group {
  padding-top: 12px;
}

#kg12d-modal .kg12d-member {
  position: relative;
  padding: 14px 16px 15px;
  background: linear-gradient(180deg, rgba(138, 111, 71, 0.18), rgba(138, 111, 71, 0.07));
  border: 1px solid var(--kg12d-gold-faint);
  border-left: 3px solid var(--kg12d-gold);
  border-radius: 2px;
}

/* Small pointer tying the panel to the "Yes" answer above it. */
#kg12d-modal .kg12d-member::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 26px;
  width: 10px;
  height: 10px;
  background: #332a1d;
  border-left: 1px solid rgba(138, 111, 71, 0.6);
  border-top: 1px solid rgba(138, 111, 71, 0.6);
  transform: rotate(45deg);
}

#kg12d-modal .kg12d-member__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kg12d-gold-soft);
}

#kg12d-modal .kg12d-member__label i {
  font-size: 14px;
  line-height: 1;
}

#kg12d-modal .kg12d-member .wpcf7-form-control-wrap {
  display: block;
}

#kg12d-modal input.kg12d-member__input {
  height: 46px;
  line-height: 46px;
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(138, 111, 71, 0.45);
  letter-spacing: 0.06em;
}

#kg12d-modal input.kg12d-member__input:focus {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--kg12d-gold);
}

#kg12d-modal .kg12d-member__hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--kg12d-muted);
}

/* ---------- consent ---------- */

#kg12d-modal .kg12d-field--consent { margin-top: 20px; }

#kg12d-modal .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

#kg12d-modal .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--kg12d-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

#kg12d-modal .wpcf7-acceptance input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  border: 1px solid #6e6a64;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#kg12d-modal .wpcf7-acceptance input[type="checkbox"]:checked {
  background: var(--kg12d-gold);
  border-color: var(--kg12d-gold);
}

#kg12d-modal .wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#kg12d-modal .kg12d-field--consent a {
  color: var(--kg12d-gold-soft);
  text-decoration: underline;
}

#kg12d-modal .kg12d-field--consent a:hover { color: #c7a670; }

/* ---------- intl-tel-input ---------- */

#kg12d-modal .iti { width: 100%; display: block; }
#kg12d-modal .iti__flag-container { background: transparent; }

/* Keep the number clear of the country selector.
   !important is deliberate: both the generic field rule above and the inline
   padding intl-tel-input writes on the input keep winning otherwise, which puts
   the number underneath the dial code. JS narrows this to the exact dial-code
   width (inline + !important, so it still wins over this). */
#kg12d-modal .iti--separate-dial-code input[type="tel"],
#kg12d-modal .iti--separate-dial-code input[type="text"] {
  padding-left: 92px !important;
  padding-right: 14px !important;
}

#kg12d-modal .iti--separate-dial-code .iti__selected-flag {
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid var(--kg12d-line);
  border-radius: 2px 0 0 2px;
}

#kg12d-modal .iti__selected-dial-code { color: var(--kg12d-text); font-size: 14px; }
#kg12d-modal .iti__arrow { border-top-color: var(--kg12d-gold-soft); }

#kg12d-modal .iti__country-list {
  background: var(--kg12d-dark-2);
  border: 1px solid var(--kg12d-line);
  color: var(--kg12d-text);
  text-align: left;
}

#kg12d-modal .iti__country.iti__highlight { background: rgba(138, 111, 71, 0.3); }
#kg12d-modal .iti__dial-code { color: var(--kg12d-muted); }

/* ---------- submit ---------- */

#kg12d-modal .kg12d-actions {
  margin-top: 22px;
  position: relative;
}

#kg12d-modal input.kg12d-submit,
#kg12d-modal .kg12d-submit {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  font-family: var(--kg12d-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--kg12d-gold);
  border: 1px solid var(--kg12d-gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, letter-spacing 0.22s ease;
}

#kg12d-modal input.kg12d-submit:hover,
#kg12d-modal input.kg12d-submit:focus-visible {
  background: #765d3a;
  border-color: #765d3a;
  letter-spacing: 0.2em;
  outline: none;
}

#kg12d-modal input.kg12d-submit:disabled { opacity: 0.6; cursor: not-allowed; }

#kg12d-modal .wpcf7-spinner {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* ---------- validation + response ---------- */

#kg12d-modal .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--kg12d-error);
}

#kg12d-modal .wpcf7-not-valid { border-color: var(--kg12d-error) !important; }

#kg12d-modal .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 14px !important;
  font-size: 12.5px;
  line-height: 1.6;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 2px;
  border-color: var(--kg12d-error) !important;
  color: var(--kg12d-error);
  background: rgba(224, 131, 107, 0.08);
}

#kg12d-modal form.sent .wpcf7-response-output {
  border-color: var(--kg12d-gold) !important;
  color: var(--kg12d-gold-soft);
  background: rgba(138, 111, 71, 0.12);
}

/* ---------- triggers added by the shortcode ---------- */

.kg12d-trigger--button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  font-family: var(--kg12d-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--kg12d-gold);
  border: 1px solid var(--kg12d-gold);
  border-radius: 2px;
  cursor: pointer;
}

.kg12d-trigger--button:hover { background: #765d3a; border-color: #765d3a; }

/* =========================================================================
   Thank-you page
   ====================================================================== */
.page-template-page-12days-thankyou{
  margin: 0;
  padding: 0;
}
.kg12d-ty {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  background: var(--kg12d-dark);
  font-family: var(--kg12d-font);
  color: var(--kg12d-text);

}

.kg12d-ty__inner {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.kg12d-ty__mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kg12d-gold);
  border-radius: 50%;
  color: var(--kg12d-gold);
}

.kg12d-ty__mark svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.kg12d-ty__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kg12d-gold-soft);
}

.kg12d-ty__title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 575px) { .kg12d-ty__title { font-size: 25px; } }

.kg12d-ty__text {
  margin: 0 auto 10px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--kg12d-muted);
}

.kg12d-ty__event {
  display: inline-block;
  margin: 22px 0 6px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(138, 111, 71, 0.18), rgba(138, 111, 71, 0.06));
  border: 1px solid var(--kg12d-gold-faint);
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.6;
}

.kg12d-ty__event strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.kg12d-ty__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.kg12d-ty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 52px;
  padding: 0 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.kg12d-ty__btn i { font-size: 17px; }

.kg12d-ty__btn--wa {
  color: #fff;
  background: #25d366;
  border: 1px solid #25d366;
}

.kg12d-ty__btn--wa:hover,
.kg12d-ty__btn--wa:focus { color: #fff; background: #1faa52; border-color: #1faa52; text-decoration: none; }

/* Properties that take bookings by e-mail get this instead of the WhatsApp button. */
.kg12d-ty__btn--mail {
  color: #fff;
  background: var(--kg12d-gold);
  border: 1px solid var(--kg12d-gold);
}

.kg12d-ty__btn--mail:hover,
.kg12d-ty__btn--mail:focus {
  color: #fff;
  background: #765d3a;
  border-color: #765d3a;
  text-decoration: none;
}

.kg12d-ty__btn--ghost {
  color: var(--kg12d-text);
  background: transparent;
  border: 1px solid var(--kg12d-gold);
}

.kg12d-ty__btn--ghost:hover,
.kg12d-ty__btn--ghost:focus { color: #fff; background: var(--kg12d-gold); text-decoration: none; }

.kg12d-ty__logo { margin-bottom: 34px; }
.kg12d-ty__logo img { max-width: 190px; height: auto; }
