.notary-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.notary-sidebar-stack,
.notary-helper-box,
.notary-disclaimer,
.notary-example-card,
.notary-result,
.notary-result-summary,
.notary-bnr-info,
.notary-service-tab,
.notary-service-tabs,
.notary-two-cols .calc-field {
    box-sizing: border-box;
}

.notary-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
}

.notary-bnr-info {
    margin: 8px 0 22px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    color: #475467;
    line-height: 1.65;
    font-size: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.notary-bnr-info strong {
    color: #163a5f;
    font-weight: 700;
}

.notary-service-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 6px 0 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.notary-service-tab {
    appearance: none;
    border: 1px solid #e4e7ec;
    background: #ffffff;
    color: #20364d;
    border-radius: 16px;
    padding: 18px 14px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.notary-service-tab:hover {
    border-color: #cfd8e3;
    background: #ffffff;
    transform: translateY(-1px);
}

.notary-service-tab.is-active {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7e7 100%);
    border-color: #d4af37;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.06),
        0 0 0 2px rgba(212, 175, 55, 0.14) inset;
}

.notary-service-tab-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #163a5f;
}

.notary-service-tab-subtitle {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
}

.notary-panel {
    display: none;
}

.notary-panel.is-active {
    display: block;
    animation: notaryFadeIn 0.2s ease;
}

@keyframes notaryFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Formular premium – uniformizat cu varsta-pensionare
   ========================= */
#calculatoare-taxe-notariale .calc-form {
    margin-top: 8px;
}

#calculatoare-taxe-notariale .notary-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 18px;
}

#calculatoare-taxe-notariale .notary-two-cols:last-of-type {
    margin-bottom: 10px;
}

#calculatoare-taxe-notariale .notary-two-cols .calc-field {
    width: 100%;
    min-width: 0;
}

#calculatoare-taxe-notariale .calc-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #163a5f;
    letter-spacing: 0.1px;
}

#calculatoare-taxe-notariale .calc-input,
#calculatoare-taxe-notariale .calc-select {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d7dee7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #163a5f;
    font-size: 18px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#calculatoare-taxe-notariale .calc-input:focus,
#calculatoare-taxe-notariale .calc-select:focus {
    outline: none;
    border-color: #8bb8de;
    box-shadow: 0 0 0 4px rgba(0, 121, 193, 0.08);
    background: #ffffff;
}

#calculatoare-taxe-notariale .calc-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #0079C1 50%),
        linear-gradient(135deg, #0079C1 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

#calculatoare-taxe-notariale .calc-box {
    border-radius: 18px;
}

#calculatoare-taxe-notariale .calc-section-title {
    margin-bottom: 18px;
}

.calc-field-help {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #667085;
}

.notary-exchange-field {
    animation: notaryFadeIn 0.2s ease;
}

.calc-field-spacer {
    visibility: hidden;
    pointer-events: none;
}

.notary-helper-box {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    align-self: start;
}

.notary-helper-box h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #1f2937;
}

.notary-helper-box p {
    margin: 0 0 14px;
    color: #475467;
    line-height: 1.65;
}

.notary-helper-box ul {
    margin: 0;
    padding-left: 18px;
}

.notary-helper-box li {
    margin-bottom: 10px;
    color: #475467;
    line-height: 1.6;
}

.notary-inline-note {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    color: #475467;
    line-height: 1.6;
}

.notary-result {
    margin-top: 20px;
}

.notary-result-summary {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.notary-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.notary-result-row:last-child {
    border-bottom: none;
}

.notary-result-row-total {
    background: #f8fafc;
}

.notary-result-label {
    font-size: 0.96rem;
    line-height: 1.55;
    color: #667085;
}

.notary-result-number {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #101828;
    text-align: right;
    word-break: break-word;
}

.notary-result-row-total .notary-result-number {
    font-size: 1.2rem;
    color: #163a5f;
}

.notary-result-extra {
    margin-top: 18px;
    color: #475467;
    line-height: 1.7;
}

.notary-result-extra p {
    margin: 0 0 11px;
}

.notary-result-extra p:last-child {
    margin-bottom: 0;
}

.notary-breakdown-box {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 4px solid #0079C1;
    background: #f8fafc;
    border-radius: 8px;
    color: #475467;
    line-height: 1.7;
}

.notary-breakdown-box p {
    margin: 0 0 9px;
}

.notary-breakdown-box p:last-child {
    margin-bottom: 0;
}

.notary-disclaimer {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff8e8;
    border: 1px solid #f2dfaa;
    color: #6b5a22;
    line-height: 1.65;
}

.notary-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.notary-example-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.notary-example-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #1f2937;
}

.notary-example-card p {
    margin: 0;
    color: #475467;
    line-height: 1.65;
}

.notary-example-card strong {
    color: #163a5f;
}

#calculatoare-taxe-notariale .calc-button {
    min-width: 260px;
}

@media (max-width: 980px) {
    .notary-grid {
        grid-template-columns: 1fr;
    }

    .notary-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #calculatoare-taxe-notariale .notary-two-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #calculatoare-taxe-notariale .calc-input,
    #calculatoare-taxe-notariale .calc-select {
        font-size: 17px;
        min-height: 56px;
    }

    #calculatoare-taxe-notariale .calc-button {
        width: 100%;
        min-width: 0;
    }

    .notary-service-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .notary-service-tab {
        min-height: 84px;
        font-size: 15px;
        padding: 16px 12px;
    }

    .calc-field-spacer {
        display: none;
    }

    .notary-result-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .notary-result-number {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .notary-service-tabs {
        grid-template-columns: 1fr;
    }
}