/* =========================================================
   S.S. AHISKA TÜRKLERİ KONUT YAPI KOOPERATİFİ
   PROFESYONEL PARSEL ÖDEME HESAPLAMA MODÜLÜ
   ========================================================= */

.payment-calculator {
    margin-top: 32px;
    padding: 30px;
    border: 1px solid #c9ddd4;
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(245, 251, 248, 0.98)
        );
    box-shadow:
        0 22px 60px rgba(5, 59, 45, 0.10);
    scroll-margin-top: 120px;
}

/* Üst başlık */

.payment-calculator__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.payment-calculator__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e6f5ee;
    color: #08734c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.payment-calculator__header h3 {
    margin: 0;
    color: #073f31;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.15;
}

.payment-calculator__header p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #5d7068;
    font-size: 16px;
    line-height: 1.7;
}

/* Durum rozeti */

.payment-status {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.payment-status--empty {
    border: 1px solid #d3ded9;
    background: #f2f6f4;
    color: #687872;
}

.payment-status--available {
    border: 1px solid #a8e2c0;
    background: #dbf8e7;
    color: #087440;
}

.payment-status--reserved {
    border: 1px solid #f0d27b;
    background: #fff4c8;
    color: #8a6100;
}

.payment-status--sold {
    border: 1px solid #efb0b0;
    background: #ffe1e1;
    color: #a91f1f;
}

/* Parsel seçilmedi uyarısı */

.payment-calculator__warning {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #efc758;
    border-left: 6px solid #f5b700;
    border-radius: 14px;
    background: #fff8d7;
    color: #6d5100;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
}

.payment-calculator__warning.is-hidden {
    display: none;
}

/* İç yerleşim */

.payment-calculator__content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    transition:
        opacity 0.25s ease,
        filter 0.25s ease;
}

.payment-calculator__content.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.3);
    pointer-events: none;
}

/* Parsel bilgileri kartı */

.payment-parcel-card {
    padding: 24px;
    border: 1px solid #cbded5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 14px 35px rgba(6, 62, 48, 0.07);
}

.payment-parcel-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.payment-parcel-card__number {
    display: flex;
    flex-direction: column;
}

.payment-parcel-card__number span {
    color: #073f31;
    font-size: 64px;
    font-weight: 950;
    line-height: 0.95;
}

.payment-parcel-card__number small {
    margin-top: 9px;
    color: #667a72;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.availability-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #edf4f1;
    color: #62756d;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.availability-badge.is-available {
    background: #dcf8e7;
    color: #087440;
}

.availability-badge.is-reserved {
    background: #fff2bf;
    color: #8a6100;
}

.availability-badge.is-sold {
    background: #ffe0e0;
    color: #ad2424;
}

/* Parsel alanı */

.payment-parcel-card__area {
    margin-bottom: 22px;
    padding: 19px 20px;
    border: 1px solid #d4e5dd;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #eef9f4,
            #f9fcfb
        );
}

.payment-parcel-card__area span {
    display: block;
    color: #078557;
    font-size: 32px;
    font-weight: 950;
    line-height: 1.1;
}

.payment-parcel-card__area small {
    display: block;
    margin-top: 5px;
    color: #667970;
    font-size: 13px;
    font-weight: 800;
}

/* Bilgi satırları */

.payment-details-list {
    overflow: hidden;
    border: 1px solid #d7e6df;
    border-radius: 16px;
}

.payment-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 13px 16px;
    border-bottom: 1px solid #e1ece7;
}

.payment-detail-row:last-child {
    border-bottom: 0;
}

.payment-detail-row span {
    color: #657970;
    font-size: 14px;
    font-weight: 700;
}

.payment-detail-row strong {
    color: #073f31;
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

/* Vade seçimi */

.payment-term-box {
    margin-top: 20px;
    padding: 19px;
    border: 1px solid #f0cf6e;
    border-radius: 16px;
    background: #fff9df;
}

.payment-term-box label {
    display: block;
    margin-bottom: 9px;
    color: #073f31;
    font-size: 15px;
    font-weight: 900;
}

.payment-term-box select {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 2px solid #d7b23e;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #073f31;
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.payment-term-box select:focus {
    border-color: #078557;
    box-shadow: 0 0 0 4px rgba(7, 133, 87, 0.13);
}

.payment-term-box small {
    display: block;
    margin-top: 9px;
    color: #756735;
    font-size: 12px;
    line-height: 1.5;
}

/* Ödeme özeti kartı */

.payment-summary-card {
    padding: 24px;
    border: 1px solid #cbded5;
    border-radius: 20px;
    background: #073f31;
    color: #ffffff;
    box-shadow:
        0 18px 42px rgba(3, 47, 36, 0.18);
}

.payment-summary-card__title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.payment-summary-card__title span {
    color: #ffffff;
    font-size: 25px;
    font-weight: 950;
}

.payment-summary-card__title small {
    color: #bcd4ca;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 51px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.payment-summary-row span {
    color: #c7d9d1;
    font-size: 14px;
    font-weight: 700;
}

.payment-summary-row strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    text-align: right;
}

.payment-summary-divider {
    height: 2px;
    margin: 18px 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            #f5b700,
            transparent
        );
}

/* Büyük ödeme kutuları */

.payment-summary-highlight {
    margin-top: 14px;
    padding: 18px;
    border-radius: 16px;
}

.payment-summary-highlight span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.payment-summary-highlight strong {
    display: block;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 950;
    line-height: 1.05;
}

.payment-summary-highlight small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.payment-summary-highlight--first {
    border: 1px solid #f7cf4c;
    background: #f5b700;
    color: #073f31;
}

.payment-summary-highlight--first span,
.payment-summary-highlight--first strong,
.payment-summary-highlight--first small {
    color: #073f31;
}

.payment-summary-highlight--monthly {
    border: 1px solid rgba(102, 223, 164, 0.55);
    background:
        linear-gradient(
            135deg,
            #0b744f,
            #079360
        );
    color: #ffffff;
}

.payment-summary-highlight--monthly span,
.payment-summary-highlight--monthly strong,
.payment-summary-highlight--monthly small {
    color: #ffffff;
}

/* Ödeme tarihi bilgisi */

.payment-date-information {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.payment-date-information span {
    display: block;
    color: #c3d8cf;
    font-size: 13px;
    font-weight: 800;
}

.payment-date-information strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
}

.payment-date-information small {
    display: block;
    margin-top: 6px;
    color: #bfd2ca;
    font-size: 12px;
    line-height: 1.5;
}

/* İşlem butonları */

.payment-calculator__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.payment-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 74px;
    padding: 14px 17px;
    border: 0;
    border-radius: 15px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.payment-action > span:first-child {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 21px;
}

.payment-action > span:last-child {
    display: flex;
    flex-direction: column;
}

.payment-action strong {
    font-size: 15px;
    font-weight: 950;
}

.payment-action small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.86;
}

.payment-action:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(0.96);
}

.payment-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.payment-action--pdf {
    background: #2767df;
    color: #ffffff;
}

.payment-action--whatsapp {
    background: #12a85d;
    color: #ffffff;
}

.payment-action--application {
    background: #f5b700;
    color: #073f31;
}

/* Hukuki bilgilendirme */

.payment-calculator__legal-note {
    margin-top: 20px;
    padding: 17px 19px;
    border-left: 5px solid #078557;
    border-radius: 12px;
    background: #eaf7f1;
    color: #445f55;
    font-size: 13px;
    line-height: 1.7;
}

.payment-calculator__legal-note strong {
    color: #073f31;
}

/* Tablet görünümü */

@media (max-width: 1000px) {
    .payment-calculator__content {
        grid-template-columns: 1fr;
    }

    .payment-calculator__actions {
        grid-template-columns: 1fr;
    }

    .payment-calculator__header {
        flex-direction: column;
    }

    .payment-status {
        align-self: flex-start;
    }
}

/* Telefon görünümü */

@media (max-width: 640px) {
    .payment-calculator {
        margin-top: 20px;
        padding: 17px;
        border-radius: 17px;
    }

    .payment-calculator__header {
        gap: 15px;
    }

    .payment-calculator__header h3 {
        font-size: 27px;
    }

    .payment-calculator__header p {
        font-size: 14px;
    }

    .payment-parcel-card,
    .payment-summary-card {
        padding: 17px;
        border-radius: 16px;
    }

    .payment-parcel-card__number span {
        font-size: 48px;
    }

    .payment-parcel-card__top {
        flex-direction: column;
    }

    .payment-summary-card__title {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-summary-card__title small {
        text-align: left;
    }

    .payment-detail-row,
    .payment-summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .payment-detail-row strong,
    .payment-summary-row strong {
        text-align: left;
    }

    .payment-summary-highlight strong {
        font-size: 31px;
    }

    .payment-action {
        min-height: 68px;
    }
}