:root {
  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --border-soft: #e2e8f0;
  --text-main: #111827;
  --text-soft: #6b7280;
  --accent: #0061ff;
  --accent2: #4f46e5;
  --accent-soft: #e0ecff;
  --success: #16a34a;
}

/* Reset & Defaults */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  direction: ltr;
}
body.rtl {
  direction: rtl;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* Header */
.tp-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 4px 10px;
  gap: 12px;
}
.tp-header.rtl { 
  flex-direction: row-reverse; 
}

.tp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-logo-wrap.rtl { 
  flex-direction: row-reverse; 
}

.tp-logo-img {
  height: 56px;       /* FIXED — prevents huge logo */
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.tp-logo-text {
  font-weight: 600;
  letter-spacing: .03em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Floating Language Switcher */
.lang-switch-floating {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 50;
}
body.rtl .lang-switch-floating {
  right: auto;
  left: 16px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  border-radius: 999px;
  padding: 3px;
  background: #e5edff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}

.lang-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #1f2937;
  min-width: 40px;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 4px 6px 18px;
}

.hero-badge,
.hero-badge-remote {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-badge-remote {
  background: #fee2e2;
  color: #b91c1c;
  margin-left: 4px;
  margin-right: 4px;
}

.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 4px;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 680px;
  margin-inline: auto;
}

/* SUMMARY CARD */
.summary-top {
  margin-top: 8px;
  margin-bottom: 18px;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
  padding: 16px 16px 14px;
}

.summary-label {
  font-size: 0.7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary-total {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--success);
  margin: 4px 0 6px;
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.summary-status {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 6px;
}

.summary-status strong {
  color: var(--text-main);
}

/* CTA Row */
.tp-cta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 25px rgba(37,99,235,0.35);
  text-decoration: none;
}

.btn-primary span.icon {
  font-size: 1rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px dashed #9ca3af;
  padding: 8px 14px;
  background: transparent;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #4b5563;
}

/* MAIN LAYOUT */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* CARD */
.card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
  padding: 16px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.field-group {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: 10px;
}

.group-title {
  font-size: 0.75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

/* FIELD ROWS */
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

select, input[type="number"] {
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  padding: 4px 9px;
  font-size: 0.84rem;
  min-width: 80px;
  background: #f9fafb;
}

input[type="checkbox"] {
  transform: scale(1.05);
  margin: 0 4px;
}

.hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* BREAKDOWN */
.breakdown-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

.breakdown-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 3px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.breakdown-item span:last-child {
  color: var(--accent);
  font-weight: 500;
}

/* FOOTER */
footer.page-footer {
  margin-top: 22px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-soft);
}

footer.page-footer .contact-line {
  margin-top: 4px;
  font-weight: 600;
  color: #111827;
}

/* WHATSAPP FLOAT BUTTON */
.tp-whatsapp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
}

.tp-whatsapp-main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-whatsapp-panel {
  display: none;
  position: absolute;
  right: 70px;
  bottom: 8px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  gap: 8px;
}

.tp-whatsapp-panel.visible {
  display: flex;
}

.tp-wa-option {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  text-decoration: none;
  color: white;
}

.tp-wa-option.call { background: #0f172a; }
.tp-wa-option.chat { background: #22c55e; }
