/* ==========================================================================
   Get4Trip — kart ödeme bölümü (canlı kart önizlemesi, alanlar, özet kartları)
   Müşteri: Home/BookingPayment, Home/PaymentURL (_Layout, g4t-theme.css sonrası)
   Admin:   Admin/BookingPayment, ExtraPayment, AgencyPayment (_LayoutAdmin + g4t-payment-admin.css)
   Eskiden g4t-theme.css içinde "26. Payment pages" bölümüydü; admin de kullansın diye ayrıldı.
   ========================================================================== */

.g4t-checkout { overflow: hidden; }
.g4t-pay-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1.5rem 1.75rem 1.1rem; border-bottom: 1px solid var(--g4t-line);
}
.g4t-pay-title { font-size: 1.45rem !important; font-weight: 800 !important; margin: 0 0 .25rem; letter-spacing: -.01em; }
.g4t-pay-sub { margin: 0; color: var(--g4t-muted); font-size: .92rem; }
.g4t-pay-brands { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.g4t-brand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 32px; border-radius: 8px; border: 1px solid var(--g4t-line); background: #fff;
    font-size: 1.45rem; color: #1E3A8A; transition: opacity .2s, transform .2s, box-shadow .2s;
}
.g4t-brand svg, .g4t-brand i { color: inherit !important; }
.g4t-brand[data-brand="mastercard"] { color: #EB001B; }
.g4t-brand[data-brand="amex"] { color: #2E77BC; }
.g4t-brand img { width: 32px; height: auto; }
.g4t-brand.is-off { opacity: .3; }
.g4t-brand.is-on { box-shadow: 0 0 0 2px var(--g4t-blue); transform: translateY(-1px); }

.g4t-pay-body {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: start;
    padding: 1.6rem 1.75rem .6rem;
}
.g4t-pay-row { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: .75rem; }
.g4t-pay-fields label { font-weight: 600; font-size: .85rem; color: var(--g4t-ink); margin-bottom: .35rem; }
.g4t-mono { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.g4t-pay-foot { padding: .4rem 1.75rem 1.6rem; }
.g4t-pay-btn { min-height: 56px; font-size: 1.08rem !important; font-weight: 700 !important; }
.g4t-pay-btn.is-loading { opacity: .85; cursor: progress; }
.g4t-spinner {
    display: inline-block; width: 18px; height: 18px; margin-right: .5rem; vertical-align: -3px;
    border: 2.5px solid rgba(15, 23, 42, .25); border-top-color: var(--g4t-ink); border-radius: 50%;
    animation: g4t-spin .7s linear infinite;
}
@keyframes g4t-spin { to { transform: rotate(360deg); } }
.g4t-pay-terms { text-align: center; font-size: .82rem; color: var(--g4t-muted); margin: .75rem 0 0; }
.g4t-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--g4t-line);
    font-size: .8rem; color: var(--g4t-muted); font-weight: 600;
}
.g4t-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.g4t-trust svg, .g4t-trust i { color: var(--g4t-green) !important; }

/* Kart önizlemesi */
.g4t-cc-wrap { perspective: 1200px; }
.g4t-cc {
    position: relative; width: 100%; aspect-ratio: 1.586 / 1; max-width: 340px; margin: 0 auto;
    transform-style: preserve-3d; transition: transform .6s var(--g4t-ease);
}
.g4t-cc.is-flipped { transform: rotateY(180deg); }
.g4t-cc-face {
    position: absolute; inset: 0; border-radius: 16px; padding: 1.1rem 1.25rem;
    color: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, #1D4ED8 0%, #0B1F3A 55%, #081427 100%);
    box-shadow: 0 18px 36px rgba(11, 31, 58, .28);
    display: flex; flex-direction: column; justify-content: space-between;
}
.g4t-cc-face::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.g4t-cc[data-brand="visa"] .g4t-cc-face { background: radial-gradient(120% 140% at 0% 0%, #2563EB 0%, #1E3A8A 55%, #0B1F3A 100%); }
.g4t-cc[data-brand="mastercard"] .g4t-cc-face { background: radial-gradient(120% 140% at 0% 0%, #F97316 0%, #9A3412 50%, #1F2937 100%); }
.g4t-cc[data-brand="amex"] .g4t-cc-face { background: radial-gradient(120% 140% at 0% 0%, #38BDF8 0%, #0369A1 55%, #0C4A6E 100%); }
.g4t-cc[data-brand="troy"] .g4t-cc-face { background: radial-gradient(120% 140% at 0% 0%, #14B8A6 0%, #0F766E 55%, #134E4A 100%); }
.g4t-cc-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.g4t-cc-chip {
    width: 42px; height: 32px; border-radius: 7px;
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 60%, #B45309 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.g4t-cc-logo { font-size: 2rem; line-height: 1; }
.g4t-cc-logo svg, .g4t-cc-logo i, .g4t-cc-logo b { color: #fff !important; }
.g4t-cc-number {
    position: relative; z-index: 1; font-size: 1.28rem; font-weight: 600; letter-spacing: .12em;
    font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.g4t-cc-bottom { display: flex; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; font-weight: 600; }
.g4t-cc small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; font-weight: 600; }
.g4t-cc-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .04em; }
.g4t-cc-back { transform: rotateY(180deg); padding: 1.1rem 0; justify-content: flex-start; gap: 1rem; }
.g4t-cc-stripe { height: 42px; background: #0F172A; margin-top: .4rem; }
.g4t-cc-sign {
    margin: 0 1.25rem; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end;
    padding: 0 .8rem; color: var(--g4t-ink); font-weight: 700; letter-spacing: .2em;
    background: repeating-linear-gradient(45deg, #F8FAFC 0 8px, #E2E8F0 8px 16px);
}
.g4t-cc-hint { margin: 0 1.25rem; text-align: right; }

/* Özet kartları */
.g4t-sum { overflow: hidden; }
.g4t-sum-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.35rem; background: var(--g4t-navy); color: #fff; font-weight: 700;
}
.g4t-sum-head svg, .g4t-sum-head i { color: rgba(255, 255, 255, .7) !important; }
.g4t-sum-head.is-light { background: #fff; color: var(--g4t-ink); border-bottom: 1px solid var(--g4t-line); }
.g4t-sum-head.is-light svg, .g4t-sum-head.is-light i { color: var(--g4t-blue) !important; }
.g4t-sum-body { padding: 1.1rem 1.35rem 1.25rem; }
.g4t-sum-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .45rem 0; font-size: .95rem; color: var(--g4t-text);
}
.g4t-sum-row b { color: var(--g4t-ink); font-weight: 600; text-align: right; word-break: break-word; }
.g4t-sum-row.is-discount, .g4t-sum-row.is-discount b { color: var(--g4t-green); }
.g4t-sum-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: .6rem; padding-top: .85rem; border-top: 1px dashed var(--g4t-line-2);
    font-weight: 700; color: var(--g4t-ink);
}
.g4t-sum-total b { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; }
.g4t-sum-note {
    margin-top: .9rem; padding: .6rem .8rem; border-radius: 10px;
    background: var(--g4t-green-50); color: #0F7A45; font-size: .82rem; font-weight: 600;
}
.g4t-sum-note svg, .g4t-sum-note i { color: var(--g4t-green) !important; margin-right: .3rem; }
.g4t-detail-list { list-style: none; margin: 0; padding: .4rem 1.35rem .9rem; }
.g4t-detail-list li {
    display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid var(--g4t-line);
    color: var(--g4t-ink); font-weight: 600; font-size: .93rem;
}
.g4t-detail-list li:last-child { border-bottom: 0; }
.g4t-detail-list li > svg, .g4t-detail-list li > i {
    flex: 0 0 34px; width: 34px !important; height: 34px; padding: 9px; border-radius: 10px;
    background: var(--g4t-blue-50); color: var(--g4t-blue) !important;
}
.g4t-detail-list small { display: block; color: var(--g4t-muted); font-weight: 500; font-size: .76rem; margin-bottom: .1rem; }

.g4t-paid { padding: 2rem 1.75rem; }
.g4t-paid-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    background: var(--g4t-green-50); color: var(--g4t-green);
}
.g4t-paid-icon svg { color: var(--g4t-green) !important; }

@media (max-width: 991.98px) {
    .g4t-pay-body { grid-template-columns: 1fr; gap: 1.25rem; }
    .g4t-cc { max-width: 320px; }
}
@media (max-width: 575.98px) {
    .g4t-pay-head { flex-direction: column; padding: 1.2rem 1.1rem 1rem; }
    .g4t-pay-body { padding: 1.2rem 1.1rem .4rem; }
    .g4t-pay-foot { padding: .3rem 1.1rem 1.3rem; }
    .g4t-pay-row { grid-template-columns: 1fr 1fr; }
    .g4t-pay-row > .form-group:last-child { grid-column: 1 / -1; }
    .g4t-cc-number { font-size: 1.1rem; }
}

