/* ============================================================
   Pricing page and calculator. Dark theme + #1496F9 accent, like
   client.css. Logical properties only (inline-start/end), so the
   same rules serve Arabic (RTL) and English (LTR).
   ============================================================ */

.tt-page-head { padding-bottom: 20px; }
/* The title scales with the screen, so "CALCULATOR" fits on a phone (80px only from about
   760px wide). Overrides the theme's .fz-80, which is !important. */
.tt-page-head h1.fz-80 { font-size: clamp(32px, 10.5vw, 80px) !important; overflow-wrap: anywhere; }
.tt-page-sub { margin-top: 16px; opacity: 0.8; font-size: 18px; }

.tt-pricing-bar { text-align: center; margin-bottom: 30px; }
.tt-note { font-size: 14px; opacity: 0.75; margin: 8px 0 0; }
.tt-note a { color: #1496f9; text-decoration: underline; }

/* currency switcher */
.tt-cur { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 6px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 30px; }
.tt-cur-label { padding-inline: 10px 4px; font-size: 14px; opacity: 0.75; }
.tt-cur-btn { background: transparent; color: #fff; border: 0; border-radius: 20px;
  padding: 6px 14px; font-weight: 600; cursor: pointer; direction: ltr; }
.tt-cur-btn:hover { background: rgba(255, 255, 255, 0.08); }
.tt-cur-btn.is-active { background: #1496f9; }
.tt-cur-btn:focus-visible { outline: 2px solid #1496f9; outline-offset: 2px; }

/* messages */
.tt-msg { border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; }
.tt-msg.error { background: rgba(235, 87, 87, 0.15); border: 1px solid rgba(235, 87, 87, 0.5); }
.tt-msg.success { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.5); }

/* package cards */
.tt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.tt-card { display: flex; flex-direction: column; gap: 12px; padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.tt-card h3 { font-size: 22px; margin: 0; }
.tt-card-desc { opacity: 0.8; flex: 1; margin: 0; }
.tt-price { display: flex; flex-direction: column; gap: 2px; }
.tt-from { font-size: 13px; opacity: 0.7; }
.tt-price strong { font-size: 30px; font-weight: 700; color: #1496f9; }
.tt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tt-actions .butn[disabled] { opacity: 0.5; cursor: not-allowed; }
.tt-link-btn { background: none; border: 0; color: #fff; opacity: 0.75; text-decoration: underline; cursor: pointer; }
.tt-confirm { display: flex; flex-direction: column; gap: 12px; }
.tt-country { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 10px 14px; }
.tt-country legend { font-size: 14px; padding-inline: 6px; width: auto; float: none; margin: 0; }
.tt-country label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 18px; cursor: pointer; }

/* other services */
.tt-others { margin-top: 60px; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 30px;
  padding: 30px; border-radius: 16px; background: rgba(20, 150, 249, 0.06); border: 1px solid rgba(20, 150, 249, 0.25); }
.tt-others-head h2 { font-size: 26px; margin-bottom: 10px; }
.tt-others-head p { opacity: 0.8; margin-bottom: 20px; }
.tt-others-list { list-style: none; margin: 0; padding: 0; }
.tt-others-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tt-others-price { white-space: nowrap; font-weight: 600; }

/* calculator */
.tt-calc { display: grid; grid-template-columns: 2fr minmax(260px, 1fr); gap: 30px; align-items: start; }
.tt-step { font-size: 24px; margin: 10px 0 16px; }
.tt-group { border: 0; padding: 0; margin: 0 0 24px; }
.tt-group legend { font-size: 15px; opacity: 0.7; margin-bottom: 8px; float: none; width: auto; }
.tt-option { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.tt-option.is-on { border-color: #1496f9; background: rgba(20, 150, 249, 0.06); }
.tt-option-main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; cursor: pointer; margin: 0; }
.tt-option-main input { margin-top: 5px; width: 18px; height: 18px; accent-color: #1496f9; }
.tt-option-main small { display: block; opacity: 0.7; font-size: 13px; margin-top: 4px; }
.tt-option-price { display: block; white-space: nowrap; font-size: 14px; font-weight: 600; }
.tt-qty { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding-inline-start: 30px; font-size: 14px; }
.tt-qty input { width: 90px; }
.tt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.tt-field input, .tt-field select, .tt-field textarea, .tt-qty input {
  background: rgba(255, 255, 255, 0.04); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.tt-field select option { color: #000; }
.tt-field input:focus, .tt-field select:focus, .tt-field textarea:focus, .tt-qty input:focus {
  outline: none; border-color: #1496f9; }
.tt-calc-side { position: sticky; top: 100px; }
.tt-estimate { padding: 26px; border-radius: 16px; border: 1px solid rgba(20, 150, 249, 0.35);
  background: rgba(20, 150, 249, 0.06); display: flex; flex-direction: column; gap: 10px; }
.tt-estimate h3 { font-size: 18px; margin: 0; }
.tt-estimate-value { font-size: 26px; font-weight: 700; color: #1496f9; margin: 0; }
.tt-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 991px) {
  .tt-others, .tt-calc { grid-template-columns: 1fr; }
  .tt-calc-side { position: static; }
}
@media (max-width: 575px) {
  .tt-row { grid-template-columns: 1fr; }
  .tt-card { padding: 22px; }
  .tt-others { padding: 20px; }
  .tt-others-list li { flex-direction: column; gap: 4px; }
  .tt-option-main { grid-template-columns: auto 1fr; }
  .tt-option-price { grid-column: 2; }
}

/* Calculator items that need another choice first (for example Odoo add-ons). */
.tt-option.is-off { opacity: 0.55; }
.tt-option.is-off .tt-option-main { cursor: not-allowed; }
.tt-requires { margin: 6px 0 0; }
/* Pricing page: the other services, grouped. */
.tt-others-group h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.tt-attrib { margin-top: 16px; font-size: 0.8rem; opacity: 0.7; }

/* Phase 0 (2026-11-10). The main area clips sideways overflow without becoming a scroll
   container, so the calculator summary can stick. Browsers without clip fall back to hidden. */
.tt-clip { overflow: hidden; overflow: clip; }
.tt-option-main input[type="radio"] { border-radius: 50%; }

/* Phone: a bar with the running total while the summary box is off screen. Room on the
   right for the live chat bubble, which Odoo always places bottom right. */
.tt-mbar { display: none; }
@media (max-width: 991px) {
  .tt-mbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 88px 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: #141414; border-top: 1px solid rgba(20, 150, 249, 0.45);
    color: inherit; text-decoration: none; min-height: 60px;
  }
  .tt-mbar:hover, .tt-mbar:focus-visible { color: inherit; background: #181c22; }
  .tt-mbar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
  .tt-mbar-top small { opacity: 0.7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tt-mbar-cta { flex: none; font-size: 13px; font-weight: 600; color: #1496f9; text-decoration: underline; text-underline-offset: 3px; }
  .tt-mbar-total { font-weight: 700; color: #1496f9; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
  /* The amount is LTR text; on Arabic pages it still lines up on the right, under the label. */
  [dir="rtl"] .tt-mbar-total { text-align: right; }
  .tt-pricing { padding-bottom: 90px; }
  body:has(.tt-mbar) .progress-wrap { bottom: 96px; }
}

/* Phase 1 (2026-11-10): steps, step 1 answers, summary lines and separate totals. */
.tt-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 18px; font-size: 13px; }
.tt-steps li { opacity: 0.55; }
.tt-steps li.is-current { opacity: 1; font-weight: 600; }
.tt-steps li.is-done { opacity: 0.85; }
.tt-steps button { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tt-step-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center;
  border: 1px solid currentColor; font-size: 12px; margin-inline-end: 4px; }
.tt-steps li.is-current .tt-step-n { background: #1496f9; border-color: #1496f9; color: #fff; }
.tt-step small { display: block; font-size: 13px; opacity: 0.6; font-weight: 400; margin-bottom: 4px; }
.tt-step:focus { outline: none; }
.tt-step:focus-visible { outline: 2px solid #1496f9; outline-offset: 4px; }

.tt-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.tt-track { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 18px; min-height: 44px; }
.tt-track.is-on { border-color: #1496f9; background: rgba(20, 150, 249, 0.06); }
.tt-track input { margin-top: 5px; width: 18px; height: 18px; accent-color: #1496f9; }
.tt-track strong { display: block; font-size: 16px; }
.tt-track small { display: block; opacity: 0.7; font-size: 13px; margin-top: 4px; }
.tt-link-btn { background: none; border: 0; color: #1496f9; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

.tt-nav { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 8px; }

.tt-stepper { display: inline-flex; align-items: stretch; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; overflow: hidden; }
.tt-stepper button { width: 44px; min-height: 44px; background: transparent; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.tt-stepper button:focus-visible { outline: 2px solid #1496f9; outline-offset: -2px; }
.tt-stepper input { width: 64px; text-align: center; border: 0; border-radius: 0; -moz-appearance: textfield; }
.tt-stepper input::-webkit-outer-spin-button, .tt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tt-lines { list-style: none; padding: 0; margin: 14px 0; font-size: 13px; }
.tt-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tt-line-price { white-space: nowrap; opacity: 0.85; }
.tt-line-remove { background: none; border: 0; color: inherit; opacity: 0.6; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.tt-line-remove:hover, .tt-line-remove:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.tt-totals { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; margin: 0 0 12px; }
.tt-totals dt { font-weight: 400; opacity: 0.75; font-size: 14px; }
.tt-totals dd { margin: 0; text-align: end; font-weight: 600; }
.tt-totals dd.tt-estimate-value { font-size: 22px; }
.tt-totals dd small { display: block; font-weight: 400; opacity: 0.7; font-size: 12px; }
.tt-estimate .butn { width: 100%; justify-content: center; }

@media (max-width: 575px) {
  .tt-tracks { grid-template-columns: 1fr; }
  .tt-nav .butn { flex: 1; justify-content: center; }
}

/* Phase 2 (2026-11-10): long descriptions, share link, thank-you screen, phone steps. */
.tt-desc-clamp { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-more { background: none; border: 0; color: #1496f9; padding: 4px 0; margin-inline-start: 30px; font-size: 13px; cursor: pointer; min-height: 32px; }
.tt-share { display: block; font-size: 14px; margin: 0 0 8px; }
.tt-done { max-width: 640px; margin: 0 auto; padding: 32px; border-radius: 16px; border: 1px solid rgba(20, 150, 249, 0.35); }
.tt-done h2 { font-size: 26px; margin: 0 0 10px; }
.tt-done h3 { font-size: 17px; margin: 22px 0 8px; }
.tt-done ol { padding-inline-start: 20px; margin: 0; line-height: 1.9; }
.tt-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 575px) {
  /* On a phone, only the current step keeps its name; the rest are numbers. */
  .tt-steps { gap: 8px; }
  .tt-steps li:not(.is-current) .tt-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tt-done { padding: 22px 16px; }
}
.tt-done:focus { outline: none; }
