/* TCC drone survey calculator and page sections. Everything is scoped under .tdc / .tdp so it
   cannot affect the rest of the site. Colours are the site's own: primary #0062bc, navy #042c51. */
.tdc, .tdp {
  --tdc-blue: #0062bc; --tdc-navy: #042c51; --tdc-grey: #eeeeee; --tdc-line: #d7dde4;
  --tdc-ink: #111111; --tdc-muted: #5b6672; --tdc-amber: #b35c00; --tdc-ok: #1a7f4b; --tdc-bad: #c0392b;
  --tdc-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --tdc-body: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-family: var(--tdc-body); color: var(--tdc-ink); text-align: left; line-height: 1.55;
}
.tdc *, .tdp * { box-sizing: border-box; }
.tdc { width: 100%; font-size: 15px; }

/* ---------- calculator ---------- */
.tdc .tdc-demo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; padding: 8px 10px;
  border: 1px dashed #b9c3cf; border-radius: 6px; background: #f7f9fb; font-size: 13px; color: var(--tdc-muted); }
.tdc .tdc-demo span { margin-right: 6px; }
.tdc .tdc-demo button { border: 1px solid var(--tdc-line); background: #fff; color: var(--tdc-navy); border-radius: 4px; padding: 4px 10px; font: inherit; cursor: pointer; }
.tdc .tdc-demo button.on { background: var(--tdc-navy); border-color: var(--tdc-navy); color: #fff; }

.tdc .tdc-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 0; border: 1px solid var(--tdc-line);
  border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(4, 44, 81, .08); }
.tdc .tdc-panel { padding: 6px 22px 18px; border-right: 1px solid var(--tdc-line); background: #fff; }
.tdc .tdc-mapwrap { position: relative; min-height: 560px; background: #dfe5ea; }
.tdc .tdc-map { position: absolute; inset: 0; }
.tdc .tdc-maptip { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%); background: var(--tdc-navy);
  color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.tdc.tdc-drawing .tdc-map { cursor: crosshair; }

.tdc .tdc-step { padding: 16px 0; border-bottom: 1px solid var(--tdc-grey); transition: opacity .2s; }
.tdc .tdc-step:last-child { border-bottom: 0; }
.tdc .tdc-step[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tdc .tdc-step-h { display: flex; align-items: center; gap: 10px; font-family: var(--tdc-head); font-weight: 600; font-size: 21px;
  letter-spacing: .02em; text-transform: uppercase; color: var(--tdc-navy); margin-bottom: 10px; line-height: 1.1; }
.tdc .tdc-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tdc-blue); color: #fff; font-size: 16px; flex: none; }

.tdc .tdc-search { display: flex; gap: 8px; }
.tdc input[type=text], .tdc input[type=email], .tdc input[type=tel], .tdc input[type=number], .tdc textarea {
  font: inherit; font-size: 15px; color: var(--tdc-ink); background: #fff; border: 1px solid #c5ced8; border-radius: 5px;
  padding: 10px 12px; width: 100%; min-width: 0; margin: 0; box-shadow: none; height: auto; line-height: 1.3; }
.tdc input:focus, .tdc textarea:focus { outline: 2px solid rgba(0, 98, 188, .35); outline-offset: 0; border-color: var(--tdc-blue); }
.tdc input.tdc-bad, .tdc .tdc-bad input { border-color: var(--tdc-bad); background: #fff6f5; }
.tdc .tdc-chk.tdc-bad span { color: var(--tdc-bad); }

.tdc .tdc-btn { font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .02em; border: 2px solid var(--tdc-blue); background: var(--tdc-blue);
  color: #fff; border-radius: 5px; padding: 9px 16px; cursor: pointer; white-space: nowrap; line-height: 1.2; text-transform: none; }
.tdc .tdc-btn:hover { background: var(--tdc-navy); border-color: var(--tdc-navy); }
.tdc .tdc-btn-ghost { background: #fff; color: var(--tdc-blue); }
.tdc .tdc-btn-ghost:hover { background: #f0f6fc; color: var(--tdc-navy); border-color: var(--tdc-navy); }
.tdc .tdc-btn-lg { width: 100%; padding: 13px 18px; font-size: 16px; margin-top: 6px; }
.tdc .tdc-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tdc .tdc-hint { font-size: 13px; color: var(--tdc-muted); margin: 8px 0 0; }
.tdc .tdc-warn { color: var(--tdc-amber); font-size: 14px; margin: 8px 0 0; }
.tdc .tdc-ok { color: var(--tdc-ok); }
.tdc .tdc-sel { margin: 0 0 4px; font-size: 15px; }
.tdc .tdc-sel strong { color: var(--tdc-navy); }
.tdc .tdc-addr { font-size: 13px; color: var(--tdc-muted); }
.tdc .tdc-results { margin-top: 10px; display: grid; gap: 6px; }
.tdc .tdc-results[hidden] { display: none; }
.tdc .tdc-pick { text-align: left; font: inherit; font-size: 13px; background: #f4f7fa; border: 1px solid var(--tdc-line); border-radius: 5px; padding: 8px 10px; cursor: pointer; color: var(--tdc-ink); }
.tdc .tdc-pick:hover { border-color: var(--tdc-blue); background: #eef5fc; }
.tdc .tdc-drawbar { margin-top: 10px; padding: 10px; background: #eef5fc; border-radius: 5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.tdc .tdc-drawbar[hidden] { display: none; }
.tdc .tdc-drawbar span { flex: 1 1 100%; }

.tdc .tdc-height { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tdc .tdc-stepper { display: inline-flex; border: 1px solid #c5ced8; border-radius: 5px; overflow: hidden; }
.tdc .tdc-stepper button { font: inherit; font-size: 18px; width: 38px; border: 0; background: #f4f7fa; color: var(--tdc-navy); cursor: pointer; padding: 0; }
.tdc .tdc-stepper button:hover { background: #e3edf7; }
.tdc .tdc-stepper input { width: 56px; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.tdc .tdc-metres { width: 86px !important; }
.tdc .tdc-unit { font-size: 14px; color: var(--tdc-muted); }
.tdc .tdc-or { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8b96a2; margin: 0 4px; }
.tdc input[type=number]::-webkit-inner-spin-button { opacity: .4; }

.tdc .tdc-chk { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 14px; cursor: pointer; font-weight: 400; }
.tdc .tdc-chk input { width: 17px; height: 17px; margin: 0; accent-color: var(--tdc-blue); flex: none; }
.tdc .tdc-chk i { width: 14px; height: 4px; border-radius: 2px; flex: none; }
.tdc .tdc-chk em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--tdc-muted); white-space: nowrap; }
.tdc .tdc-consent em { display: none; }

/* results */
.tdc .tdc-out, .tdc .tdc-lead { margin-top: 22px; }
.tdc .tdc-out[hidden], .tdc .tdc-lead[hidden] { display: none; }
.tdc .tdc-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--tdc-line); background: #fff; }
.tdc .tdc-figs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tdc-navy); color: #fff; }
.tdc .tdc-fig { padding: 20px 22px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.tdc .tdc-fig span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9fc3e6; margin-bottom: 4px; }
.tdc .tdc-fig strong { font-family: var(--tdc-head); font-size: 30px; font-weight: 600; line-height: 1.05; display: block; }
.tdc .tdc-est { padding: 22px 24px; }
.tdc .tdc-est-h { font-family: var(--tdc-head); text-transform: uppercase; font-weight: 600; font-size: 20px; color: var(--tdc-blue); letter-spacing: .03em; margin-bottom: 4px; }
.tdc .tdc-price { font-family: var(--tdc-head); font-weight: 600; font-size: 54px; line-height: 1; color: var(--tdc-navy); margin: 4px 0 10px; }
.tdc .tdc-price small { font-size: 20px; color: var(--tdc-muted); font-weight: 500; }
.tdc .tdc-price-time { font-size: 46px; }
.tdc .tdc-break { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 12px; }
.tdc .tdc-break td { padding: 5px 0; border-bottom: 1px solid var(--tdc-grey); }
.tdc .tdc-break td:last-child { text-align: right; font-weight: 600; }
.tdc .tdc-small { font-size: 12.5px; color: var(--tdc-muted); margin: 0 0 10px; }
.tdc .tdc-note { font-size: 13px; background: #eef5fc; border-left: 3px solid var(--tdc-blue); padding: 8px 10px; margin: 0 0 10px; }
.tdc .tdc-note-amber { background: #fff5e8; border-color: var(--tdc-amber); }

.tdc .tdc-form { display: block; padding: 22px 24px; max-width: 760px; }
.tdc .tdc-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 10px 0 12px; }
.tdc .tdc-f { display: block; margin: 0; font-weight: 400; }
.tdc .tdc-f span { display: block; font-size: 13px; font-weight: 600; color: var(--tdc-navy); margin-bottom: 4px; }
.tdc .tdc-f-wide { margin-bottom: 12px; }
.tdc .tdc-sent { margin-top: 14px; }
.tdc .tdc-sent[hidden] { display: none; }
.tdc .tdc-sent pre { font-size: 11.5px; background: #0f1b27; color: #d5e4f2; padding: 12px; border-radius: 6px; max-height: 320px; overflow: auto; white-space: pre; }
.tdc .tdc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tdc .leaflet-container { font-family: var(--tdc-body); font-size: 12px; }
.tdc .leaflet-control-layers label { font-weight: 400; margin: 0; }
.tdc .leaflet-tooltip { font-weight: 600; }

@media (max-width: 991px) {
  .tdc .tdc-grid { grid-template-columns: 1fr; }
  .tdc .tdc-panel { display: contents; }
  .tdc .tdc-step { padding-left: 18px; padding-right: 18px; background: #fff; order: 3; }
  .tdc .tdc-step[data-step="1"] { order: 1; }
  .tdc .tdc-mapwrap { order: 2; min-height: 380px; }
  .tdc .leaflet-control-attribution { font-size: 9px; }
  .tdc .tdc-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tdc .tdc-figs { grid-template-columns: repeat(2, 1fr); }
  .tdc .tdc-fig { padding: 14px 16px; }
  .tdc .tdc-fig strong { font-size: 24px; }
  .tdc .tdc-fgrid { grid-template-columns: 1fr; }
  .tdc .tdc-panel { padding: 4px 16px 14px; }
  .tdc .tdc-est { padding: 18px 16px; }
  .tdc .tdc-price { font-size: 44px; }
  .tdc .tdc-maptip { white-space: normal; text-align: center; width: 80%; }
}

/* ---------- page sections (.tdp) ---------- */
.tdp { font-size: 15px; width: 100%; }
.tdp p { margin: 0 0 12px; }
.tdp .tdp-lead { font-size: 17px; color: #2b3640; max-width: 760px; margin: 0 auto 30px; text-align: center; }
.tdp .tdp-kicker { font-family: var(--tdc-head); text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--tdc-blue); font-weight: 600; margin: 0 0 6px; }
.tdp h4.tdp-h { font-family: var(--tdc-head); text-transform: uppercase; font-weight: 600; font-size: 22px; color: var(--tdc-navy); margin: 0 0 8px; letter-spacing: .02em; line-height: 1.15; }

.tdp .tdp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.tdp .tdp-step { position: relative; padding: 0 22px 0 0; }
.tdp .tdp-step:before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--tdc-head); font-weight: 600; font-size: 48px;
  line-height: 1; color: var(--tdc-blue); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 3px solid var(--tdc-blue); }
.tdp .tdp-step p { font-size: 14.5px; color: #33404c; }

.tdp .tdp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; margin: 26px 0 8px; }
.tdp .tdp-stat { background: #0a3a66; padding: 24px 22px; color: #fff; }
.tdp .tdp-stat strong { display: block; font-family: var(--tdc-head); font-size: 40px; line-height: 1; font-weight: 600; margin-bottom: 6px; }
.tdp .tdp-stat span { font-size: 13px; color: #b9d3ec; }
.tdp .tdp-case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tdp .tdp-case p { color: inherit; }
.tdp .tdp-quote { border-left: 3px solid #fff; padding: 2px 0 2px 18px; font-size: 18px; line-height: 1.5; margin: 6px 0 0; }

.tdp .tdp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tdp .tdp-box { background: #fff; border: 1px solid var(--tdc-line); border-radius: 8px; padding: 26px 26px 18px; }
.tdp .tdp-box-can { border-top: 4px solid var(--tdc-ok); }
.tdp .tdp-box-cant { border-top: 4px solid var(--tdc-amber); }
.tdp ul.tdp-list { list-style: none; margin: 0 0 12px; padding: 0; }
.tdp ul.tdp-list li { position: relative; padding: 7px 0 7px 28px; margin: 0; border-bottom: 1px solid #eef1f4; font-size: 14.5px; list-style: none; background: none; }
.tdp ul.tdp-list li:last-child { border-bottom: 0; }
.tdp ul.tdp-list li:before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border: 0; border-radius: 0; background: none;
  border-left: 2.5px solid var(--tdc-ok); border-bottom: 2.5px solid var(--tdc-ok); transform: rotate(-45deg); margin: 0; }
.tdp ul.tdp-list li:after { content: none; display: none; }
.tdp .tdp-box-cant ul.tdp-list li:before { width: 12px; height: 2.5px; border: 0; background: var(--tdc-amber); transform: none; top: 17px; }

.tdp .tdp-table-wrap { overflow-x: auto; }
.tdp table.tdp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: #fff; border: 1px solid var(--tdc-line); border-radius: 8px; overflow: hidden; }
.tdp .tdp-table th, .tdp .tdp-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6eaee; }
.tdp .tdp-table thead th { background: var(--tdc-navy); color: #fff; font-family: var(--tdc-head); text-transform: uppercase; font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.tdp .tdp-table thead th:nth-child(2) { background: var(--tdc-blue); }
.tdp .tdp-table tbody th { font-weight: 700; color: var(--tdc-navy); width: 22%; background: #f7f9fb; }
.tdp .tdp-table tbody tr:last-child th, .tdp .tdp-table tbody tr:last-child td { border-bottom: 0; }
.tdp .tdp-table td:nth-child(2) { background: #f4f9fe; }

.tdp .tdp-faq { max-width: 860px; margin: 0 auto; }
.tdp details { border-bottom: 1px solid var(--tdc-line); }
.tdp details:first-child { border-top: 1px solid var(--tdc-line); }
.tdp summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 16px; color: var(--tdc-navy); }
.tdp summary::-webkit-details-marker { display: none; }
.tdp summary:after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--tdc-blue); transition: transform .2s; }
.tdp details[open] summary:after { content: "\2212"; }
.tdp details > div { padding: 0 0 16px; color: #33404c; }
.tdp a { color: var(--tdc-blue); font-weight: 600; }
.bg--secondary .tdp { color: #fff; }
.bg--secondary .tdp a { color: #fff; }
.bg--secondary .tdp p { color: #dce8f4; }
.bg--secondary .tdp .tdp-kicker { color: #6fb0ef; }
.bg--secondary .tdp h4.tdp-h { color: #fff; font-size: 34px; margin-bottom: 16px; }
.bg--secondary .tdp .tdp-quote { color: #fff; }

@media (max-width: 991px) {
  .tdp .tdp-steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .tdp .tdp-stats { grid-template-columns: 1fr 1fr; }
  .tdp .tdp-case, .tdp .tdp-two { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .tdp .tdp-steps { grid-template-columns: 1fr; }
  .tdp .tdp-step { padding-right: 0; }
  .tdp .tdp-stat strong { font-size: 32px; }
  .tdp .tdp-box { padding: 20px 18px 12px; }
}
