.osvc-calculator-embed {
--navy: #11163E;
--navy-accent: #182063;
--cyan: #00A4D2;
--cyan-strong: #0091B3;
--blue: #1863DC;
--blue-dark: #0056A7;
--text: #212121;
--text-secondary: #333333;
--muted: #667085;
--border: #D0D5D2;
--border-light: #EBEBEB;
--input-border: #FFFFFF;
--surface: #FFFFFF;
--surface-soft: #F4F4F4;
--input-bg: #F3F3F3;
--page-bg: #FFFFFF;
--panel-width: 700px;
--control-width: 230px;
--radius-control: 12px;
--radius-button: 50px;
--shadow-card: rgba(0, 0, 0, 0.1) 0px 10px 20px 0px;
}
* {
box-sizing: border-box;
}
.osvc-calculator-embed {
margin: 0;
font-family: 'Satoshi', 'Satoshi 1', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--text);
background: var(--page-bg);
}
.page {
width: min(calc(100% - 40px), var(--panel-width));
margin: 0 auto;
padding: 40px 0 72px;
}
#calculator-form {
display: grid;
gap: 0;
}
#calculator-form > .section {
padding: 26px 0;
border-top: 1px solid var(--border-light);
}
#calculator-form > .section:first-child {
padding-top: 0;
border-top: 0;
}
.section-heading,
.summary-header h2,
.results h2,
.results h3 {
margin: 0 0 24px;
color: var(--navy);
font-size: 24px;
line-height: 32px;
font-weight: 700;
letter-spacing: -0.2px;
}
.summary-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 0;
cursor: pointer;
transition: color 180ms ease;
}
.summary-header h2 {
margin: 0;
transition: color 180ms ease;
}
details[open] > .summary-header {
margin-bottom: 24px;
}
.summary-close {
color: var(--muted);
font-size: 34px;
line-height: 1;
user-select: none;
transition:
color 180ms ease,
transform 180ms ease;
}
.summary-header:hover h2,
.summary-header:focus-visible h2,
.summary-header:hover .summary-close,
.summary-header:focus-visible .summary-close {
color: var(--cyan);
}
details[open] > .summary-header .summary-close {
transform: rotate(45deg);
}
.form-row {
display: grid;
grid-template-columns: minmax(220px, 1fr) var(--control-width);
gap: 32px;
align-items: center;
margin-bottom: 14px;
}
.form-row:last-child {
margin-bottom: 0;
}
.label-wrap {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
font-size: 17px;
line-height: 24px;
font-weight: 500;
color: var(--text);
}
.help {
width: 18px;
height: 18px;
border-radius: 999px;
border: 1px solid var(--border);
color: var(--muted);
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
font-size: 11px;
line-height: 1;
font-weight: 800;
flex-shrink: 0;
cursor: help;
transform: translateY(1px);
}
.tooltip-text {
position: absolute;
left: 50%;
bottom: calc(100% + 12px);
z-index: 10;
width: max-content;
max-width: 320px;
padding: 14px 16px;
border: 1px solid var(--border);
border-radius: 12px;
background: #FFFFFF;
color: var(--text);
font-size: 16px;
line-height: 24px;
font-weight: 400;
text-align: left;
white-space: normal;
box-shadow: var(--shadow-card);
opacity: 0;
pointer-events: none;
transform: translate(-50%, 4px);
transition: opacity 0.16s ease, transform 0.16s ease;
}
.tooltip-text strong {
font-weight: 600;
}
.help::before {
content: '';
position: absolute;
left: 50%;
bottom: calc(100% + 5px);
z-index: 11;
width: 12px;
height: 12px;
border-right: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: #FFFFFF;
opacity: 0;
pointer-events: none;
transform: translate(-50%, 4px) rotate(45deg);
transition: opacity 0.16s ease, transform 0.16s ease;
}
.help:hover .tooltip-text,
.help:focus-visible .tooltip-text,
.help:hover::before,
.help:focus-visible::before {
opacity: 1;
}
.help:hover .tooltip-text,
.help:focus-visible .tooltip-text {
transform: translate(-50%, 0);
}
.help:hover::before,
.help:focus-visible::before {
transform: translate(-50%, 0) rotate(45deg);
}
.help:focus-visible {
outline: 2px solid rgba(24, 99, 220, 0.35);
outline-offset: 2px;
}
.control {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
justify-self: end;
width: var(--control-width);
flex-wrap: wrap;
}
.field-shell {
position: relative;
width: 100%;
}
.field-shell input,
.field-shell select {
width: 100%;
height: 47px;
border: 1px solid var(--input-border);
border-radius: var(--radius-control);
background: var(--input-bg);
color: var(--navy);
font: inherit;
font-size: 17px;
font-weight: 400;
line-height: 24px;
padding: 6px 42px 6px 16px;
appearance: none;
}
.field-shell input:focus,
.field-shell select:focus {
outline: none;
border: 2px solid var(--blue);
background: #FFFFFF;
box-shadow: 0 0 0 3px rgba(24, 99, 220, 0.1);
}
.currency {
position: absolute;
top: 50%;
right: 14px;
transform: translateY(-50%);
color: var(--muted);
font-weight: 400;
pointer-events: none;
}
.field-shell.select::after {
content: '';
position: absolute;
top: 50%;
right: 14px;
width: 7px;
height: 7px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: translateY(-65%) rotate(45deg);
pointer-events: none;
}
.segmented {
display: inline-grid;
grid-template-columns: repeat(2, 1fr);
border: 1px solid var(--border);
border-radius: 50px;
overflow: hidden;
background: #FFFFFF;
}
.segmented input,
.rate-group input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.segmented label {
min-width: 112px;
height: 47px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 20px;
font-size: 15px;
line-height: 15px;
font-weight: 500;
cursor: pointer;
border-left: 1px solid var(--input-border);
background: #FFFFFF;
color: var(--text);
transition: background-color 0.2s ease, color 0.2s ease;
}
.segmented div:first-child label {
border-left: 0;
}
.segmented input:checked + label {
background: var(--cyan);
color: #FFFFFF;
box-shadow: inset 0 0 0 1px var(--cyan);
}
.rate-group {
width: 120px;
}
details > summary {
list-style: none;
cursor: pointer;
}
details > summary:focus {
outline: none;
}
details > summary:focus-visible {
outline: none;
}
details > summary::-webkit-details-marker {
display: none;
}
.subgroup {
margin-top: 24px;
padding-top: 24px;
border-top: 1px solid var(--border-light);
}
.subgroup-title {
margin: 0 0 16px;
color: var(--muted);
font-size: 17px;
line-height: 24px;
font-weight: 500;
}
.fake-switch {
width: 52px;
height: 30px;
border-radius: 999px;
background: var(--cyan);
position: relative;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.fake-switch::after {
content: '';
position: absolute;
top: 4px;
right: 4px;
width: 22px;
height: 22px;
border-radius: 50%;
background: #FFFFFF;
}
.inline-selects,
.child-row-fields {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
width: 100%;
}
.form-row:has(.inline-selects),
.form-row:has(.children-block) {
grid-template-columns: minmax(220px, 1fr) minmax(320px, 360px);
}
.control:has(.inline-selects),
.control:has(.children-block) {
width: 100%;
justify-self: stretch;
}
.small-select {
width: 72px;
flex: 0 0 auto;
}
.small-select select {
padding-right: 30px;
padding-left: 14px;
}
.small-select::after {
right: 10px;
}
.inline-note {
color: var(--text);
font-size: 16px;
line-height: 24px;
}
.field-note {
margin: 8px 0 0;
color: var(--muted);
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.field-note strong {
color: var(--text-secondary);
font-weight: 600;
}
.children-block {
width: 100%;
}
.children-list {
display: grid;
gap: 16px;
}
.child-row {
width: 100%;
}
.child-row-fields .danger-button {
margin-left: 0;
}
.child-row .child-title {
display: none;
}
.remove-child.hidden {
display: none;
}
.children-actions {
margin-top: 16px;
}
button {
font: inherit;
border: 0;
cursor: pointer;
}
.ghost-button,
.danger-button {
appearance: none;
-webkit-appearance: none;
height: 44px;
padding: 0 16px;
border-radius: var(--radius-button);
border: 1px solid var(--border-light) !important;
background: #FFFFFF !important;
color: var(--text) !important;
font-size: 15px;
line-height: 15px;
font-weight: 500;
text-decoration: none !important;
box-shadow: none !important;
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.submit-wrap {
display: flex;
justify-content: center;
margin: 38px 0 56px;
}
.submit-button {
appearance: none;
-webkit-appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 280px;
min-height: 62px;
height: 62px;
padding: 17px 36px;
border-radius: 50px;
background: var(--cyan);
border: 2px solid var(--cyan);
font-size: 17px;
line-height: 24px;
font-weight: 600;
color: #FFFFFF !important;
box-shadow:
inset 0 -2px 0 rgba(0, 0, 0, 0.08),
0 8px 18px rgba(0, 164, 210, 0.14);
transition:
background-color 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
.results {
padding: 32px;
border: 1px solid var(--border);
border-radius: 16px;
background: #FFFFFF;
box-shadow: var(--shadow-card);
text-align: center;
}
.total-line {
margin: 0 0 20px;
font-size: 24px;
line-height: 1.4;
font-weight: 500;
color: var(--text-secondary);
}
.total-line strong {
font-size: 1.12em;
font-weight: 700;
color: var(--text);
}
.summary-note {
margin: -6px 0 28px;
color: var(--muted);
font-size: 18px;
line-height: 24px;
}
.metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin: 28px 0 36px;
text-align: center;
}
.metric-label {
color: var(--muted);
font-size: 14px;
font-weight: 500;
text-transform: uppercase;
}
.metric-value {
margin-top: 8px;
font-size: 23px;
line-height: 28.8px;
font-weight: 700;
color: var(--navy);
}
.metric-link {
appearance: none;
-webkit-appearance: none;
padding: 0;
border: 0;
background: transparent !important;
display: inline-block;
margin-top: 6px;
color: var(--cyan) !important;
font-size: 16px;
line-height: 24px;
text-decoration: none;
border-bottom: 1px solid transparent;
transition: color 0.2s ease, border-color 0.2s ease;
}
.detail-table {
width: 100%;
border-collapse: collapse !important;
border-spacing: 0 !important;
border: 0 !important;
text-align: left;
margin-top: 0;
background: transparent !important;
}
.detail-table td {
padding: 14px 8px;
border: 0 !important;
border-bottom: 1px solid var(--border-light) !important;
background: transparent !important;
font-size: 16px;
line-height: 24px;
vertical-align: top;
}
.detail-table td:last-child {
text-align: right;
white-space: nowrap;
font-weight: 600;
}
.detail-table tr:last-child td {
border-bottom: 0 !important;
font-weight: 700;
color: var(--text-secondary);
}
.detail-subheading {
margin: 34px 0 10px;
color: var(--navy);
font-size: 22px;
line-height: 1.25;
text-align: center;
}
.detail-note {
margin: 0 0 14px;
color: var(--muted);
font-size: 15px;
line-height: 22px;
text-align: center;
}
.detail-table .group-row td {
padding-top: 20px;
color: var(--navy);
font-weight: 700;
border-bottom-color: var(--border) !important;
}
.submit-button:hover,
.submit-button:focus,
.submit-button:focus-visible,
.submit-button:active {
background: var(--cyan-strong) !important;
border-color: var(--cyan-strong) !important;
color: #FFFFFF !important;
transform: translateY(-1px);
box-shadow:
inset 0 -2px 0 rgba(0, 0, 0, 0.1),
0 10px 22px rgba(0, 164, 210, 0.2);
outline: none !important;
}
.ghost-button:hover,
.ghost-button:focus,
.ghost-button:focus-visible,
.ghost-button:active,
.danger-button:hover,
.danger-button:focus,
.danger-button:focus-visible,
.danger-button:active {
background: rgba(0, 164, 210, 0.08) !important;
border-color: var(--cyan) !important;
color: var(--cyan) !important;
outline: none !important;
box-shadow: 0 0 0 3px rgba(0, 164, 210, 0.12) !important;
}
.metric-link:hover,
.metric-link:focus,
.metric-link:focus-visible,
.metric-link:active {
background: transparent !important;
color: var(--cyan-strong) !important;
border-color: var(--cyan-strong) !important;
outline: none !important;
box-shadow: none !important;
}
.hidden {
display: none !important;
}
.field-error {
width: 100%;
margin: 4px 0 0;
color: #B42318;
font-size: 14px;
line-height: 20px;
font-weight: 500;
}
.field-shell.has-error input {
border-color: #FDA29B;
background: #FFFBFA;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 720px) {
.page {
width: min(calc(100% - 24px), var(--panel-width));
padding: 20px 0 56px;
}
.intro {
margin-bottom: 24px;
}
.intro h1 {
font-size: 28px;
line-height: 36px;
}
#calculator-form > .section {
padding: 24px 0;
}
.form-row {
grid-template-columns: 1fr;
gap: 12px;
}
.control {
justify-self: stretch;
width: 100%;
}
.metrics {
grid-template-columns: 1fr;
gap: 18px;
}
.submit-button {
min-width: 100%;
}
.inline-selects,
.child-row-fields {
align-items: flex-start;
}
.child-row-fields .danger-button {
margin-left: 0;
}
}