/* --- /assets/css/home.css --- */
/* Native home page. */

.ckm-home { background: var(--c-page); }

.ckm-home-hero__inner {
  max-width: var(--edge-max);
  margin: 0 auto;
  padding: 10px var(--edge-gutter);
}

.ckm-home-carousel {
  position: relative;
  aspect-ratio: 2170 / 725;
  overflow: hidden;
  isolation: isolate;
  background: #040405;
  border-radius: 20px;
  clip-path: inset(0 round 20px);
  touch-action: pan-y;
}

.ckm-home-carousel .ckm-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
  will-change: transform;
}

.ckm-home-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040405;
}

.ckm-home-slide__media,
.ckm-home-slide__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ckm-home-slide__image {
  object-fit: cover;
  object-position: center;
}

.ckm-home-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 3, 4, 0.96) 0%, rgba(3, 3, 4, 0.82) 25%, rgba(3, 3, 4, 0.28) 48%, rgba(3, 3, 4, 0) 66%);
}

.ckm-home-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(49%, 720px);
  height: 100%;
  padding: 36px clamp(58px, 5.2vw, 108px);
  color: #fff;
}

.ckm-home-slide__eyebrow {
  margin: 0 0 10px;
  color: #ffd000;
  font-size: clamp(16px, 1.45vw, 25px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.035em;
}

.ckm-home-slide__title {
  max-width: 660px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.25vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ckm-home-slide__description {
  max-width: 610px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 450;
  line-height: 1.45;
}

.ckm-home-slide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 19px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2635, #e50918);
  box-shadow: 0 12px 30px rgba(229, 9, 24, 0.26);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ckm-home-slide__button:hover,
.ckm-home-slide__button:focus-visible {
  background: linear-gradient(135deg, #ff3a47, #f11121);
  box-shadow: 0 15px 36px rgba(229, 9, 24, 0.38);
  color: #fff;
  transform: translateY(-2px);
}

.ckm-home-slide__button svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ckm-home-slide__arrow-icon { margin-left: 2px; }

.ckm-home-carousel .ckm-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.ckm-home-carousel .ckm-carousel__arrow:hover,
.ckm-home-carousel .ckm-carousel__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.23);
  transform: translateY(-50%) scale(1.04);
}

.ckm-home-carousel .ckm-carousel__arrow--prev { left: 18px; }
.ckm-home-carousel .ckm-carousel__arrow--next { right: 18px; }
.ckm-home-carousel .ckm-carousel__arrow svg { width: 25px; height: 25px; fill: currentColor; }

.ckm-carousel__dots {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.ckm-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.ckm-carousel__dot[aria-current="true"] {
  width: 24px;
  background: #ff1728;
}

.ckm-home-section {
  padding: 80px 15px;
}

.ckm-home-products--new {
  padding-top: 0;
  padding-bottom: 120px;
}

.ckm-home-section__inner {
  max-width: 1380px;
  margin: 0 auto;
}

.ckm-home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

/* Title + short red bar under it + a hairline running to the button. */
.ckm-home-section__title {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 24px;
  margin: 0;
  padding-bottom: 12px;
  color: var(--c-ink-2);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.ckm-home-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: var(--c-primary);
  border-radius: 2px;
}
.ckm-home-section__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-top: 12px;
  background: var(--c-border);
}

.ckm-home-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 24%, transparent);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ckm-home-section__button::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.ckm-home-section__button:hover,
.ckm-home-section__button:focus-visible {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
  text-decoration: none;
  transform: translateY(-1px);
}
.ckm-home-section__button:hover::after { transform: translateX(3px); }

/* ---- Category cards ---- */
.ckm-home .custom-category-grid-alt-home {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px !important;
  align-items: stretch;
}

.ckm-home .custom-category-grid-alt-home .category-box-alt-home {
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  text-align: center;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover,
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:focus-within {
  border-color: var(--c-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.ckm-home .custom-category-grid-alt-home .category-box-alt-home a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 16px 12px 18px;
  color: inherit;
  text-decoration: none;
}

.ckm-home .custom-category-grid-alt-home .category-box-alt-home img {
  display: block;
  width: 100%;
  height: 92px;
  max-height: none;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  transition: transform .3s ease;
}
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover img { transform: scale(1.05); }

.ckm-home .custom-category-grid-alt-home .category-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 10px;
  height: auto !important;
  min-height: 0;
  padding: 0;
  color: var(--c-ink-2);
  background: transparent !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  transition: color .25s ease;
}
/* Short red bar under the name; it widens on hover. */
.ckm-home .custom-category-grid-alt-home .category-title::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: width .25s ease;
}
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover .category-title,
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:focus-within .category-title { color: var(--c-accent); }
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover .category-title::after,
.ckm-home .custom-category-grid-alt-home .category-box-alt-home:focus-within .category-title::after { width: 40px; }

/* ---- Trust strip: graphite panel with red light streaks in two corners ---- */
.ckm-home-features {
  padding: 0 15px 80px;
}

.ckm-home-features__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 0;
}

/* Graphite panel (trust strip, About Us mission). */
.ckm-home-features__inner,
.ckm-graphite-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8fafc;
  background: linear-gradient(180deg, #1b2432 0%, #10151e 100%);
  border: 1px solid #252e3b;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 15, 22, .22);
}
/* Two glowing arcs hugging the top-left and bottom-right corners. */
.ckm-home-features__inner::before,
.ckm-home-features__inner::after,
.ckm-graphite-panel::before,
.ckm-graphite-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 200px;
  height: 200px;
  pointer-events: none;
  background:
    radial-gradient(circle at 200px 200px, transparent 227px, rgba(255, 72, 82, .95) 229px, rgba(227, 6, 19, .35) 232px, transparent 235px),
    radial-gradient(circle at 200px 200px, transparent 247px, rgba(227, 6, 19, .6) 249px, transparent 252px),
    radial-gradient(150px 120px at 0 0, rgba(227, 6, 19, .5), transparent 72%);
  -webkit-mask-image: radial-gradient(190px 190px at 0 0, #000 45%, transparent 100%);
  mask-image: radial-gradient(190px 190px at 0 0, #000 45%, transparent 100%);
}
.ckm-home-features__inner::before,
.ckm-graphite-panel::before { top: 0; left: 0; }
.ckm-home-features__inner::after,
.ckm-graphite-panel::after { right: 0; bottom: 0; transform: rotate(180deg); }

.ckm-home-feature {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 0 24px;
  text-align: center;
}
.ckm-home-feature + .ckm-home-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, .22) 20%, rgba(248, 250, 252, .22) 80%, transparent);
}
.ckm-home-feature svg {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  fill: var(--c-primary);
  filter: drop-shadow(0 0 12px rgba(227, 6, 19, .45));
}
html[data-theme="dark"] .ckm-home-feature svg { fill: #f02330; }
.ckm-home-feature h3 { margin: 0; color: #f8fafc; font-size: 19px; font-weight: 700; line-height: 1.25; }
.ckm-home-feature p { margin: 0; color: #a9b3c2; font-size: 14px; line-height: 1.4; }

.ckm-home .elementor-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1200px) {
  .ckm-home .custom-category-grid-alt-home {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ckm-home-carousel {
    width: 100%;
    height: clamp(650px, 78vw, 780px);
    aspect-ratio: auto;
  }
  .ckm-home-slide__image {
    top: auto;
    right: -4%;
    bottom: 0;
    left: auto;
    width: auto;
    max-width: none;
    height: 58%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
  }
  .ckm-home-slide::after {
    background:
      linear-gradient(180deg, rgba(3, 3, 4, 1) 0%, rgba(3, 3, 4, 0.97) 39%, rgba(3, 3, 4, 0.48) 62%, rgba(3, 3, 4, 0.02) 100%),
      linear-gradient(90deg, rgba(3, 3, 4, 0.35), transparent 60%);
  }
  .ckm-home-slide__content {
    justify-content: flex-start;
    width: min(78%, 680px);
    height: auto;
    padding: 52px 70px;
  }
  .ckm-home-slide__title { font-size: clamp(38px, 5.4vw, 54px); }
  .ckm-home-slide__description { font-size: 18px; }
  .ckm-home-carousel .ckm-carousel__arrow { top: 72%; }
  .ckm-home-section { padding: 64px 24px; }
  .ckm-home-products--new { padding-top: 0; padding-bottom: 96px; }
  .ckm-home .custom-category-grid-alt-home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px !important; }
  .ckm-home-features__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ckm-home-feature:nth-child(3)::before { display: none; }
  .ckm-home .elementor-products-grid ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ckm-home-hero__inner { padding: 0; }
  .ckm-home-carousel {
    height: clamp(620px, calc(100svh - 62px), 760px);
    border-radius: 0;
    clip-path: inset(0 round 0);
  }
  .ckm-home-slide__image {
    right: -20%;
    height: 52%;
  }
  .ckm-home-slide__content {
    width: 100%;
    max-width: 560px;
    padding: 42px 52px 0;
  }
  .ckm-home-slide__eyebrow { margin-bottom: 9px; font-size: 16px; }
  .ckm-home-slide__title { max-width: 520px; font-size: clamp(34px, 9vw, 44px); line-height: 1.04; }
  .ckm-home-slide__description { max-width: 500px; margin: 16px 0 21px; font-size: 16px; line-height: 1.42; }
  .ckm-home-slide__button { min-height: 50px; padding: 12px 17px; font-size: 15px; }
  .ckm-home-carousel .ckm-carousel__arrow { top: 72%; width: 40px; height: 40px; }
  .ckm-home-carousel .ckm-carousel__arrow--prev { left: 14px; }
  .ckm-home-carousel .ckm-carousel__arrow--next { right: 14px; }
  .ckm-carousel__dots { bottom: 14px; }
  .ckm-home-section { padding: 42px 12px; }
  .ckm-home-products--new { padding-top: 0; padding-bottom: 72px; }
  .ckm-home-section__head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .ckm-home-section__title { width: 100%; font-size: 24px; }
  .ckm-home-section__button { align-self: flex-start; min-height: 40px; padding: 9px 18px; }
  .ckm-home .custom-category-grid-alt-home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px !important; }
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home { border-radius: 12px; }
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home a { padding: 12px 8px 14px; }
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home img { height: 70px; margin-bottom: 8px; }
  .ckm-home .custom-category-grid-alt-home .category-title { gap: 8px; font-size: 12.5px; }
  .ckm-home-features { padding: 0 12px 52px; }
  .ckm-home-features__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; padding: 8px 0; border-radius: 14px; }
  .ckm-home-feature { padding: 18px 12px; }
  .ckm-home-feature + .ckm-home-feature::before { display: none; }
  .ckm-home-feature:nth-child(odd) { box-shadow: inset -1px 0 rgba(248, 250, 252, .14); }
  .ckm-home-feature:nth-child(-n+2) { box-shadow: inset 0 -1px rgba(248, 250, 252, .14); }
  .ckm-home-feature:nth-child(1) { box-shadow: inset -1px 0 rgba(248, 250, 252, .14), inset 0 -1px rgba(248, 250, 252, .14); }
  .ckm-home-feature svg { width: 36px; height: 36px; margin-bottom: 4px; }
  .ckm-home-feature h3 { font-size: 15px; }
  .ckm-home-feature p { font-size: 12.5px; }
  .ckm-home .elementor-products-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 380px) {
  .ckm-home-slide__content { padding-right: 44px; padding-left: 44px; }
  .ckm-home-slide__title { font-size: 32px; }
  .ckm-home-slide__description { font-size: 15px; }
  .ckm-home .elementor-products-grid ul.products { gap: 10px; }
}

@media (max-width: 340px) {
  .ckm-home .custom-category-grid-alt-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-home-carousel .ckm-carousel__track { transition: none; }
  .ckm-home-slide__button,
  .ckm-home-carousel .ckm-carousel__arrow,
  .ckm-carousel__dot,
  .ckm-home-section__button,
  .ckm-home-section__button::after,
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home,
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home img,
  .ckm-home .custom-category-grid-alt-home .category-title::after { transition: none; }
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover,
  .ckm-home .custom-category-grid-alt-home .category-box-alt-home:hover img { transform: none; }
}

/* --- /assets/css/forms.css --- */
/* Forms of Carkeymaster Core (templates/forms/*.php): contact form and the
   online withdrawal form. Colours come from tokens.css (light + dark). */

.ckm-form {
  --ckm-form-gap: 18px;
  margin: 0;
}

.ckm-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ckm-form-gap) 20px;
}
.ckm-form__field--wide { grid-column: 1 / -1; }

.ckm-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ckm-form__label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 7px;
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}
.ckm-form__req { color: var(--c-accent); }
.ckm-form__optional {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: var(--fw-regular);
}

.ckm-form .ckm-form__control {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  color: var(--c-ink-2);
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04);
  font: inherit;
  font-size: 16px; /* No zoom on iOS. */
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
}
.ckm-form textarea.ckm-form__control {
  min-height: 150px;
  resize: vertical;
}
.ckm-form select.ckm-form__control {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8695' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.ckm-form .ckm-form__control::placeholder { color: var(--c-placeholder); }
.ckm-form .ckm-form__control:hover { border-color: var(--c-border-strong); }
.ckm-form .ckm-form__control:focus,
.ckm-form .ckm-form__control:focus-visible {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-focus-ring);
}

.ckm-form__count {
  align-self: flex-end;
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ckm-form__count.is-near { color: var(--c-warning); font-weight: var(--fw-semibold); }

.ckm-form__help {
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ckm-form__error {
  margin: 0;
  color: var(--c-danger);
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}
.ckm-form__error:empty { display: none; }
.ckm-form__error:not(:empty) {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.ckm-form__error:not(:empty)::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #fff;
  background: var(--c-danger);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.ckm-form__field.is-invalid .ckm-form__control {
  border-color: var(--c-danger);
  background-color: var(--c-danger-surface);
}
.ckm-form__field.is-invalid .ckm-form__control:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-danger) 22%, transparent);
}

/* Form-level message (expired page, too many messages, check fields). */
.ckm-form__status {
  margin: 0 0 20px;
  padding: 12px 16px;
  color: var(--c-ink-2);
  background: var(--c-info-surface);
  border: 1px solid var(--c-info-border);
  border-left: 4px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.5;
}
.ckm-form__status.is-error {
  background: var(--c-danger-surface);
  border-color: var(--c-danger-border);
  border-left-color: var(--c-danger);
}
.ckm-form__status:focus { outline: none; }
.ckm-form__status[hidden] { display: none; }

/* Honeypot: off-screen (not display:none, which many bots skip). */
.ckm-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ckm-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
}
.ckm-form__note {
  flex: 1 1 260px;
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.55;
}
.ckm-form__note a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }

.ckm-form .ckm-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border: 0;
  border-radius: var(--r-btn);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 24%, transparent);
  font: inherit;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ckm-form .ckm-form__submit:hover {
  background: var(--c-primary-hover);
  transform: translateY(-1px);
}
.ckm-form .ckm-form__submit:focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 3px;
}
.ckm-form .ckm-form__submit:disabled {
  cursor: progress;
  opacity: .8;
  transform: none;
}

.ckm-form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ckm-form-spin .7s linear infinite;
}
.ckm-form.is-busy .ckm-form__spinner { display: inline-block; }
@keyframes ckm-form-spin { to { transform: rotate(360deg); } }

/* ---- Success state ---- */
.ckm-form-done {
  padding: 8px 0 4px;
  scroll-margin-top: 24px;
}
.ckm-form-done__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--c-success);
  background: var(--c-success-surface);
  border: 1px solid var(--c-success-border);
  border-radius: 50%;
}
.ckm-form-done .ckm-form-done__title {
  margin: 0 0 8px;
  color: var(--c-ink-2);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
}
.ckm-form-done__title:focus { outline: none; }
.ckm-form-done__text {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.6;
}
.ckm-form-done__receipt {
  display: grid;
  margin: 0 0 16px;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ckm-form-done__receipt > div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 16px;
  background: var(--c-surface-raised);
}
.ckm-form-done__receipt > div:nth-child(odd) { background: var(--c-surface-soft); }
.ckm-form-done__receipt dt { color: var(--c-muted); font-size: 14px; font-weight: var(--fw-semibold); }
.ckm-form-done__receipt dd { margin: 0; color: var(--c-ink-2); font-size: 15px; overflow-wrap: anywhere; }
.ckm-form-done__statement {
  margin: 0 0 20px;
  padding: 12px 16px;
  color: var(--c-ink-2);
  background: var(--c-info-surface);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.55;
}
.ckm-form-done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ckm-form-done__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--c-ink-2);
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
}
.ckm-form-done__link:hover,
.ckm-form-done__link:focus-visible {
  color: var(--c-ink-2);
  border-color: var(--c-primary);
  text-decoration: none;
}

/* ---- Withdrawal form on the Cancellation Policy page ---- */
.ckm-form-wrap--withdrawal,
.ckm-legal-content .ckm-form-done {
  margin: 8px 0 40px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
}
.ckm-form-wrap .ckm-form-wrap__title {
  margin: 0 0 8px;
  color: var(--c-ink-2);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}
.ckm-form-wrap__lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--c-body);
  font-size: 15px;
  line-height: 1.6;
}

/* Option groups: radio buttons (choice) and checkboxes (multi) as cards. */
.ckm-form__choices {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ckm-form__choices > legend { padding: 0; }
.ckm-form__choices .ckm-form__help { margin: -2px 0 10px; }
.ckm-form__options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 8px;
}
.ckm-form__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--c-ink-2);
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ckm-form__option:hover { border-color: var(--c-border-strong); }
.ckm-form__option:has(input:checked) {
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}
.ckm-form__option:has(input:focus-visible) {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 2px;
}
.ckm-form__option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--c-primary);
}
.ckm-form__choices.is-invalid .ckm-form__option:not(:has(input:checked)) {
  border-color: var(--c-danger);
  background-color: var(--c-danger-surface);
}

/* Multi-step forms (forms.js shows one step at a time). */
.ckm-form--steps [hidden] { display: none !important; }
.ckm-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.ckm-steps__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  color: var(--c-muted);
  border-top: 3px solid var(--c-border);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}
.ckm-steps__item.is-current,
.ckm-steps__item.is-done { border-top-color: var(--c-primary); }
.ckm-steps__item.is-current { color: var(--c-ink-2); }
.ckm-steps__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border-radius: 50%;
  font-size: 12px;
}
.ckm-steps__item.is-current .ckm-steps__num,
.ckm-steps__item.is-done .ckm-steps__num {
  color: var(--c-primary-ink);
  background: var(--c-primary);
}
.ckm-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ckm-form--steps:not(.is-stepped) .ckm-step + .ckm-step {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border-soft);
}
.ckm-step__title {
  margin: 0 0 16px;
  padding: 0;
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.ckm-step__title:focus { outline: none; }
.ckm-step__count {
  display: block;
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}
.ckm-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.ckm-form .ckm-steps__back {
  min-height: 50px;
  padding: 12px 22px;
  color: var(--c-ink-2);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.ckm-form .ckm-steps__back:hover { border-color: var(--c-ink-2); }
.ckm-form .ckm-steps__back:focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .ckm-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ckm-form .ckm-form__submit { width: 100%; }
  .ckm-steps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ckm-steps__item.is-current .ckm-steps__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .ckm-steps__actions { width: 100%; flex-wrap: nowrap; }
  .ckm-steps__actions > * { flex: 1 1 0; }
  .ckm-form-done__receipt > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-form__spinner { animation-duration: 1.6s; }
  .ckm-form .ckm-form__submit,
  .ckm-form .ckm-form__control,
  .ckm-form__option { transition: none; }
}

/* Print the withdrawal confirmation only. */
@media print {
  body:has(.ckm-form-done) * { visibility: hidden; }
  body:has(.ckm-form-done) .ckm-form-done,
  body:has(.ckm-form-done) .ckm-form-done * { visibility: visible; }
  body:has(.ckm-form-done) .ckm-form-done {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
  }
  .ckm-form-done__actions { display: none; }
}

/* --- /assets/css/contact.css --- */
/* Native Contact page (inc/contact-page.php). Builds on home.css (graphite
   panel) and forms.css (the form itself). */

.ckm-contact { overflow-x: clip; }

/* =========================================================================
   Hero
   ========================================================================= */
.ckm-ct-hero { padding: 24px 15px 0; }
.ckm-ct-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: 32px 56px;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 60px) clamp(24px, 5vw, 72px);
}

.ckm-ct-eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  color: #ffd5d8;
  background: rgba(227, 6, 19, .18);
  border: 1px solid rgba(255, 72, 82, .35);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ckm-ct-hero__title {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.ckm-ct-hero__lead {
  max-width: 600px;
  margin: 0 0 24px;
  color: #c9d1dc;
  font-size: 18px;
  line-height: 1.65;
}
.ckm-ct-ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e7ebf1;
  font-size: 15px;
}
.ckm-ct-ticks li { display: flex; align-items: center; gap: 10px; }
.ckm-ct-ticks svg { flex: none; width: 16px; height: 16px; color: #ff5c68; stroke-width: 2.4; }

/* Direct channels (e-mail, phone, form). */
.ckm-ct-hero__channels { display: grid; gap: 12px; }
.ckm-ct-channel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  color: #f8fafc;
  background: rgba(248, 250, 252, .05);
  border: 1px solid rgba(248, 250, 252, .14);
  border-radius: 14px;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ckm-ct-channel:hover,
.ckm-ct-channel:focus-visible {
  color: #fff;
  background: rgba(248, 250, 252, .1);
  border-color: rgba(255, 92, 104, .6);
  text-decoration: none;
  transform: translateY(-1px);
}
.ckm-ct-channel:focus-visible { outline: 2px solid #ff5c68; outline-offset: 3px; }
.ckm-ct-channel__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--c-primary);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(227, 6, 19, .3);
}
.ckm-ct-channel__icon svg { width: 22px; height: 22px; }
.ckm-ct-channel--form .ckm-ct-channel__icon {
  background: rgba(248, 250, 252, .1);
  box-shadow: none;
}
.ckm-ct-channel__body { display: grid; gap: 2px; min-width: 0; }
.ckm-ct-channel__label {
  color: #a9b3c2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ckm-ct-channel__value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* =========================================================================
   Form + details
   ========================================================================= */
.ckm-ct-body { padding: 40px 15px 72px; }
.ckm-ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  gap: 28px;
  max-width: 1380px;
  margin: 0 auto;
}

.ckm-ct-card {
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}
.ckm-ct-form { padding: clamp(22px, 3.2vw, 40px); }
.ckm-ct-form { scroll-margin-top: 16px; }

.ckm-ct-card__title {
  margin: 0 0 8px;
  color: var(--c-ink-2);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.ckm-ct-card__title--sm {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 0;
}
.ckm-ct-card__lead {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.6;
}
.ckm-ct-card__lead a { color: var(--c-accent); font-weight: 600; }

.ckm-ct-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 20px;
}
.ckm-ct-details,
.ckm-ct-help { padding: 24px; }

/* Contact details list. */
.ckm-ct-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ckm-ct-list > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}
.ckm-ct-list__icon,
.ckm-ct-links__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--c-accent);
  background: var(--c-surface-hover);
  border-radius: 10px;
}
.ckm-ct-list__label {
  display: block;
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ckm-ct-list a,
.ckm-ct-list address {
  color: var(--c-ink-2);
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ckm-ct-list a { text-decoration: none; }
.ckm-ct-list a:hover { color: var(--c-accent); text-decoration: underline; }
.ckm-ct-list address { font-weight: 400; }
.ckm-ct-list address strong { font-weight: 600; }
.ckm-ct-list .ckm-ct-list__more {
  display: inline-block;
  margin-top: 6px;
  color: var(--c-accent);
  font-size: 14px;
}

/* Quick answers. */
.ckm-ct-links {
  display: grid;
  gap: 4px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}
.ckm-ct-links a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: var(--c-ink-2);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.ckm-ct-links a::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--c-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease, background-color .15s ease;
}
.ckm-ct-links a:hover,
.ckm-ct-links a:focus-visible {
  color: var(--c-ink-2);
  background: var(--c-surface-soft);
  text-decoration: none;
}
.ckm-ct-links a:hover::after { background: var(--c-accent); transform: translateX(2px); }
.ckm-ct-links__body { display: grid; gap: 1px; min-width: 0; }
.ckm-ct-links__body strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ckm-ct-links__body span { color: var(--c-muted); font-size: 13px; line-height: 1.4; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .ckm-ct-hero__panel { grid-template-columns: minmax(0, 1fr); }
  .ckm-ct-hero__channels { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 960px) {
  .ckm-ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ckm-ct-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .ckm-ct-hero { padding: 12px 10px 0; }
  .ckm-ct-hero__lead { font-size: 16px; }
  .ckm-ct-hero__channels { grid-template-columns: minmax(0, 1fr); }
  .ckm-ct-channel--form { display: none; }
  .ckm-ct-body { padding: 24px 10px 48px; }
  .ckm-ct-details,
  .ckm-ct-help { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-ct-channel,
  .ckm-ct-links a,
  .ckm-ct-links a::after { transition: none; }
}

