:root {
  --gap: 14px;
  --radius: 8px;
  --accent: #69BE94;
  --accent-2: #2E7BCF;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #0a0a0a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --heading: 48px;
  --body: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
  font-size: var(--body);
  margin-top: 0px !important;
}

@media screen and (max-width: 782px) {
  html {
    margin-top: 0px !important;
  }
}

html {
  margin-top: 0px !important;
}

#content {
  padding: 0 !important;
  overflow-x: hidden !important;
}

.wp-site-blocks>* {
  max-width: 100% !important;
}

.container3 {
  width: 100%;
  max-width: 1636px !important;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container3 {
    padding-inline: 2px;
  }
}

@media (min-width:640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width:768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width:1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width:1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width:1536px) {
  .container3 {
    max-width: 1636px !important;
  }
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.brand {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand .logo img {
  height: 36px;
  display: block;
}

.w-60 {
  width: 15rem;
}

.bold {
  font-weight: 600;
  font-size: 16px;
  margin: 6px 0;
  max-width: 600px;
}

@media (max-width:768px) {
  .bold {
    font-weight: 500;
    font-size: 14px;
  }
}

h1 {
  line-height: 1.1;
  margin: 6px 0 8px;
  font-weight: 500;
  font-size: 2rem;
}

h2 {
  font-family: Lexend;
  font-weight: 500;
  font-size: 24px;
  line-height: 120%;
  color: #000;
}

@media (max-width:768px) {
  h2 {
    font-size: 18px;
  }
}

p.sub {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.36;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 30px;
}

@media (max-width:768px) {
  .card {
    padding: 16px 20px;
  }
}

label {
  display: block;
  font-family: Lexend;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #1E1E1E;
}

input[type="number"],
select,
input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border);
  background: #fff !important;
  color: #0a0a0a;
  box-sizing: border-box;
}

textarea {
  min-height: 92px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.wrap {
  padding-top: 7.5rem !important;
  padding-bottom: 3rem !important;
}

.wrap.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 1rem;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .3s ease-in-out;
}

.btn:hover {
  opacity: .8;
}

.btn.alt {
  border: 1px solid #F5F5F5;
  background: #fff;
  color: #1E1E1E;
}

.btn.alt:hover {
  opacity: .7;
}

table {
  width: 100%;
}

#breakdown,
#breakdown th,
#breakdown td {
  border: none !important;
  border-bottom: none !important;
  padding: 10px 4px;
  border-collapse: collapse !important;
}

#breakdown tr:last-child th,
#breakdown tr:last-child td {
  font-weight: 700 !important;
}

@media (max-width:768px) {

  #breakdown,
  #breakdown th,
  #breakdown td {
    padding: 8px 2px !important;
  }
}

th,
td {
  text-align: left;
  font-family: Lexend;
  font-weight: 300;
  font-size: 16px;
  color: #1C2330;
}

th {
  font-weight: 700;
  font-family: 'SF Pro Text', system-ui;
}

.right {
  text-align: right;
  font-family: Lexend;
  font-weight: 400;
  font-size: 16px;
  color: #1C2330;
}

.note {
  font-size: 14px;
  color: #1C2330;
  padding-top: 10px;
  border-top: 1px solid #D9D9D9;
}

@media (max-width:768px) {
  .note {
    margin-top: 10px;
    padding-top: 6px;
    font-size: 13px;
  }
}

.summary {
  position: sticky;
  top: 7rem;
  z-index: 5;
  margin-bottom: var(--gap);
}

.sum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width:768px) {
  .sum-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sum-item {
    padding: 8px;
  }

  .sum-item .label {
    font-size: 12px;
  }

  .sum-item .value {
    margin-top: 4px;
    font-weight: 600;
    font-size: 16px;
  }
}

.sum-item {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
}

.sum-item .label {
  color: #9AA3B2;
  font-size: 16px;
}

.sum-item .value {
  margin-top: 6px;
  font-family: Lexend;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 6px;
  cursor: help;
  position: relative;
  background: #fff;
  line-height: 1;
}

.info .bubble {
  display: none;
  position: absolute;
  left: 22px;
  top: -4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 280px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  z-index: 20;
}

.info:hover .bubble,
.info:focus .bubble {
  display: block;
}

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

  .sum-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.5rem;
  }

  .flex-row {
    flex-direction: column;
    align-items: self-start;
  }
}

@media (max-width:768px) {
  .wrap {
    padding-top: 1.5rem !important;
  }

  .estimator-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
  }

  .estimator-subtitle {
    font-size: 16px;
    line-height: 1.3;
  }
}

.layout-wrapper {
  display: flex;
  gap: 15px;
  border-radius: 16px;
}

@media (max-width:767px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .left-col,
  .right-col {
    width: 100%;
  }

  .layout-wrapper,
  .card {
    width: 100%;
    box-sizing: border-box;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width:767px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.estimator-container {
  margin: 0 42px;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 16px;
}

@media (max-width:1023px) {
  .estimator-container {
    margin: 0 18px;
    padding: 16px;
  }
}

@media (max-width:767px) {
  .estimator-container {
    margin: 0 12px;
    padding: 16px;
  }
}

.btnn {
  display: inline-block;
  padding: 10px 80px;
  border-radius: 8px;
  width: 350px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 20px;
  background-color: var(--accent);
  border: 0;
  transition: opacity .3s ease-in-out;
}

.btnn:hover {
  opacity: .8;
}

@media (max-width:1023px) {
  .btnn {
    padding: 10px 10px;
    margin-top: 16px;
    width: 200px;
  }
}

@media (max-width:767px) {
  .btnn {
    width: 100%;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row+.form-row,
.form-group+.form-row,
.form-row+.form-group {
  margin-top: 16px;
}

.estimator-card {
  padding: 24px !important;
}

@media (max-width:768px) {
  .estimator-card {
    padding: 16px !important;
  }
}

.results-card {
  padding: 24px;
}

@media (max-width:768px) {
  .results-card {
    padding: 16px;
  }
}

/* --- styles that were in relocated <style> blocks --- */
.estimator-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-left: 2.8rem;
  margin-bottom: 1.5rem;
}

.header-content {
  flex: 1;
  min-width: 0;
}

.estimator-title {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.33;
  color: #000;
  margin: 0 0 16px;
  max-width: 560px;
  word-wrap: break-word;
}

.estimator-subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.36;
  color: #5E6366;
  margin: 0;
  max-width: 600px;
  word-wrap: break-word;
}

.header-image img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transform: rotate(180deg) scaleY(-1);
}

@media (max-width:768px) {
  .estimator-header {
    padding-left: 1rem;
    display: block;
    position: relative;
    padding-right: 0;
    margin-right: 0;
  }

  .header-content {
    width: 80%;
  }

  .estimator-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
  }

  .header-image img {
    height: 70px;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    pointer-events: none;
    object-fit: contain;
    transform: rotate(180deg) scaleY(-1) !important;
  }
}

@media (max-width:768px) {
  .estimator-controls {
    display: flex;
    justify-content: flex-end;
    margin: 1rem 0 1.5rem;
    margin-right: 20px !important;
  }
}

form label+*:not([type="submit"]) {
  margin-block-start: .45em !important;
}

.estimator-controls {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0 1.5rem;
  margin-right: 50px;
}

.currency-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.currency-title {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #9AA3B2;
  text-align: right;
  margin-top: 8px;
}

.currency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0px !important;
}

.vat-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #9AA3B2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.vat-label input[type="checkbox"] {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: #F5F5F5;
  border: 1px solid #D9D9D9;
}

/* select wrappers */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.currency-select,
.custom-select-wrapper select {
  width: 100%;
  height: 100%;
  padding: 7px 24px 7px 11px !important;
  border-radius: 17.5px;
  font-size: 16px;
  color: #1C2330;
  border: 1px solid #D9D9D9;
  background: transparent;
  appearance: none;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.left-col select {
  padding: 10px 28px 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
}

.select-arroww {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

input::placeholder,
textarea::placeholder,
.left-col select option:disabled {
  color: #B3B3B3 !important;
  opacity: 1;
}

/* --- classes replacing inline styles --- */
.flex-1 {
  flex: 1;
}

.mb-gap {
  margin-bottom: var(--gap);
}

.summary-note-border {
  margin-top: 20px;
  padding-top: 6px;
  border-top: 1px solid #D9D9D9;
  width: 100%;
}

.summary-note-text {
  color: #1C2330;
  font-size: 14px;
  display: block;
}

.contact-pt {
  padding-top: 24px;
}

.message-success {
  padding: 12px;
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.recaptcha-wrapper {
  transform: scale(1);
  transform-origin: 0 0;
  width: 100%;
  margin-top: 6px;
}

.recaptcha-wrapper .g-recaptcha > div {
  width: 100% !important;
}

@media (max-width: 400px) {
  .recaptcha-wrapper {
    transform: scale(0.82);
    width: 130%;
  }

  .recaptcha-wrapper .muted {
    font-size: 0.6em;
    max-width: 200px;
    margin-top: 6px;
  }
}

.recaptcha-wrapper .muted {
    font-size: 0.7em;
    line-height: 1.2;
    max-width: 300px;
    margin-top: 0px;
}


/* fix textarea overflow on small devices */
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Extra safeguard for very narrow screens */
@media (max-width: 480px) {

  .contact-pt .card,
  .form-row>div {
    width: 100%;
    min-width: 0;
  }

  textarea,
  input[type="text"],
  input[type="email"],
  input[type="number"],
  select {
    min-width: 0;
    width: 100%;
  }
}