/* Public quote, support and consultation applications */
.app-page { position: relative; }
.app-hero { padding-bottom: 45px; }
.app-hero h1 { max-width: 900px; }
.app-hero .serif { color: var(--m-cyan); }
.app-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.app-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--m-line); border-radius: 999px; color: #aebfd6; font-size: 0.58rem; }
.app-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--m-cyan); }
.app-section { padding-top: 25px; }
.app-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr); gap: 14px; align-items: start; }
.app-card { padding: 25px; border: 1px solid var(--m-line); border-radius: 18px; background: linear-gradient(145deg, rgba(10, 27, 52, .94), rgba(5, 16, 31, .96)); }
.app-card h2 { margin: 4px 0 8px; color: var(--m-text); font-size: 1.55rem; font-weight: 560; letter-spacing: -.035em; }
.app-card h3 { margin: 0 0 7px; color: var(--m-text); font-size: 1.05rem; font-weight: 580; letter-spacing: -.02em; }
.app-card p { color: var(--m-muted); font-size: .78rem; line-height: 1.65; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.app-kicker { margin: 0 0 6px; color: var(--m-cyan) !important; font-size: .55rem !important; font-weight: 680; letter-spacing: .13em; text-transform: uppercase; }
.app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 13px; }
.app-field { display: flex; flex-direction: column; gap: 5px; }
.app-field-wide { grid-column: 1 / -1; }
.app-field label { color: #b3c4db; font-size: .65rem; font-weight: 540; }
.app-field input, .app-field select, .app-field textarea { width: 100%; padding: 9px 10px; border: 1px solid rgba(138, 173, 235, .22); border-radius: 8px; background: rgba(255, 255, 255, .045); color: var(--m-text); font: inherit; font-size: .72rem; line-height: 1.5; }
.app-field textarea { resize: vertical; min-height: 75px; }
.app-field input:focus, .app-field select:focus, .app-field textarea:focus { outline: 0; border-color: var(--m-cyan); box-shadow: 0 0 0 3px rgba(108, 226, 255, .1); }
.app-field input::placeholder, .app-field textarea::placeholder { color: #7389a7; }
.app-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-check { display: flex; align-items: flex-start; gap: 7px; padding: 8px; border: 1px solid var(--m-line); border-radius: 7px; color: #b3c4db; font-size: .63rem; line-height: 1.4; cursor: pointer; }
.app-check input { margin-top: 2px; accent-color: var(--m-cyan); }
.app-check span small { display: block; margin-top: 2px; color: #7f96b4; font-size: .53rem; }
.app-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.app-note { margin-top: 10px !important; color: #7f96b4 !important; font-size: .58rem !important; }
.app-error { margin: 8px 0 0; color: #ff9d9d; font-size: .63rem; line-height: 1.45; }
.app-error:empty { display: none; }
.app-summary { position: sticky; top: 105px; padding: 24px; border: 1px solid rgba(108, 226, 255, .23); border-radius: 18px; background: radial-gradient(circle at 90% 0%, rgba(54, 138, 255, .2), transparent 57%), rgba(7, 20, 39, .96); box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.app-summary h2 { margin: 4px 0 7px; color: var(--m-text); font-size: 1.45rem; font-weight: 560; letter-spacing: -.035em; }
.app-summary p { color: var(--m-muted); font-size: .72rem; line-height: 1.6; }
.summary-ref { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--m-line); color: #899fbd; font-size: .58rem; }
.summary-ref strong { color: var(--m-cyan); font-weight: 650; }
.summary-lines { display: flex; flex-direction: column; gap: 7px; margin: 16px 0; }
.summary-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: #b6c8df; font-size: .68rem; line-height: 1.45; }
.summary-line span { max-width: 70%; }
.summary-line strong { color: var(--m-text); font-weight: 560; white-space: nowrap; }
.summary-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--m-line); }
.summary-total span { color: #8fa4c3; font-size: .61rem; }
.summary-total strong { color: var(--m-cyan); font-size: 1.5rem; font-weight: 540; letter-spacing: -.045em; text-align: right; line-height: 1.1; }
.summary-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.summary-actions .btn { width: 100%; }
.summary-placeholder { padding: 22px 0 10px; }
.summary-placeholder .summary-line { color: #778eac; }
.app-confirm { display: none; margin-top: 16px; padding: 16px; border: 1px solid rgba(113, 226, 181, .26); border-radius: 11px; background: rgba(45, 169, 114, .08); }
.app-confirm.is-visible { display: block; }
.app-confirm h3 { color: #bdf5dd; }
.app-confirm p { color: #a3c9ba; }
.app-ref { display: inline-flex; margin: 9px 0; padding: 6px 9px; border: 1px solid rgba(113, 226, 181, .25); border-radius: 5px; color: #9beacb; font-size: .72rem; font-weight: 650; letter-spacing: .06em; }
.app-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 30px; }
.app-steps > div { padding: 17px; border: 1px solid var(--m-line); border-radius: 12px; background: rgba(255,255,255,.03); }
.app-steps span { display: inline-flex; margin-bottom: 20px; color: var(--m-cyan); font-size: .56rem; font-weight: 700; }
.app-steps strong { display: block; color: var(--m-text); font-size: .82rem; font-weight: 580; }
.app-steps p { margin-top: 5px; color: var(--m-muted); font-size: .67rem; line-height: 1.55; }
.app-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.app-consult { padding: 25px; border: 1px solid var(--m-line); border-radius: 18px; background: rgba(9, 23, 44, .7); }
.app-consult h2 { margin: 4px 0 8px; color: var(--m-text); font-size: 1.55rem; font-weight: 560; letter-spacing: -.035em; }
.app-consult p { color: var(--m-muted); font-size: .76rem; line-height: 1.65; }
.app-tier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-tier label { padding: 9px; border: 1px solid var(--m-line); border-radius: 7px; color: #b7c8de; font-size: .62rem; cursor: pointer; text-align: center; }
.app-tier label.is-selected, .app-tier label:has(input:checked) { border-color: var(--m-cyan); background: rgba(108, 226, 255, .07); }
.app-tier input { position: absolute; width: 1px; height: 1px; opacity: 0; clip: rect(0 0 0 0); pointer-events: none; }
.app-tier small { display: block; margin-top: 3px; color: #7f96b4; font-size: .5rem; }
.app-success { display: none; margin-top: 14px; padding: 14px; border: 1px solid rgba(113,226,181,.25); border-radius: 9px; color: #a9e8cd; font-size: .7rem; line-height: 1.6; background: rgba(45,169,114,.07); }
.app-success.is-visible { display: block; }
.app-quote-disclaimer { margin-top: 10px !important; color: #7f96b4 !important; font-size: .55rem !important; line-height: 1.5 !important; }
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-summary { position: static; }
  .app-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-card, .app-summary, .app-consult { padding: 18px; border-radius: 14px; }
  .app-form-grid, .app-check-grid, .app-steps, .app-tier { grid-template-columns: 1fr; }
  .app-field-wide { grid-column: auto; }
  .app-card-head { display: block; }
  .app-badges { margin-top: 17px; }
  .app-field input, .app-field select, .app-field textarea { font-size: 16px; }
}

.summary-actions .btn:disabled { opacity: .45; pointer-events: none; }
.app-form-grid > .app-field-wide > .app-check { width: 100%; padding: 9px 11px; }
.app-check > span { flex: 1; }

/* Quote form: compact, selectable service tiles. */
.app-field .app-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--m-cyan);
  cursor: pointer;
}
.app-check {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.app-check:hover { border-color: rgba(108, 226, 255, .35); background: rgba(108, 226, 255, .04); }
.app-check.is-selected { border-color: rgba(108, 226, 255, .5); background: rgba(108, 226, 255, .07); }
.app-check > span { flex: 1 1 auto; min-width: 0; }
.app-check-grid .app-check { min-height: 76px; padding: 10px; }
.app-check-grid .app-check span { font-size: .64rem; line-height: 1.4; }
.app-check-grid .app-check span small { margin-top: 4px; font-size: .54rem; line-height: 1.4; }
.app-check-count { float: right; color: var(--m-cyan); font-size: .54rem; font-weight: 500; }
.app-field > label > .app-check-count { margin-left: 6px; }
@media (max-width: 600px) {
  .app-check-grid .app-check { min-height: 0; }
  .app-form-grid > .app-field-wide > .app-check { padding: 11px; }
}
