:root{
  --ts-bg:#edf4ec;
  --ts-bg-soft:#f7faf7;
  --ts-primary:#2f6b3b;
  --ts-primary-dark:#1f4728;
  --ts-ink:#102117;
  --ts-muted:#66756b;
  --ts-line:#d8e2d7;
  --ts-white:#ffffff;
  --ts-shadow:0 14px 40px rgba(16,33,23,.12);
}

.ts-wrap{
  background:var(--ts-bg);
  padding:28px 20px;
  border-radius:18px;
  width:100%;
  max-width:1100px;
  margin:auto;
  box-sizing:border-box;
  container-name:ts-services;
  container-type:inline-size;
}

.ts-wrap *,
.ts-wrap *::before,
.ts-wrap *::after{
  box-sizing:border-box;
}

.ts-heading{
  text-align:center;
  max-width:760px;
  margin:0 auto 24px;
}

.ts-main-title{
  margin:0 0 10px;
  font-size:36px;
  line-height:1.08;
  font-weight:800;
  color:var(--ts-ink);
}

.ts-intro{
  margin:0;
  color:var(--ts-muted);
  font-size:16px;
  line-height:1.6;
}

.ts-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  background:var(--ts-bg-soft);
  padding:12px;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  margin:0 auto 20px;
}

.ts-tab{
  appearance:none;
  border:0;
  background:transparent;
  font-weight:700;
  letter-spacing:.3px;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, color .12s ease;
  color:var(--ts-ink);
  font-size:14px;
}

.ts-tab:hover{ transform:translateY(-1px); }

.ts-tab.is-active{
  background:var(--ts-primary);
  color:#fff;
}

.ts-panel{ display:none; }
.ts-panel.is-active{ display:block; }

.ts-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  width:100%;
}

@media (max-width:992px){
  .ts-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ts-wrap.ts-wrap--button-only {
    text-align:center;
    padding:30px 0;
  }
}

@media (max-width:640px){
  .ts-grid{ grid-template-columns:1fr; }
}

/*
 * The shortcode is often placed inside a page-builder column. Container
 * queries make the cards respond to that real space instead of only to the
 * browser width. The media queries above remain as a fallback for older
 * browsers.
 */
@container ts-services (max-width:760px){
  .ts-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@container ts-services (max-width:480px){
  .ts-grid{ grid-template-columns:1fr; }
}

.ts-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  border:1px solid rgba(0,0,0,.03);
  width:100%;
  min-width:0;
}

.ts-card__media{
  position:relative;
  width:100%;
  height:220px;
  overflow:hidden;
  flex:0 0 auto;
  background:#e8eee7;
}

@supports (aspect-ratio:1 / 1){
  .ts-card__media{
    height:auto;
    aspect-ratio:10 / 7;
  }
}

.ts-wrap .ts-card__media > .ts-card__img{
  position:absolute;
  inset:0;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:100%;
  margin:0 !important;
  padding:0 !important;
  border:0;
  border-radius:0;
  object-fit:cover !important;
  object-position:center center;
  display:block;
}

.ts-card__img--placeholder{
  background:linear-gradient(135deg, #dfe9dd, #f4f7f3);
}

.ts-card__body{
  padding:18px 18px 8px;
}

.ts-card__title{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.15;
  font-weight:800;
  color:var(--ts-ink);
}

.ts-card__tagline{
  font-size:14px;
  font-weight:700;
  color:var(--ts-primary);
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.ts-card__excerpt{
  color:var(--ts-muted);
  font-size:15px;
  line-height:1.55;
}

.ts-card__footer{
  margin-top:auto;
  padding:16px 18px 18px;
}

.ts-btn,
.ts-continue-btn{
  width:100%;
  border:0;
  cursor:pointer;
  border-radius:50px;
  padding:15px 14px;
  font-weight:800;
  letter-spacing:.3px;
  background:#ff2533;
  color:#FFF;
  transition:transform .12s ease, filter .12s ease, background .12s ease;
  font-size:17px;
}

p.ts-intro {
  color:#000 !important;
}

.ts-btn:hover,
.ts-continue-btn:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.ts-btn--secondary{
  background:#ecf3eb;
  color:var(--ts-primary);
}

.ts-btn--small{
  width:auto;
  padding:12px 16px;
  font-size:14px;
}

.ts-empty{
  grid-column:1 / -1;
  background:#fff;
  padding:18px;
  border-radius:12px;
  box-shadow:0 2px 14px rgba(0,0,0,.06);
  color:var(--ts-ink);
  font-weight:600;
}

.ts-modal[hidden]{
  display:none !important;
}

.ts-modal{
  position:fixed;
  inset:0;
  z-index:999999;
}

.ts-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(10,18,35,.44);
  backdrop-filter:blur(2px);
}

.ts-modal__dialog{
  position:relative;
  max-width:760px;
  width:min(92vw, 760px);
  max-height:88vh;
  overflow:hidden;
  background:#fff;
  margin:4vh auto;
  border-radius:24px;
  box-shadow:var(--ts-shadow);
  display:flex;
  flex-direction:column;
}

.ts-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px;
  border-bottom:1px solid var(--ts-line);
}

.ts-modal__header-title{
  font-size:16px;
  font-weight:800;
  color:var(--ts-ink);
}

.ts-modal__close,
.ts-modal__back{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--ts-ink);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
}

.ts-modal__close:hover,
.ts-modal__back:hover{
  background:#f5f7f5;
}

.ts-modal__body{
  padding:28px 26px 24px;
  overflow:auto;
}

.ts-step{ display:none; }
.ts-step.is-active{ display:block; }

.ts-selected-services{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}

.ts-service-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--ts-line);
  border-radius:14px;
  background:#fff;
}

.ts-service-pill__text{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ts-service-pill__text strong{
  color:var(--ts-ink);
  font-size:16px;
  line-height:1.2;
}

.ts-service-pill__text span{
  color:var(--ts-muted);
  font-size:14px;
}

.ts-service-pill__remove{
  border:0;
  background:#eef3ee;
  color:var(--ts-primary);
  border-radius:999px;
  cursor:pointer;
  line-height:1;
  font-size:22px;
}

.ts-add-service-row{
  margin:6px 0 16px;
}

.ts-link-add{
  border:0;
  background:transparent;
  color:var(--ts-primary);
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  padding:0;
}

.ts-add-service-box,
.ts-add-image-box{
  display:flex;
  gap:10px;
  margin:0 0 18px;
  flex-direction:column;
}

@media (max-width:640px){
  .ts-add-service-box,
  .ts-add-image-box{
    flex-direction:column;
  }
}

.ts-field{
  margin-bottom:18px;
}

.ts-field__label{
  display:block;
  font-size:15px;
  color:var(--ts-ink);
  font-weight:600;
  margin-bottom:8px;
}

.ts-field__input{
  width:100%;
  min-height:54px;
  border:1px solid #d8dce5;
  border-radius:12px;
  padding:14px 16px;
  font-size:16px;
  color:var(--ts-ink);
  box-sizing:border-box;
  background:#fff;
}

.ts-field__input:focus{
  outline:none;
  border-color:var(--ts-primary);
  box-shadow:0 0 0 3px rgba(47,107,59,.10);
}

.ts-field__textarea{
  min-height:120px;
  resize:vertical;
}

.ts-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

@media (max-width:640px){
  .ts-grid-2{
    grid-template-columns:1fr;
  }
}

.ts-confirm,
.ts-consent-box{
  max-width:560px;
  margin:0 auto;
}

.ts-form-title{
  font-size:28px;
  line-height:1.12;
  font-weight:800;
  color:var(--ts-ink);
  margin:0 0 6px;
}

.ts-form-subtitle{
  color:var(--ts-muted);
  margin:0 0 24px;
  font-size:14px;
}

.ts-review-box{
  border:1px solid var(--ts-line);
  border-radius:16px;
  padding:18px;
  background:#fbfdfb;
  margin-bottom:18px;
}

.ts-review-box__title{
  font-weight:800;
  color:var(--ts-ink);
  margin-bottom:14px;
  font-size:15px;
}

.ts-review-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px 18px;
}

@media (max-width:640px){
  .ts-review-grid{
    grid-template-columns:1fr;
  }
}

.ts-review-item--full{
  grid-column:1 / -1;
}

.ts-review-label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:var(--ts-muted);
  font-weight:700;
  margin-bottom:5px;
}

.ts-review-value{
  color:var(--ts-ink);
  font-weight:600;
  line-height:1.5;
}

.ts-consent-row{
  margin:22px 0 12px;
  padding-top:18px;
  border-top:1px solid var(--ts-line);
}

.ts-checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--ts-ink);
  font-size:15px;
  line-height:1.5;
}

.ts-checkbox a{
  color:var(--ts-primary);
  text-decoration:none;
  margin-left:6px;
}

.ts-checkbox a:hover{
  text-decoration:underline;
}

.ts-step-actions{
  margin-top:20px;
}

.ts-continue-btn[disabled]{
  opacity:.5;
  cursor:not-allowed;
}

.ts-message{
  margin-top:14px;
  font-size:14px;
  font-weight:600;
}

.ts-message.is-error{
  color:#b42318;
}

.ts-message.is-success{
  color:#067647;
}

body.ts-modal-open{
  overflow:hidden;
}

.ts-wrap--button-only{
  background:transparent;
  padding:0;
  max-width:none;
}

.ts-button-only{
  display:inline-block;
}

.ts-btn--inline{
  width:auto;
  min-width:180px;
}

.ts-file-input{
  padding:12px 16px;
}
span.ts-review-label {
    border: 0;
    color: #000;
}
label.ts-checkbox span {
    border: 0;
}

.ts-upload-help{
  color:var(--ts-muted);
  font-size:13px;
  margin-top:-6px;
}

.ts-upload-preview{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border:1px solid var(--ts-line);
  border-radius:14px;
  background:#fbfdfb;
}

.ts-upload-preview img,
.ts-review-image{
  display:block;
  width:100%;
  max-width:240px;
  height:auto;
  border-radius:12px;
  border:1px solid var(--ts-line);
  object-fit:cover;
}
