/* Captain Jack's Travel Checklist */

.travel-checklist.cjtc-component{
  --cjtc-burgundy:#7A1E2C;
  --cjtc-burgundy-dark:#5F1622;
  --cjtc-green:#4F7F5A;
  --cjtc-text:#272727;
  --cjtc-muted:#686868;
  --cjtc-line:#E8E3DF;
  --cjtc-surface:#FAF8F6;

  padding:clamp(24px,4vw,44px);
  border:1px solid var(--cjtc-line);
  border-radius:24px;
  background:linear-gradient(145deg,#FFFFFF 0%,var(--cjtc-surface) 100%);
  box-shadow:0 18px 45px rgba(50,30,24,.07);
}

.cjtc-title{
  margin:0 0 8px;
  font-family:"League Spartan",sans-serif;
  font-size:clamp(28px,3vw,42px);
  line-height:1.05;
  font-weight:700;
  color:var(--cjtc-text);
}

.cjtc-intro{
  max-width:720px;
  margin:0 0 28px;
  font-family:"League Spartan",sans-serif;
  font-size:16px;
  line-height:1.6;
  font-weight:300;
  color:var(--cjtc-muted);
}

.travel-checklist .cjtc-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  margin:0;
  padding:0;
  list-style:none;
}

.cjtc-item{
  margin:0;
  padding:0;
}

.cjtc-label{
  display:flex;
  align-items:flex-start;
  gap:13px;
  min-height:56px;
  padding:15px 16px;
  border:1px solid var(--cjtc-line);
  border-radius:14px;
  background:rgba(255,255,255,.78);
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.cjtc-label:hover{
  transform:translateY(-1px);
  border-color:rgba(122,30,44,.28);
  box-shadow:0 8px 20px rgba(50,30,24,.06);
}

.cjtc-checkbox{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cjtc-custom-box{
  position:relative;
  flex:0 0 21px;
  width:21px;
  height:21px;
  margin-top:1px;
  border:1.5px solid #B5ABA5;
  border-radius:6px;
  background:#fff;
  transition:all .18s ease;
}

.cjtc-checkbox:focus-visible + .cjtc-custom-box{
  outline:3px solid rgba(122,30,44,.2);
  outline-offset:3px;
}

.cjtc-checkbox:checked + .cjtc-custom-box{
  border-color:var(--cjtc-green);
  background:var(--cjtc-green);
}

.cjtc-checkbox:checked + .cjtc-custom-box::after{
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:6px;
  height:11px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

.cjtc-item-text{
  font-family:"League Spartan",sans-serif;
  font-size:16px;
  line-height:1.45;
  font-weight:300;
  color:var(--cjtc-text);
}

.cjtc-checkbox:checked ~ .cjtc-item-text{
  color:#6A6A6A;
  text-decoration:line-through;
  text-decoration-thickness:1px;
}

.cjtc-controls{
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid var(--cjtc-line);
}

.cjtc-progress-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:11px;
  font-family:"League Spartan",sans-serif;
  font-size:14px;
  color:var(--cjtc-muted);
}

.cjtc-progress-copy strong,
.cjtc-progress-percent{
  font-weight:600;
  color:var(--cjtc-text);
}

.cjtc-progress-track{
  width:100%;
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#E8E3DF;
}

.cjtc-progress-fill{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--cjtc-burgundy),#A24455);
  transition:width .28s ease;
}

.cjtc-download-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:22px;
  padding:14px 21px;
  border:0;
  border-radius:999px;
  background:var(--cjtc-burgundy);
  color:#fff;
  font-family:"League Spartan",sans-serif;
  font-size:15px;
  line-height:1;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(122,30,44,.17);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}

.cjtc-download-button:hover{
  transform:translateY(-1px);
  background:var(--cjtc-burgundy-dark);
  box-shadow:0 13px 26px rgba(122,30,44,.22);
}

.cjtc-download-button:focus-visible{
  outline:3px solid rgba(122,30,44,.24);
  outline-offset:4px;
}

.cjtc-download-icon{
  width:18px;
  height:18px;
}

.cjtc-download-note{
  margin:10px 0 0;
  font-family:"League Spartan",sans-serif;
  font-size:13px;
  line-height:1.4;
  font-weight:300;
  color:var(--cjtc-muted);
}

/* Mobile only */

@media (max-width:767px){

  .travel-checklist.cjtc-component{
    padding:24px 18px;
    border-radius:18px;
  }

  .travel-checklist .cjtc-list{
    display:block;
  }

  .cjtc-item{
    width:100%;
    margin-bottom:12px;
  }

  .cjtc-label{
    min-height:auto;
  }

  .cjtc-download-button{
    width:100%;
  }

}

@media (prefers-reduced-motion:reduce){

  .cjtc-label,
  .cjtc-custom-box,
  .cjtc-progress-fill,
  .cjtc-download-button{
    transition:none;
  }

}