/* MADDE 7: bagis akisi (bagis ozeti > odeme bilgileri > bagis tamamlandi) sade gorunum.
   Sadece bagis ekranlarinda kullanilir; tema genelini etkilemez. */

:root {
    --donation-color: #4aa1a0;
    --donation-line: #e4e7e7;
    --donation-muted: #7b8382;
}

.donation-page {
    background: #f7f8f8;
    padding: 45px 0 70px;
}

/* --- ADIM GOSTERGESI --- */

.donation-steps {
    display: flex;
    max-width: 760px;
    margin: 0 auto 35px;
    padding: 0;
    list-style: none;
}

.donation-steps li {
    flex: 1;
    position: relative;
    text-align: center;
}

/* Adimlar arasindaki cizgi: her adimin sol yarisini onceki adima baglar. */
.donation-steps li:before,
.donation-steps li:after {
    content: "";
    position: absolute;
    top: 26px;
    height: 2px;
    background: var(--donation-line);
    width: 50%;
}

.donation-steps li:before { left: 0; }
.donation-steps li:after  { right: 0; }
.donation-steps li:first-child:before,
.donation-steps li:last-child:after { display: none; }

.donation-steps .step-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--donation-line);
    color: var(--donation-muted);
    font-size: 20px;
}

.donation-steps .step-title {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--donation-muted);
}

.donation-steps li.is-active .step-icon {
    background: var(--donation-color);
    border-color: var(--donation-color);
    color: #fff;
}

.donation-steps li.is-active .step-title,
.donation-steps li.is-done .step-title { color: #2d3a39; }

.donation-steps li.is-done .step-icon {
    border-color: var(--donation-color);
    color: var(--donation-color);
}

.donation-intro {
    max-width: 640px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--donation-muted);
}

/* --- KUTULAR --- */

.donation-card {
    background: #fff;
    border: 1px solid var(--donation-line);
    border-radius: 12px;
    margin-bottom: 22px;
}

.donation-card > h5 {
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid var(--donation-line);
    font-size: 17px;
    font-weight: 700;
    color: #2d3a39;
}

.donation-card > .donation-card-body { padding: 24px; }

/* --- BAGIS OZETI SATIRLARI --- */

.donation-item + .donation-item {
    margin-top: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--donation-line);
}

.donation-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.donation-item-name {
    flex: 1 1 200px;
    font-size: 17px;
    font-weight: 600;
    color: #2d3a39;
}

.donation-item-amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--donation-color);
    white-space: nowrap;
    padding: 0 18px;
}

.donation-item-remove {
    color: #c0c6c5;
    font-size: 18px;
    line-height: 1;
}

.donation-item-remove:hover { color: #d9534f; }

.donation-item-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--donation-muted);
}

/* Not alani: tiklayinca acilir (vekalet alani zorunlu oldugu icin her zaman acik durur). */

.donation-note-toggle {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--donation-color);
    cursor: pointer;
}

.donation-note-toggle:hover { text-decoration: underline; }

.donation-note { margin-top: 12px; }
.donation-note[hidden] { display: none; }

.donation-proxy {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--donation-line);
    border-radius: 10px;
    background: #fbfcfc;
}

.donation-proxy .proxy-consent {
    display: flex;
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #4a5453;
}

.donation-proxy .proxy-consent input { margin: 4px 10px 0 0; }

/* --- OZET KUTUSU --- */

.donation-summary { position: sticky; top: 20px; }

.donation-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.donation-summary li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--donation-line);
    font-size: 15px;
}

.donation-summary li span { font-weight: 600; white-space: nowrap; padding-left: 12px; }

.donation-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f2f6f6;
    font-weight: 700;
    color: #2d3a39;
}

.donation-total span { color: var(--donation-color); }

/* --- FORM --- */

.donation-page label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #2d3a39;
}

.donation-page .form-control,
.donation-page .utf-with-border {
    height: auto;
    padding: 12px 15px;
    border: 1px solid var(--donation-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.donation-page textarea.utf-with-border { height: auto; }

.donation-page .form-control:focus,
.donation-page .utf-with-border:focus {
    border-color: var(--donation-color);
    outline: none;
}

.donation-method {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.donation-method label {
    flex: 1 1 190px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--donation-line);
    border-radius: 10px;
    cursor: pointer;
    text-transform: none;
    font-size: 15px;
    font-weight: 600;
}

.donation-method label input { margin-right: 10px; }
.donation-method label.is-selected {
    border-color: var(--donation-color);
    background: #f2f8f8;
}

.donation-submit {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    background: var(--donation-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .4px;
}

.donation-submit:hover { background: #3d8b8a; color: #fff; }

.donation-secure {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--donation-muted);
}

.donation-back {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    color: var(--donation-muted);
}

.donation-back:hover { color: var(--donation-color); }

/* --- ODEME ROZETLERI (kart semalari + guvenlik) --- */

.payment-badges {
    margin-top: 18px;
    text-align: center;
}

.payment-badges-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

/* Aralik icin flex gap yerine margin: eski Safari surumleri flex gap desteklemiyor. */
.payment-badges-cards li {
    line-height: 0;
    margin: 0 9px 10px;
}

/* Logolar farkli oranlarda; yukseklige gore normalize edilir. */
.payment-badges-cards img {
    height: 26px;
    width: auto;
    max-width: 100%;
}

.payment-badges-secure img {
    height: 34px;
    width: auto;
    max-width: 100%;
    opacity: .85;
}

@media (max-width: 767px) {

    .donation-page { padding: 25px 0 45px; }
    .donation-steps .step-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
    .donation-steps li:before,
    .donation-steps li:after { top: 21px; }
    .donation-steps .step-title { font-size: 12px; margin-top: 8px; }
    .donation-card > h5,
    .donation-card > .donation-card-body { padding: 16px; }
    .donation-item-amount { padding: 0 10px 0 0; }
    .donation-summary { position: static; }
    .payment-badges-cards img { height: 22px; }
    .payment-badges-secure img { height: 30px; }

}

/* --- SEPETE EKLENDI PENCERESI (donation-added.php) --- */

.donation-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(23, 33, 33, .55);
}

.donation-popup-box {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 32px 28px 26px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.donation-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #c0c6c5;
    cursor: pointer;
}

.donation-popup-close:hover { color: #2d3a39; }

.donation-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #eaf4f4;
    color: var(--donation-color);
    font-size: 26px;
}

.donation-popup-box h5 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #2d3a39;
}

.donation-popup-item {
    margin: 0;
    font-size: 15px;
    color: var(--donation-muted);
}

.donation-popup-box .donation-total { margin-bottom: 18px; }

.donation-popup-box .donation-submit {
    display: block;
    text-align: center;
    text-decoration: none;
}

.donation-popup-box .donation-submit:hover { color: #fff; }

.donation-popup-continue {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--donation-muted);
    cursor: pointer;
}

.donation-popup-continue:hover { color: var(--donation-color); }
