/* Vergi Avantajı Hesaplayıcı */
.vah {
    font-family: 'Rubik', sans-serif;
    color: #262626;
}

/* --- FORM CARD --- */
.vah__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px;
    max-width: 748px;
}

.vah__desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Tabs */
.vah__tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.vah__tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vah__tab.is-active {
    background: #fff;
    color: #262626;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Form fields */
.vah__field {
    margin-bottom: 16px;
}

.vah__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.vah__label-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    cursor: default;
    position: relative;
    vertical-align: middle;
}

.vah__label-info:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #262626;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    max-width: 260px;
    width: max-content;
    word-break: break-word;
    text-align: left;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 100;
}

.vah__input,
.vah__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Rubik', sans-serif;
    color: #262626;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.vah__input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.vah__input:focus,
.vah__select:focus {
    border-color: #006cb6;
    box-shadow: 0 0 0 3px rgba(0,108,182,0.12);
}

.vah__select-wrap {
    position: relative;
}

.vah__select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
}

/* Monthly premium rows */
.vah__monthly-toggle {
    font-size: 13px;
    color: #006cb6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: -8px;
    margin-bottom: 16px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}

.vah__monthly-toggle::before {
    content: '+';
    font-size: 16px;
    line-height: 1;
}

.vah__monthly-toggle.is-open::before {
    content: '−';
}

.vah__monthly-grid {
    display: none;
    gap: 10px;
    margin-bottom: 16px;
}

.vah__monthly-grid.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.vah__monthly-item label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vah__monthly-item .vah__input {
    font-size: 13px;
    padding: 9px 12px;
}

/* Variable salary rows */
.vah__variable-grid {
    display: none;
    gap: 10px;
    margin-bottom: 16px;
}

.vah__variable-grid.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Submit button */
.vah__btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #006cb6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.vah__btn-submit:hover {
    background: #005a99;
}

.vah__btn-submit:disabled {
    background: #80b6db;
    cursor: not-allowed;
}

.vah__btn-submit .vah__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vah-spin 0.7s linear infinite;
}

.vah__btn-submit.is-loading .vah__spinner { display: inline-block; }
.vah__btn-submit.is-loading .vah__btn-text { opacity: 0.7; }

@keyframes vah-spin {
    to { transform: rotate(360deg); }
}

/* --- RESULTS --- */
.vah__results {
    display: none;
    margin-top: 24px;
}

.vah__results.is-visible {
    display: block;
}

.vah__results-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 28px 32px;
}

/* Üst blok: tutar solda, meta sağda */
.vah__results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vah__results-header {
    flex-shrink: 0;
}

.vah__results-year {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.vah__results-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
}

.vah__results-amount {
    font-size: 34px;
    font-weight: 700;
    color: #262626;
    line-height: 1.1;
}

.vah__results-meta {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 200px;
    border-left: 2px solid #006cb6;
    padding-left: 20px;
}

.vah__results-meta-item {
    flex: 1;
}

.vah__results-meta-item + .vah__results-meta-item {
    border-left: 1px solid #e5e7eb;
    padding-left: 16px;
    margin-left: 16px;
}

.vah__results-meta-item span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vah__results-meta-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

/* 2 kolon grid */
.vah__results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-bottom: 0;
}

.vah__results-grid .vah__row-group {
    padding: 4px 0;
}

.vah__results-grid .vah__row-group:first-child {
    border-right: 1px solid #e5e7eb;
    padding-right: 20px;
}

.vah__results-grid .vah__row-group:last-child {
    padding-left: 4px;
}

/* Footer row */
.vah__results-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
    padding-top: 16px;
}

.vah__row--matreh {
    margin-bottom: 16px;
}

/* Result rows */
.vah__row-group {
    margin-bottom: 16px;
}

.vah__row-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #006cb6;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vah__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.vah__row:last-child {
    border-bottom: none;
}

.vah__row-label {
    color: #6b7280;
}

.vah__row-value {
    font-weight: 500;
    color: #262626;
}

.vah__row-value--highlight {
    color: #006cb6;
    font-weight: 600;
}

.vah__results-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

/* Actions below results */
.vah__results-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vah__link-monthly {
    font-size: 14px;
    color: #006cb6;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    padding: 0;
}

.vah__link-monthly:hover {
    color: #005a99;
}

.vah__btn-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    padding: 14px 24px;
    background: #006cb6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.vah__btn-offer:hover {
    background: #005a99;
    color: #fff;
}

/* --- MODAL --- */
.vah__modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vah__modal-overlay.is-open {
    display: flex;
}

.vah__modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vah__modal-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.vah__modal-head h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #262626;
}

.vah__modal-close {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    line-height: 1;
    transition: background 0.2s;
}

.vah__modal-close:hover {
    background: #e5e7eb;
}

.vah__modal-body {
    overflow-y: auto;
    padding: 16px 24px 24px;
    flex: 1;
}

/* Accordion */
.vah__accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.vah__accordion-trigger {
    width: 100%;
    background: #fff;
    border: none;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    text-align: left;
    transition: background 0.15s;
}

.vah__accordion-trigger:hover {
    background: #f9fafb;
}

.vah__accordion-trigger.is-open {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.vah__accordion-label {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.vah__accordion-badge {
    font-size: 13px;
    color: #006cb6;
    font-weight: 500;
}

.vah__accordion-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: transform 0.25s;
    margin-left: 8px;
    flex-shrink: 0;
}

.vah__accordion-trigger.is-open .vah__accordion-arrow {
    transform: rotate(180deg);
}

.vah__accordion-content {
    display: none;
    padding: 14px 16px;
    background: #fff;
}

.vah__accordion-content.is-open {
    display: block;
}

.vah__acc-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.vah__acc-meta-item span {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vah__acc-meta-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.vah__acc-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #006cb6;
    margin: 10px 0 6px;
}

/* Limit uyarısı */
.vah__limit-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 12px;
}

/* Error */
.vah__error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 12px;
}

.vah__error.is-visible {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .vah__card {
        padding: 20px 16px;
    }

    .vah__tab {
        font-size: 13px;
        padding: 8px 10px;
    }

    .vah__results-card {
        padding: 20px 16px;
    }

    /* Üst blok: stack */
    .vah__results-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .vah__results-meta {
        border-left: none;
        border-top: 2px solid #006cb6;
        padding-left: 0;
        padding-top: 12px;
        width: 100%;
    }

    .vah__results-amount {
        font-size: 26px;
    }

    /* 2 kolon → 1 kolon */
    .vah__results-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vah__results-grid .vah__row-group:first-child {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .vah__results-grid .vah__row-group:last-child {
        padding-left: 0;
    }

    .vah__monthly-grid,
    .vah__variable-grid {
        grid-template-columns: 1fr;
    }

    .vah__modal {
        max-height: 60vh;
    }
}
