/* MyPlann needs calculator (www). Self-contained: works on the home page and on the calculator page.
   Colours fall back to the site's own values where a page does not define the variables. */
.needs-calc {
    background: var(--white, #fff); border-radius: 24px; padding: 36px 34px 30px;
    box-shadow: 0 20px 60px rgba(44, 62, 80, 0.1), 0 1px 3px rgba(44, 62, 80, 0.06);
    width: 100%; max-width: 440px; position: relative; text-align: left;
    font-family: var(--font-body, 'Source Sans 3', sans-serif); color: var(--dark, #2C3E50);
}
.needs-calc::before {
    content: ''; position: absolute; top: -2px; left: 20%; right: 20%; height: 4px;
    background: linear-gradient(90deg, var(--terracotta, #C75B39), var(--teal, #2A9D8F));
    border-radius: 0 0 4px 4px;
}
.needs-calc .nc-head { text-align: center; margin-bottom: 22px; }
.needs-calc .nc-head h3 {
    font-family: var(--font-display, 'Quicksand', sans-serif); font-size: 16px; font-weight: 600;
    color: var(--light, #888); text-transform: uppercase; letter-spacing: 2px; margin: 0;
}
.needs-calc .nc-kicker { font-size: 13px; color: var(--light, #888); font-weight: 500; margin: 6px 0 0; }

.needs-calc .nc-people { display: flex; gap: 10px; margin-bottom: 20px; }
.needs-calc .nc-step { flex: 1; text-align: center; }
.needs-calc .nc-step-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.needs-calc .nc-step-row button {
    width: 36px; height: 36px; border-radius: 10px; padding: 0;
    border: 2px solid rgba(44, 62, 80, 0.12); background: var(--white, #fff);
    font-size: 20px; font-weight: 700; color: var(--terracotta, #C75B39);
    cursor: pointer; line-height: 1; transition: all 0.15s; font-family: inherit; flex: 0 0 auto;
}
.needs-calc .nc-step-row button:hover { border-color: var(--terracotta, #C75B39); background: rgba(199, 91, 57, 0.06); }
.needs-calc .nc-val {
    font-family: var(--font-display, 'Quicksand', sans-serif); font-size: 24px; font-weight: 700;
    color: var(--dark, #2C3E50); min-width: 30px; text-align: center; line-height: 1;
}
.needs-calc .nc-step-label { font-size: 12.5px; font-weight: 600; color: var(--medium, #555); margin-top: 6px; }

.needs-calc .nc-q { margin-bottom: 18px; }
.needs-calc .nc-label {
    font-family: var(--font-display, 'Quicksand', sans-serif); font-size: 13.5px; font-weight: 700;
    color: var(--dark, #2C3E50); margin-bottom: 8px;
}
.needs-calc .nc-seg { display: flex; gap: 6px; }
.needs-calc .nc-seg button {
    flex: 1; padding: 10px 4px; border: 2px solid rgba(44, 62, 80, 0.12); background: var(--white, #fff);
    border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--medium, #555);
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.needs-calc .nc-seg button:hover { border-color: var(--teal, #2A9D8F); }
.needs-calc .nc-seg button.active {
    border-color: var(--teal, #2A9D8F); background: rgba(42, 157, 143, 0.1); color: var(--teal-dark, #228176);
}
.needs-calc .nc-hint { font-size: 12px; color: var(--light, #888); margin: 7px 2px 0; line-height: 1.4; }

.needs-calc .nc-results { border-top: 1px solid rgba(44, 62, 80, 0.08); margin: 4px 0 14px; }
.needs-calc .nc-row { padding: 11px 0; border-bottom: 1px solid rgba(44, 62, 80, 0.08); }
.needs-calc .nc-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.needs-calc .nc-name { font-size: 14px; font-weight: 600; color: var(--medium, #555); white-space: nowrap; }
.needs-calc .nc-icon { display: inline-block; width: 24px; }
.needs-calc .nc-value {
    font-family: var(--font-display, 'Quicksand', sans-serif); font-size: 16px; font-weight: 700;
    color: var(--terracotta, #C75B39); text-align: right; line-height: 1.25;
}
.needs-calc .nc-detail { font-size: 12px; color: var(--light, #888); text-align: right; margin-top: 2px; line-height: 1.4; }

.needs-calc .nc-caption { font-size: 13.5px; line-height: 1.55; color: var(--medium, #555); text-align: center; margin: 0 2px 14px; }
.needs-calc .nc-caption strong { color: var(--terracotta, #C75B39); }
.needs-calc .nc-form { display: flex; gap: 8px; margin: 0; max-width: none; }
.needs-calc .nc-form input[type=email] {
    flex: 1; min-width: 0; padding: 13px 14px; border: 2px solid rgba(44, 62, 80, 0.12); border-radius: 10px;
    font-family: inherit; font-size: 14px; background: var(--white, #fff); outline: none; transition: border-color 0.2s;
}
.needs-calc .nc-form input[type=email]:focus { border-color: var(--teal, #2A9D8F); }
.needs-calc .nc-form button {
    padding: 13px 16px; background: var(--terracotta, #C75B39); color: #fff; border: none; border-radius: 10px;
    font-family: var(--font-display, 'Quicksand', sans-serif); font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: all 0.2s; width: auto;
}
.needs-calc .nc-form button:hover { background: var(--terracotta-dark, #A84A2D); }
.needs-calc .nc-success {
    display: none; padding: 13px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center;
    background: rgba(42, 157, 143, 0.1); color: var(--teal-dark, #228176);
}
.needs-calc .nc-foot { font-size: 12px; color: var(--light, #888); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.needs-calc .nc-foot a { color: var(--teal, #2A9D8F); font-weight: 600; text-decoration: none; }
.needs-calc .nc-foot a:hover { text-decoration: underline; }
.needs-calc noscript p { font-size: 14px; line-height: 1.6; color: var(--medium, #555); text-align: center; }

.needs-calc.nc-wide { max-width: 560px; margin: 28px auto; }

@media (max-width: 900px) {
    .needs-calc { margin: 0 auto; }
}
@media (max-width: 600px) {
    .needs-calc { padding: 28px 20px 24px; }
    .needs-calc .nc-people { flex-direction: column; gap: 8px; }
    .needs-calc .nc-step { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; text-align: left; }
    .needs-calc .nc-step-row button { width: 40px; height: 40px; }
    .needs-calc .nc-val { min-width: 36px; }
    .needs-calc .nc-step-label { margin-top: 0; font-size: 14.5px; }
    .needs-calc .nc-seg button { font-size: 12.5px; padding: 10px 2px; }
    .needs-calc .nc-row-top { flex-wrap: wrap; }
    .needs-calc .nc-value { margin-left: auto; }
    .needs-calc .nc-form { flex-direction: column; }
    .needs-calc .nc-form button { width: 100%; }
}
@media (max-width: 380px) {
    .needs-calc .nc-seg[data-k="heat"] { flex-wrap: wrap; }
    .needs-calc .nc-seg[data-k="heat"] button { flex: 1 1 40%; }
}
