.tb-calculator-container {
    display: grid;
        grid-template-columns: 59% 40%;
    gap: 2%;
    align-items: start;
}

/* service / gallery */

.tb-service-gallery { margin-bottom: 20px; }

.tb-main-image { margin-bottom: 15px; text-align: center; }
.tb-main-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

.tb-gallery-thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tb-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.tb-gallery-thumb:hover,
.tb-gallery-thumb.active { border-color: #007cba; transform: scale(1.05); }

/* controls panel */
.tb-calculator-controls {

    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

.tb-control-group { margin-bottom: 25px; }

.tb-control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tb-service-selector {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tb-service-selector:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

/* Complexity options: cleaned and consolidated */
.tb-complexity-options {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
}

/* Each option is a label that contains the input and the visible label */
.tb-complexity-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: rgba(245, 251, 255, 0.692);
    min-width: 120px;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    margin: 0;
    color: #333;
    overflow: hidden;
}

.tb-complexity-option input[type="radio"] {
    /* input covers the label so clicks are easy, but it's invisible */
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
}

/* the visible text inside the option */
.tb-complexity-label {
    font-weight: 500;
    color: inherit;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none; /* clicks handled by the absolute input */
}

/* hover (non-destructive) */
.tb-complexity-option:hover {
    border-color: #007cba;
    background: rgba(230, 245, 255, 1);
    transform: translateY(-2px);
}

/* Checked state: preferred approach using :has (modern browsers) */
.tb-complexity-option:has(input[type="radio"]:checked) {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
    transform: none; /* avoid extra translate for active selection */
}
.tb-complexity-option:has(input[type="radio"]:checked) .tb-complexity-label {
    color: #ffffff;
}

/* Fallback (for browsers without :has): apply .is-checked via JS */
.tb-complexity-option.is-checked {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
}
.tb-complexity-option.is-checked .tb-complexity-label {
    color: #ffffff;
}

/* If hovered while checked, keep selected visual (slightly darker) */
.tb-complexity-option.is-checked:hover,
.tb-complexity-option:has(input[type="radio"]:checked):hover {
    background: #006a99;
    border-color: #006a99;
}

/* Turnaround options (same pattern) */
.tb-turnaround-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-turnaround-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: white;
    position: relative;
}
.tb-turnaround-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.tb-turnaround-label { flex: 1; font-weight: 500; color: #333; z-index: 1; pointer-events: none; }
.tb-turnaround-fee { font-weight: 600; color: #007cba; z-index: 1; pointer-events: none; }

.tb-turnaround-option:hover { border-color: #007cba; background: rgba(230,245,255,1); transform: translateY(-2px); }

/* Checked state for turnaround (with :has and fallback) */
.tb-turnaround-option:has(input[type="radio"]:checked),
.tb-turnaround-option.is-checked {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}
.tb-turnaround-option:has(input[type="radio"]:checked) .tb-turnaround-label,
.tb-turnaround-option.is-checked .tb-turnaround-label {
    color: #fff;
}
.tb-turnaround-option:has(input[type="radio"]:checked) .tb-turnaround-fee,
.tb-turnaround-option.is-checked .tb-turnaround-fee {
    color: rgba(255,255,255,0.95);
}

/* Quantity, price summary, order buttons etc. (kept mostly as before) */
.tb-quantity-control { display: flex; align-items: center; max-width: 100%; }
.tb-quantity-minus,
.tb-quantity-plus {
    width: 40px;
    height: 40px;
    border: 2px solid #e1e5e9;
    background: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-quantity-minus { border-radius: 8px 0 0 8px; border-right: none; }
.tb-quantity-plus { border-radius: 0 8px 8px 0; border-left: none; }
.tb-quantity-minus:hover,
.tb-quantity-plus:hover { background: #007cba; color: white; border-color: #007cba; }

.tb-quantity-input {
    width: 80px;
    height: 40px;
    border: 2px solid #e1e5e9;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.tb-quantity-input:focus { outline: none; }

.tb-price-summary {
    background: #f6fffb8f;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.tb-price-breakdown { margin-bottom: 20px; }
.tb-price-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e1e5e9; }
.tb-price-line:last-child { border-bottom: none; }
.tb-total-line { font-size: 18px; padding-top: 12px; border-top: 2px solid #e1e5e9; }
.tb-total-price { color: #007cba; font-size: 24px; }

.tb-order-buttons {
  display: flex;
  gap: 10px; /* দুই বাটনের মাঝে সুন্দর গ্যাপ */
  flex-wrap: wrap; /* মোবাইলে নিচে নেমে যাবে */
  align-items: center;
}
.tb-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 40px;
  background: linear-gradient(135deg, #1da1f2, #0d8ce0);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.tb-order-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}


.tb-order-button2 {
  background: #005873;
  color: #fff;
}

.tb-order-button2 .tb-text {
  padding: 0 5px;
}

.tb-order-button2 .tb-icon {
  background: #1da1f2;
  color: #fff;
  padding: 0 5px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: 0.3s ease;
}

.tb-order-button2:hover .tb-icon {
  background: #0d8ce0;
}



@media (max-width: 480px) {


  .tb-order-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tb-order-button {
    width: 100%;
  }
}



/* Responsive */
@media (max-width: 768px) {
    .tb-calculator-container { grid-template-columns: 1fr; gap: 20px; }

    .tb-service-content,
    .tb-calculator-controls { padding: 20px; }

    .tb-quantity-control { max-width: 100%; }

    .tb-complexity-options { flex-direction: column; gap: 8px; }
    .tb-complexity-option { width: 100%; min-width: auto; justify-content: center; padding: 15px; }

    .tb-complexity-option input[type="radio"] { width: 100%; height: 100%; top: 0; left: 0; z-index: 2; }

    .tb-turnaround-option { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tb-turnaround-option input[type="radio"] { margin-right: 0; width: 100%; height: 100%; top: 0; left: 0; }
}