.yl-calculator-page {
    margin: 0;
    min-height: 100vh;
    background: #eef0f2;
}

.yl-heat-calculator {
    --yl-orange: #f58220;
    --yl-orange-dark: #d96508;
    --yl-charcoal: #33383d;
    --yl-grey: #697078;
    --yl-soft-grey: #f3f4f5;
    --yl-line: #d9dde1;
    --yl-white: #ffffff;
    --yl-cold: #147bc1;
    --yl-cold-soft: #eaf5fc;
    --yl-hot: #d84943;
    --yl-hot-soft: #fff0ef;
    box-sizing: border-box;
    color: var(--yl-charcoal);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--yl-soft-grey);
    isolation: isolate;
}

.yl-heat-calculator *,
.yl-heat-calculator *::before,
.yl-heat-calculator *::after { box-sizing: border-box; }

.yl-heat-calculator .form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.yl-heat-calculator.calculator-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px;
}

.yl-heat-calculator .hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
    text-align: left;
    padding: 22px 26px 24px;
    margin: 0;
    border-radius: 0;
    color: var(--yl-white);
    background: #444a50;
    box-shadow: none;
}

.yl-heat-calculator .eyebrow,
.yl-heat-calculator .section-kicker {
    color: var(--yl-orange);
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 800;
}

.yl-heat-calculator h1,
.yl-heat-calculator h2,
.yl-heat-calculator p { font-family: inherit; }

.yl-heat-calculator h1 {
    margin: 10px 0 9px;
    color: var(--yl-white);
    font-size: 29px;
    letter-spacing: -.04em;
    line-height: 1;
}

.yl-heat-calculator h2 {
    margin: 5px 0 0;
    color: var(--yl-charcoal);
    font-size: 18px;
    letter-spacing: -.02em;
}

.yl-heat-calculator .hero p,
.yl-heat-calculator .section-heading p,
.yl-heat-calculator .heat-load p,
.yl-heat-calculator .submit-card p {
    color: var(--yl-grey);
    margin: 0;
    line-height: 1.6;
}

.yl-heat-calculator .hero p { color: #d9dde0; font-size: 13px; max-width: 520px; }

.yl-heat-calculator .calculator-workflow {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(600px, 1.28fr);
    background: var(--yl-white);
    border: 1px solid var(--yl-line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.yl-heat-calculator .contact-card,
.yl-heat-calculator .heat-load,
.yl-heat-calculator .submit-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.yl-heat-calculator .media-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.yl-heat-calculator .contact-card {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 16px;
    align-items: center;
    border-left: 1px solid var(--yl-line);
    border-bottom: 1px solid var(--yl-line);
}

.yl-heat-calculator .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.yl-heat-calculator .message-field { grid-column: 1 / -1; }

.yl-heat-calculator .project-options {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--yl-line);
    background: #fafbfb;
}
.yl-heat-calculator .project-options summary {
    min-height: 48px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    color: var(--yl-charcoal);
}
.yl-heat-calculator .project-options summary::-webkit-details-marker { display: none; }
.yl-heat-calculator .project-options summary span:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yl-heat-calculator .project-options summary b { font-size: 12px; }
.yl-heat-calculator .project-options summary small { color: var(--yl-grey); font-size: 10px; }
.yl-heat-calculator .project-options[open] summary > span:last-child { transform: rotate(45deg); }
.yl-heat-calculator .project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 16px;
}

.yl-heat-calculator label {
    position: relative;
    display: grid;
    gap: 4px;
    color: #4d5359;
    font-size: 11px;
    font-weight: 700;
}

.yl-heat-calculator .required-note {
    margin: 7px 0 0;
    color: #7b8288;
    font-size: 9px;
}
.yl-heat-calculator .required-note span,
.yl-heat-calculator .required-mark { color: var(--yl-hot); }
.yl-heat-calculator .required-mark {
    position: absolute;
    top: -1px;
    right: 0;
    font-size: 12px;
}
.yl-heat-calculator .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.yl-heat-calculator input,
.yl-heat-calculator textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cfd4d8;
    background: var(--yl-white);
    color: var(--yl-charcoal);
    border-radius: 0;
    padding: 0 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.yl-heat-calculator textarea {
    min-height: 76px;
    padding: 10px;
    line-height: 1.45;
    resize: vertical;
}

.yl-heat-calculator input::placeholder,
.yl-heat-calculator textarea::placeholder { color: #9ba1a7; }
.yl-heat-calculator input:focus,
.yl-heat-calculator textarea:focus {
    border-color: var(--yl-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .14);
}

.yl-heat-calculator .media-section {
    grid-column: 1 / -1;
    padding: 18px 24px 20px;
    border-bottom: 1px solid var(--yl-line);
    background: var(--yl-white);
}
.yl-heat-calculator .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 11px;
}

.yl-heat-calculator .section-heading > p {
    max-width: 430px;
    text-align: right;
    font-size: 13px;
}

.yl-heat-calculator .media-grid {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) minmax(230px, .68fr) minmax(290px, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--yl-line);
    border-radius: 0;
    background: #fff;
}

.yl-heat-calculator fieldset { min-width: 0; }
.yl-heat-calculator .media-card {
    padding: 14px 16px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    border-top: 3px solid var(--yl-cold);
}

.yl-heat-calculator .media-card legend,
.yl-heat-calculator .media-card label:first-of-type { grid-column: 1 / -1; }

.yl-heat-calculator .cold-card {
    border-right: 1px solid var(--yl-line);
    background: transparent;
}
.yl-heat-calculator .hot-card {
    border-top-color: var(--yl-hot);
    border-left: 1px solid var(--yl-line);
    background: transparent;
}

.yl-heat-calculator .media-card legend {
    padding: 0 9px 0 0;
    margin-bottom: 0;
    background: var(--yl-white);
    font-size: 16px;
    font-weight: 800;
}

.yl-heat-calculator .cold-card legend,
.yl-heat-calculator .cold-card label { color: var(--yl-cold); }
.yl-heat-calculator .hot-card legend,
.yl-heat-calculator .hot-card label { color: var(--yl-hot); }
.yl-heat-calculator .cold-card input,
.yl-heat-calculator .hot-card input { color: var(--yl-charcoal); background: var(--yl-white); }
.yl-heat-calculator .cold-card input:focus { border-color: var(--yl-cold); box-shadow: 0 0 0 3px rgba(20,123,193,.13); }
.yl-heat-calculator .hot-card input:focus { border-color: var(--yl-hot); box-shadow: 0 0 0 3px rgba(216,73,67,.12); }

.yl-heat-calculator .flow-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 0;
    margin-right: 8px;
    background: var(--yl-cold);
}
.yl-heat-calculator .hot-dot { background: var(--yl-hot); }

.yl-heat-calculator .equipment-visual {
    position: relative;
    min-height: 286px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.yl-heat-calculator .equipment-stage {
    position: relative;
    width: 286px;
    isolation: isolate;
}

.yl-heat-calculator .equipment-stage img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.yl-heat-calculator .visual-badge {
    position: absolute;
    z-index: 4;
    top: 2.5%;
    left: 50%;
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 0;
    background: rgba(255, 255, 255, .88);
    text-align: center;
    color: var(--yl-orange-dark);
    letter-spacing: .08em;
    font-size: 6.5px;
    font-weight: 750;
    line-height: 1;
    transform: translateX(-50%);
}
.yl-heat-calculator .visual-badge strong { color: var(--yl-charcoal); font-size: 7.5px; }

.yl-heat-calculator .flow-guide {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 0;
    background: rgba(255,255,255,.68);
    text-shadow: 0 1px 0 rgba(255,255,255,.9);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}
.yl-heat-calculator .flow-guide span { line-height: 1; }
.yl-heat-calculator .flow-guide.cold-in,
.yl-heat-calculator .flow-guide.cold-out { background: rgba(235, 247, 253, .78); }
.yl-heat-calculator .flow-guide.hot-in,
.yl-heat-calculator .flow-guide.hot-out { background: rgba(255, 241, 240, .78); }

.yl-heat-calculator .flow-guide i {
    width: 10px;
    height: 1px;
    background: currentColor;
    opacity: .72;
}
.yl-heat-calculator .flow-guide b {
    position: relative;
    font-size: 15px;
    line-height: .65;
}

.yl-heat-calculator .cold-in,
.yl-heat-calculator .cold-out {
    right: 68%;
    color: var(--yl-cold);
}
.yl-heat-calculator .hot-in,
.yl-heat-calculator .hot-out {
    left: 45%;
    color: var(--yl-hot);
}
.yl-heat-calculator .cold-in { top: 14%; }
.yl-heat-calculator .hot-out { top: 15.5%; }
.yl-heat-calculator .cold-out { top: 66.5%; }
.yl-heat-calculator .hot-in { top: 71.5%; }

.yl-heat-calculator .flow-summary {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    bottom: 7px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .03em;
}
.yl-heat-calculator .cold-summary { color: var(--yl-cold); }
.yl-heat-calculator .hot-summary { color: var(--yl-hot); }

.yl-heat-calculator .heat-load,
.yl-heat-calculator .submit-card {
    margin-top: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.yl-heat-calculator .module-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(560px, 1.1fr);
    background: #f6f7f8;
}

.yl-heat-calculator .heat-load {
    display: grid;
    align-content: center;
    align-items: stretch;
    gap: 12px;
    border-right: 1px solid var(--yl-line);
}
.yl-heat-calculator .heat-load > div:first-child { min-width: 0; }
.yl-heat-calculator .heat-load h2 { white-space: normal; }
.yl-heat-calculator .heat-load p { max-width: 520px; }
.yl-heat-calculator .heat-load-input { display: flex; align-items: end; gap: 8px; min-width: 250px; }
.yl-heat-calculator .heat-load-input label { flex: 1; }

.yl-heat-calculator button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    border-radius: 0;
    min-height: 38px;
    padding: 0 14px;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.yl-heat-calculator .primary-btn {
    background: var(--yl-orange-dark);
    color: var(--yl-white);
    padding: 0 18px;
    box-shadow: none;
}

.yl-heat-calculator .secondary-btn,
.yl-heat-calculator .copy-btn {
    color: var(--yl-charcoal);
    background: #eceeef;
    border: 1px solid #d0d4d7;
}

.yl-heat-calculator .primary-btn:hover,
.yl-heat-calculator .secondary-btn:hover,
.yl-heat-calculator .copy-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.yl-heat-calculator button:focus-visible { outline: 3px solid rgba(245,130,32,.32); outline-offset: 2px; }

.yl-heat-calculator .submit-card {
    display: grid;
    grid-template-columns: minmax(135px, .75fr) minmax(190px, 1fr) auto;
    background: #fff;
}
.yl-heat-calculator .submit-copy { min-width: 0; }
.yl-heat-calculator .contact-person { display: grid; gap: 3px; font-style: normal; font-size: 11px; line-height: 1.35; }
.yl-heat-calculator .contact-person strong { color: var(--yl-charcoal); font-size: 12px; }
.yl-heat-calculator .contact-person a { color: #555c62; text-decoration: none; }
.yl-heat-calculator .contact-person a:hover { color: var(--yl-orange-dark); }
.yl-heat-calculator .actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.yl-heat-calculator .privacy-consent {
    grid-column: 1 / 3;
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 7px;
    color: #666d73;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.4;
}
.yl-heat-calculator .privacy-consent input { width: 15px; min-height: 15px; margin: 0; flex: 0 0 15px; accent-color: var(--yl-orange-dark); }
.yl-heat-calculator .submit-card > .actions { grid-column: 3; grid-row: 1 / 3; }
.yl-heat-calculator .submit-card small { color: #7d848a; grid-column: 1 / -1; line-height: 1.4; font-size: 9px; }

.yl-heat-calculator .notice { grid-column: 1 / -1; margin: 0; padding: 12px 18px; border-radius: 0; line-height: 1.5; }
.yl-heat-calculator .success { background: #edf9f4; border: 1px solid #77c7a5; color: #176946; }
.yl-heat-calculator .error { background: #fff0ef; border: 1px solid #e5918d; color: #98332e; }
.yl-heat-calculator .error ul { margin: 6px 0 0; }

@media (max-width: 960px) {
    .yl-heat-calculator .calculator-workflow { grid-template-columns: 1fr; }
    .yl-heat-calculator .contact-card { grid-template-columns: 1fr; }
    .yl-heat-calculator .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yl-heat-calculator .module-footer { grid-template-columns: 1fr; }
    .yl-heat-calculator .media-grid { grid-template-columns: 1fr 1fr; }
    .yl-heat-calculator .equipment-visual { grid-column: 1 / -1; grid-row: 1; min-height: 360px; border-bottom: 1px solid var(--yl-line); }
    .yl-heat-calculator .cold-card { grid-column: 1; }
    .yl-heat-calculator .hot-card { grid-column: 2; }
    .yl-heat-calculator .heat-load { align-items: stretch; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--yl-line); }
    .yl-heat-calculator .submit-card { grid-template-columns: 1fr 1fr; align-items: start; }
    .yl-heat-calculator .submit-card .actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
    .yl-heat-calculator .privacy-consent { grid-column: 1 / -1; }
    .yl-heat-calculator .heat-load-input { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
    .yl-heat-calculator.calculator-shell { padding: 10px; }
    .yl-heat-calculator .hero { min-height: 112px; padding: 20px 18px 22px; }
    .yl-heat-calculator .contact-card,
    .yl-heat-calculator .media-section,
    .yl-heat-calculator .heat-load,
    .yl-heat-calculator .submit-card { padding-left: 18px; padding-right: 18px; }
    .yl-heat-calculator .contact-grid,
    .yl-heat-calculator .project-grid,
    .yl-heat-calculator .media-grid { grid-template-columns: 1fr; }
    .yl-heat-calculator .equipment-visual,
    .yl-heat-calculator .cold-card,
    .yl-heat-calculator .hot-card { grid-column: auto; }
    .yl-heat-calculator .equipment-visual { grid-row: auto; min-height: 300px; order: -1; }
    .yl-heat-calculator .cold-card { border-right: 0; }
    .yl-heat-calculator .hot-card { border-left: 0; }
    .yl-heat-calculator .equipment-stage { width: 286px; }
    .yl-heat-calculator .equipment-stage img { width: 100%; }
    .yl-heat-calculator .flow-guide { font-size: 8px; padding: 5px 7px; }
    .yl-heat-calculator .flow-guide b { font-size: 15px; }
    .yl-heat-calculator .flow-summary { flex-direction: column; align-items: center; gap: 2px; }
    .yl-heat-calculator .section-heading { display: block; }
    .yl-heat-calculator .section-heading > p { text-align: left; margin-top: 10px; }
    .yl-heat-calculator .submit-card { grid-template-columns: 1fr; }
    .yl-heat-calculator .submit-card .actions,
    .yl-heat-calculator .submit-card small { grid-column: 1; }
    .yl-heat-calculator .actions { flex-direction: column; width: 100%; }
    .yl-heat-calculator .actions button { width: 100%; }
    .yl-heat-calculator .heat-load-input { flex-direction: column; align-items: stretch; }
    .yl-heat-calculator .heat-load-input button { width: 100%; }
}
