.dobanda-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dobanda-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dobanda-helper-box,
.dobanda-disclaimer,
.dobanda-result-card,
.dobanda-form-field {
    box-sizing: border-box;
}

.dobanda-helper-box {
    position: relative;
    padding: 20px 20px 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
    border: 1px solid #d8e4ee;
    box-shadow: 0 10px 26px rgba(17, 40, 64, 0.08);
    overflow: hidden;
}

.dobanda-helper-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0079C1 0%, #47a8df 100%);
}

.dobanda-helper-box h3 {
    margin: 0 0 14px;
    padding-top: 2px;
    font-family: "Droid Serif", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #163a5f;
}

.dobanda-helper-box ul {
    margin: 0;
    padding-left: 18px;
}

.dobanda-helper-box li {
    margin-bottom: 10px;
    color: #4a617b;
    line-height: 1.65;
}

.dobanda-inline-note {
    margin-top: 14px;
    padding: 13px 15px;
    background: #f7fafc;
    border: 1px solid #e2ebf3;
    border-left: 4px solid #d4af37;
    border-radius: 10px;
    color: #4e647c;
    line-height: 1.6;
    word-break: break-word;
}

.dobanda-rate-info-top {
    margin: 0 0 22px;
    padding: 15px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f8fd 100%);
    border: 1px solid #d7e7f4;
    color: #35506e;
    line-height: 1.72;
    font-size: 1rem;
}

.dobanda-rate-info-top strong {
    color: #163a5f;
}

.dobanda-disclaimer {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f2dfaa;
    color: #6b5a22;
    line-height: 1.68;
}

.dobanda-tabs-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
    margin: 8px 0 28px;
    border: 1px solid #d9e1eb;
    border-radius: 22px;
    background: linear-gradient(180deg, #f1f5f9 0%, #eef3f8 100%);
}

.dobanda-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 114px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid #d4dde8;
    background: #f7f9fc;
    color: #163a5f;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.dobanda-tab:hover {
    border-color: #bfd0e2;
    transform: translateY(-1px);
    background: #ffffff;
}

.dobanda-tab.is-active {
    background: #f4efe4;
    border-color: #e1b25a;
    box-shadow: 0 0 0 2px rgba(225, 178, 90, 0.08) inset;
}

.dobanda-tab-icon {
    flex: 0 0 auto;
    font-size: 40px;
    line-height: 1;
    color: #6a5acd;
    margin-top: -4px;
}

.dobanda-tab-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.dobanda-tab-content strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #163a5f;
}

.dobanda-tab-content small {
    display: block;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #50657f;
}

.dobanda-result-summary {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 18px;
}

.dobanda-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dobanda-result-card {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.dobanda-result-label {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 0.92rem;
}

.dobanda-result-card strong {
    display: block;
    color: #101828;
    font-size: 1.02rem;
    line-height: 1.4;
}

.dobanda-result-table-wrap {
    margin: 18px 0 20px;
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
}

.dobanda-result-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dobanda-result-table thead th {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e4e7ec;
    color: #475467;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: left;
}

.dobanda-result-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #344054;
    line-height: 1.55;
    vertical-align: top;
}

.dobanda-result-table tbody tr:last-child td {
    border-bottom: none;
}

.dobanda-result-table tbody tr.dobanda-total-row td {
    background: #f7fafc;
    font-weight: 700;
}

.dobanda-result-extra {
    color: #475467;
    line-height: 1.7;
}

.dobanda-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.calc-button-secondary {
    background: #f3f6fa;
    color: #163a5f;
    border: 1px solid #d7dee7;
}

.calc-button-secondary:hover {
    background: #eaf1f7;
}

#calculatoare-dobanda-legala .calc-box {
    border-radius: 18px;
}

#calculatoare-dobanda-legala .calc-result {
    margin-top: 20px;
}

#calculatoare-dobanda-legala .calc-button {
    min-width: 220px;
}

#calculatoare-dobanda-legala .calc-form.dobanda-form {
    margin-top: 8px;
}

#calculatoare-dobanda-legala .dobanda-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 18px;
}

#calculatoare-dobanda-legala .dobanda-form-row:last-of-type {
    margin-bottom: 14px;
}

#calculatoare-dobanda-legala .dobanda-form-field {
    min-width: 0;
}

#calculatoare-dobanda-legala .calc-section-title {
    margin-bottom: 18px;
}

#calculatoare-dobanda-legala .calc-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #163a5f;
    letter-spacing: 0.1px;
}

#calculatoare-dobanda-legala .calc-field-help {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #60758b;
}

#calculatoare-dobanda-legala .calc-input,
#calculatoare-dobanda-legala .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-dobanda-legala .calc-input:focus,
#calculatoare-dobanda-legala .calc-select:focus {
    outline: none;
    border-color: #8bb8de;
    box-shadow: 0 0 0 4px rgba(0, 121, 193, 0.08);
    background: #ffffff;
}

#calculatoare-dobanda-legala .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-dobanda-legala .calc-section-intro-common {
    margin-top: 4px;
}

#calculatoare-dobanda-legala .calc-section-intro-common > * {
    border-radius: 16px;
}

#calculatoare-dobanda-legala .calc-example-item + .calc-example-item {
    margin-top: 18px;
}

@media (max-width: 1080px) {
    .dobanda-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dobanda-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dobanda-tabs-box {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .dobanda-tab {
        min-height: auto;
        padding: 18px 18px;
    }

    #calculatoare-dobanda-legala .dobanda-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #calculatoare-dobanda-legala .calc-input,
    #calculatoare-dobanda-legala .calc-select {
        font-size: 17px;
        min-height: 56px;
    }

    .dobanda-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #calculatoare-dobanda-legala .calc-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .dobanda-result-grid {
        grid-template-columns: 1fr;
    }

    .dobanda-result-table {
        min-width: 640px;
    }

    .dobanda-tab-icon {
        font-size: 34px;
    }

    .dobanda-helper-box {
        padding: 18px 16px 16px 16px;
    }
}
.dobanda-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}

.dobanda-example-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid #d9e6f0;
    border-radius: 16px;
    padding: 20px 20px 18px;
    box-shadow: 0 8px 24px rgba(17, 40, 64, 0.06);
}

.dobanda-example-card h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    line-height: 1.4;
    color: #163a5f;
    font-family: "Ubuntu", Arial, sans-serif;
    font-weight: 700;
}

.dobanda-example-card p {
    margin: 0;
    color: #445b74;
    line-height: 1.75;
    font-size: 0.98rem;
}

@media (max-width: 980px) {
    .dobanda-examples {
        grid-template-columns: 1fr;
    }
}