:root {
  --xrtech-cc-bg: #03070b;
  --xrtech-cc-panel: rgba(11, 18, 28, 0.84);
  --xrtech-cc-panel-2: rgba(15, 24, 36, 0.92);
  --xrtech-cc-line: rgba(255, 255, 255, 0.12);
  --xrtech-cc-text: #f7fbff;
  --xrtech-cc-muted: #9fb0c6;
  --xrtech-cc-soft: #d7e4f4;
  --xrtech-cc-accent: #22d3ee;
  --xrtech-cc-accent-2: #58f2b6;
  --xrtech-cc-field: #ffffff;
  --xrtech-cc-field-text: #08111f;
  --xrtech-cc-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --xrtech-cc-radius-xl: 28px;
  --xrtech-cc-radius-lg: 22px;
}

body.xrtech-cost-calculator-page {
  background-color: #020407 !important;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(88, 242, 182, 0.14), transparent 24%),
    radial-gradient(circle at 68% 82%, rgba(155, 123, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #020407 0%, #050a11 44%, #020406 100%) !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--xrtech-cc-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}

body.xrtech-cost-calculator-page #masthead,
body.xrtech-cost-calculator-page #top-header,
body.xrtech-cost-calculator-page .site-footer,
body.xrtech-cost-calculator-page .entry-header {
  display: none !important;
}

body.xrtech-cost-calculator-page .site-content,
body.xrtech-cost-calculator-page #content.site-content,
body.xrtech-cost-calculator-page #primary,
body.xrtech-cost-calculator-page .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.xrtech-cost-calculator-page.logged-in #masthead {
  top: auto !important;
}

body.xrtech-cost-calculator-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
}

body.xrtech-cost-calculator-page #main,
body.xrtech-cost-calculator-page .site-content,
body.xrtech-cost-calculator-page .content-area,
body.xrtech-cost-calculator-page article,
body.xrtech-cost-calculator-page .entry-content,
body.xrtech-cost-calculator-page .wpb-content-wrapper,
body.xrtech-cost-calculator-page .wpb-content--blank,
body.xrtech-cost-calculator-page .vc_row,
body.xrtech-cost-calculator-page .vc_row-full-width,
body.xrtech-cost-calculator-page .vc_column-inner,
body.xrtech-cost-calculator-page .wpb_wrapper,
body.xrtech-cost-calculator-page .cost-calculator,
body.xrtech-cost-calculator-page .cost-calculator[class*="vc_custom_"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.xrtech-cost-calculator-page .cost-calculator > .wpb_column > .vc_column-inner > .wpb_wrapper > .vc_custom_heading,
body.xrtech-cost-calculator-page .cost-calculator .vc_custom_heading {
  display: none !important;
}

.xrtech-cc-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 52px 0 30px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.xrtech-cc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 24px;
  align-items: start;
}

.xrtech-cc-calculator-card,
.xrtech-cc-output-card {
  border: 1px solid var(--xrtech-cc-line);
  border-radius: var(--xrtech-cc-radius-xl);
  background: var(--xrtech-cc-panel);
  box-shadow: var(--xrtech-cc-shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.xrtech-cc-card-header {
  padding: 26px 28px;
  border-bottom: 1px solid var(--xrtech-cc-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.xrtech-cc-card-header h2 {
  margin: 0!important;
  font-size: 23px;
  letter-spacing: -0.03em;
  color: #ffffff !important;
}

.xrtech-cc-card-header p {
  margin: 8px 0 0;
  color: var(--xrtech-cc-muted);
  font-size: 15px;
}

.xrtech-cc-status-badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(88, 242, 182, 0.1);
  border: 1px solid rgba(88, 242, 182, 0.22);
  color: #c7ffe8;
  font-size: 13px;
  font-weight: 800;
}

.xrtech-cc-form-body {
  padding: 26px 28px 28px;
}

.xrtech-cc-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: 22px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.035);
}

.xrtech-cc-fieldset legend {
  padding: 0 10px;
  color: #dff7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.xrtech-cc-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.xrtech-cc-field-grid .nf-field-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.xrtech-cc-field-grid .nf-field-container .nf-field-label label {
  font-weight: 750;
  font-size: 14px;
  color: #ecf6ff !important;
}

.xrtech-cc-input-wrap {
  position: relative;
}

.xrtech-cc-field-grid .nf-field-element input.ninja-forms-field,
.xrtech-cc-field-grid .nf-field-element select.ninja-forms-field,
.xrtech-cc-field-grid .nf-field-element textarea.ninja-forms-field {
  width: 100%;
  height: 48px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: var(--xrtech-cc-field) !important;
  color: var(--xrtech-cc-field-text) !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  font-weight: 650;
  outline: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16) !important;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}

.xrtech-cc-field-grid .nf-field-element input.ninja-forms-field::-webkit-outer-spin-button,
.xrtech-cc-field-grid .nf-field-element input.ninja-forms-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.xrtech-cc-input-wrap.xrtech-cc-has-unit .nf-field-element input.ninja-forms-field {
  padding-right: 42px !important;
}

.xrtech-cc-field-grid .nf-field-element input.ninja-forms-field:focus,
.xrtech-cc-field-grid .nf-field-element select.ninja-forms-field:focus,
.xrtech-cc-field-grid .nf-field-element textarea.ninja-forms-field:focus {
  border-color: var(--xrtech-cc-accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2), 0 8px 20px rgba(0, 0, 0, 0.16) !important;
}

.xrtech-cc-field-grid .nf-field-element input.ninja-forms-field:focus-visible,
.xrtech-cc-field-grid .nf-field-element select.ninja-forms-field:focus-visible,
.xrtech-cc-field-grid .nf-field-element textarea.ninja-forms-field:focus-visible {
  outline: none;
}

.xrtech-cc-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #56667a;
  font-weight: 800;
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}

.xrtech-cc-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

.xrtech-cc-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.xrtech-cc-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.xrtech-cc-btn:hover {
  transform: translateY(-1px);
}

.xrtech-cc-btn-primary {
  color: #031018;
  background: linear-gradient(135deg, var(--xrtech-cc-accent), var(--xrtech-cc-accent-2));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
}

.xrtech-cc-btn-secondary {
  color: var(--xrtech-cc-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--xrtech-cc-line);
}

.xrtech-cc-hint {
  color: var(--xrtech-cc-muted);
  font-size: 15px;
}

.xrtech-cc-output-card {
  position: sticky;
  top: 24px;
  background: var(--xrtech-cc-panel-2);
}

.xrtech-cc-output-content {
  padding: 24px;
}

.xrtech-cc-saving-hero {
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(88, 242, 182, 0.24), transparent 40%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(155, 123, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.xrtech-cc-saving-label {
  color: #cfe7f5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.xrtech-cc-saving-value {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
  margin-top: 10px;
  color: var(--xrtech-cc-text);
}

.xrtech-cc-saving-sub {
  color: var(--xrtech-cc-muted);
  font-size: 15px;
  margin-top: 8px;
}

.xrtech-cc-compare {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.xrtech-cc-compare-row {
  display: grid;
  gap: 8px;
}

.xrtech-cc-compare-top {
  display: flex;
  justify-content: space-between;
  color: var(--xrtech-cc-soft);
  font-size: 13px;
  font-weight: 800;
}

.xrtech-cc-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.xrtech-cc-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0%;
  transition: width 0.25s ease;
  background: linear-gradient(90deg, var(--xrtech-cc-accent), var(--xrtech-cc-accent-2));
}

.xrtech-cc-bar-traditional span {
  background: linear-gradient(90deg, #f97316, #f9c74f);
}

.xrtech-cc-output-grid {
  display: grid;
  gap: 12px;
}

.xrtech-cc-output-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.xrtech-cc-output-line span:first-child {
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 800;
}

.xrtech-cc-output-line span:last-child {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

/* Hide native Ninja Forms output rows inside the calculator card */
.xrtech-cc-calculator-card .xrtech-cc-hidden-output,
.xrtech-cc-calculator-card .html-container.xrtech-cc-hidden-output,
.xrtech-cc-hidden-output .nf-field-label,
.xrtech-cc-hidden-output label[id^="nf-label-"],
.xrtech-cost-calculator-page .xrtech-cc-nf-wrap .nf-form-title,
.xrtech-cc-nf-wrap .nf-form-fields-required {
  display: none !important;
}

.xrtech-cc-nf-form .nf-form-content .nf-row:not(.xrtech-cc-preserve-row) {
  display: none !important;
}

.xrtech-cc-nf-form .nf-form-content .nf-row.xrtech-cc-preserve-row {
  display: block !important;
}

.xrtech-cc-nf-form .nf-form-content {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.xrtech-cc-nf-form .nf-form-layout > form > div {
  padding: 0 !important;
}

.xrtech-cc-nf-wrap .nf-loading-spinner {
  border-color: rgba(34, 211, 238, 0.2);
  border-top-color: var(--xrtech-cc-accent);
}

@media (max-width: 1100px) {
  .xrtech-cc-layout {
    grid-template-columns: 1fr;
  }

  .xrtech-cc-output-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .xrtech-cc-shell {
    width: min(1360px, calc(100% - 24px));
    padding: 24px 0 48px;
  }

  .xrtech-cc-card-header,
  .xrtech-cc-form-body,
  .xrtech-cc-output-content {
    padding: 20px;
  }

  .xrtech-cc-field-grid {
    grid-template-columns: 1fr;
  }

  .xrtech-cc-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .xrtech-cc-btn-row,
  .xrtech-cc-btn-row .xrtech-cc-btn {
    width: 100%;
  }

  .xrtech-cc-btn-row .xrtech-cc-btn {
    justify-content: center;
  }

}


@media (min-width: 1200px) {
  .wpb-content--blank .wpb-content-wrapper {
      max-width: 1420px;
  }
}

/* ROI calculator layout — structure only, inherits base theme typography/colors */
.xrtech-cc-roi-layout .xrtech-cc-form-actions {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--xrtech-cc-line);
}

.xrtech-cc-roi-layout .xrtech-cc-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 380px);
}

.xrtech-cc-roi-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--xrtech-cc-line);
}

.xrtech-cc-roi-comparison-without {
  padding-right: 24px;
  border-right: 1px solid var(--xrtech-cc-line);
}

.xrtech-cc-roi-comparison-with {
  padding-left: 24px;
}

.xrtech-cc-roi-table-row,
.xrtech-cc-roi-table-footer {
  border-top: 1px solid var(--xrtech-cc-line);
  padding-top: 12px;
  margin-top: 12px;
}

.xrtech-cc-roi-table-footer .nf-field-element,
.xrtech-cc-roi-table-footer .nf-field-element p {
  width: 100%;
}

.xrtech-cc-roi-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 16px;
}

.xrtech-cc-roi-total-label,
.xrtech-cc-roi-total-value {
  font-weight: 700;
}

.xrtech-cc-roi-total-value {
  text-align: right;
  flex-shrink: 0;
}

.xrtech-cc-roi-table-row {
  display: grid;
  grid-template-columns: minmax(max-content, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
}

.xrtech-cc-roi-comparison-col .nf-field-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.xrtech-cc-roi-comparison-col .nf-field-label,
.xrtech-cc-roi-comparison-col label[id^="nf-label-"] {
  display: none !important;
}

.xrtech-cc-roi-comparison-col .nf-field-element,
.xrtech-cc-roi-comparison-col .nf-field-element p,
.xrtech-cc-roi-comparison-col .html-container,
.xrtech-cc-roi-comparison-col .nf-html-content {
  margin: 0 !important;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .xrtech-cc-roi-comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .xrtech-cc-roi-comparison-without {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--xrtech-cc-line);
  }

  .xrtech-cc-roi-comparison-with {
    padding-left: 0;
  }

  .xrtech-cc-roi-table-row {
    grid-template-columns: 1fr;
  }
}