

.fms-form {
    --fms-ink: #16182E;
    --fms-ink-soft: #4A4E70;
    --fms-muted: #7E83A3;
    --fms-surface: #EEF0F6;
    --fms-card: #FFFFFF;
    --fms-paper: #FBFAF6;
    --fms-line: #E4E7F0;
    --fms-line-2: #D6DAE8;
    --fms-brand: var(--tema-ana-renk, #3B4DE0);
    --fms-brand-50: #ECEEFC;
    --fms-mint: #12B886;
    --fms-danger: #E0455B;
    --fms-danger-50: #FCEDEF;
    --fms-radius: 16px;
    --fms-radius-sm: 11px;
    --fms-shadow-sm: 0 4px 14px rgba(22, 24, 46, .06);
    --fms-shadow: 0 16px 50px rgba(22, 24, 46, .12);
    --fms-shadow-card: 0 22px 50px -20px rgba(22, 24, 46, .55);
}

/* utils */
.fms-form .u-hidden,
.fms-page .u-hidden { display: none !important; }
.fms-page .u-w-full { width: 100%; }

/* page + grid */
.fms-page { color: var(--fms-ink); }
.fms-aciklama {
    margin: 0 0 18px;
    padding: 12px 16px;
    background: var(--fms-brand-50);
    border-radius: var(--fms-radius-sm);
    font-size: 14px;
    color: var(--fms-ink-soft);
}
.fms-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

/* Canli layout'ta #wrapper { overflow:hidden } (main.css) sticky'yi kiriyordu;
   odeme sayfasinda overflow:clip ile scroll-container olusturmadan yatay kirpmayi koru. */
#wrapper:has(.odemeYapSayfaContainer) { overflow: clip; }

/* ---------- receipt tape ---------- */
.fms-receipt { position: sticky; top: 88px; }
.fms-tape {
    background: var(--fms-paper);
    border-radius: 4px;
    box-shadow: var(--fms-shadow);
    padding: 26px 24px 22px;
    position: relative;
}
.fms-tape::before, .fms-tape::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 12px;
    background-size: 18px 12px;
    background-repeat: repeat-x;
}
.fms-tape::before {
    top: -11px;
    background-image: linear-gradient(135deg, var(--fms-paper) 50%, transparent 50%), linear-gradient(225deg, var(--fms-paper) 50%, transparent 50%);
}
.fms-tape::after {
}
.fms-tape-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--fms-line-2);
}
.fms-ttl { font-weight: 700; font-size: 16px; }
.fms-sub { font-size: 12px; color: var(--fms-muted); margin-top: 2px; }

.fms-tape-summary { padding: 14px 0 6px; }
.fms-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}
.fms-sum-lbl { color: var(--fms-muted); }
.fms-sum-val { font-weight: 600; }

.fms-total-row {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 2px dashed var(--fms-line-2);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.fms-total-lbl {
    font-size: 12px;
    color: var(--fms-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    flex: 0 0 auto;
}
/* Buyuk tutarlar rakam ortasindan bolunmesin: sayi butun kalir, sigmazsa alt satira gecer. */
.fms-total-amt { font-weight: 700; font-size: clamp(18px, 4vw, 24px); letter-spacing: -.5px; white-space: nowrap; min-width: 0; flex: 1 1 auto; text-align: right; }
.fms-sum-val { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.fms-field { min-width: 0; }
.fms-amt-wrap .fms-ctrl { font-size: clamp(14px, 2.5vw, 16px); min-width: 0; }
.fms-receipt { min-width: 0; }
.fms-tape-summary { min-width: 0; }

/* flip card preview */
.fms-pv-wrap { margin-top: 20px; perspective: 1100px; }
.fms-pv-flip {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    transition: transform .6s cubic-bezier(.4, .2, .2, 1);
    transform-style: preserve-3d;
}
.fms-pv-flip.fms-flipped { transform: rotateY(180deg); }
.fms-pv-face {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    backface-visibility: hidden;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--fms-shadow-card);
}
.fms-pv-front {
    background: radial-gradient(120% 130% at 12% 8%, rgba(255, 255, 255, .26), transparent 42%),
                linear-gradient(135deg, var(--fms-brand), #6A57F0);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}
.fms-pv-toprow { display: flex; justify-content: space-between; align-items: flex-start; }
.fms-pv-chip {
    width: 40px; height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #F4D27A, #D99E2B);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.fms-pv-net { font-weight: 700; letter-spacing: .02em; min-height: 20px; }
.fms-pv-num { font-size: 17px; letter-spacing: 2px; margin-top: auto; }
.fms-pv-meta { display: flex; justify-content: space-between; margin-top: 12px; gap: 14px; }
.fms-pv-meta-exp { text-align: right; }
.fms-pv-l {
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .62;
    margin-bottom: 3px;
}
.fms-pv-v {
    font-size: 12.5px;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.fms-pv-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #3A3F63, #16182E);
    display: flex;
    flex-direction: column;
}
.fms-pv-stripe { background: #0c0d18; height: 40px; margin-top: 18px; }
.fms-pv-cvc-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px 0;
}
.fms-pv-cvc {
    background: #fff;
    color: var(--fms-ink);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 5px;
    letter-spacing: 2px;
    min-width: 56px;
    text-align: center;
}
.fms-pv-cvc-lbl { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

.fms-tape-toggle { display: none; }

/* ---------- panel ---------- */
.fms-panel {
    background: var(--fms-card);
    border: 1px solid var(--fms-line);
    border-radius: var(--fms-radius);
    box-shadow: var(--fms-shadow-sm);
    overflow: hidden;
}

/* progress */
.fms-progress {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--fms-line);
    background: #FBFBFD;
}
.fms-pstep { display: flex; align-items: center; gap: 11px; flex: none; }
.fms-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    background: var(--fms-surface);
    color: var(--fms-muted);
    border: 2px solid var(--fms-line-2);
    transition: .3s;
}
.fms-nm { font-weight: 600; font-size: 14px; color: var(--fms-muted); transition: .3s; }
.fms-pstep.active .fms-dot {
    background: var(--fms-brand);
    border-color: var(--fms-brand);
    color: #fff;
    box-shadow: 0 0 0 4px var(--fms-brand-50);
}
.fms-pstep.active .fms-nm { color: var(--fms-ink); }
.fms-pstep.done .fms-dot { background: var(--fms-mint); border-color: var(--fms-mint); color: #fff; }
.fms-pstep.done .fms-nm { color: var(--fms-ink); }
.fms-pline {
    flex: 1;
    height: 2px;
    background: var(--fms-line-2);
    margin: 0 16px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.fms-pline::after {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--fms-p, 0%);
    background: var(--fms-mint);
    transition: width .4s ease;
}

/* steps */
.fms-steps-body { padding: 30px 28px; }
.fms-fstep { display: none; }
.fms-fstep.active { display: block; animation: fmsFade .35s ease; }
@keyframes fmsFade {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

/* rows + fields */
.fms-row { display: grid; gap: 16px; margin-bottom: 16px; }
.fms-row.fms-c2 { grid-template-columns: 1fr 1fr; }
.fms-row.fms-c2-1 { grid-template-columns: 1.4fr 1fr; }
.fms-field { display: flex; flex-direction: column; position: relative; }
.fms-field > label {
    font-size: 15px;
    font-weight: bold;
    color: var(--fms-ink-soft);
    margin-bottom: 7px;
}
.fms-ctrl {
    font-size: 14.5px;
    color: var(--fms-ink);
    padding: 12px 14px;
    border: 1.5px solid var(--fms-line-2);
    border-radius: var(--fms-radius-sm);
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.fms-ctrl::placeholder { color: #AFB3CB; }
.fms-ctrl:focus {
    outline: none;
    border-color: var(--fms-brand);
    box-shadow: 0 0 0 4px var(--fms-brand-50);
}
.fms-ctrl.mono {   letter-spacing: 1px; }
.fms-ctrl[readonly] { background: var(--fms-surface); cursor: not-allowed; }
select.fms-ctrl { appearance: none; cursor: pointer; padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237E83A3' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.fms-invalid.fms-ctrl, .fms-invalid input, input.fms-invalid {
    border-color: var(--fms-danger);
    background: var(--fms-danger-50);
}
.fms-error { color: var(--fms-danger); font-size: 12px; font-weight: 500; margin-top: 6px; display: block; }

/* amount */
.fms-amt-wrap { position: relative; }
.fms-amt-wrap .fms-sign {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--fms-muted);
    font-weight: 700;
    pointer-events: none;
}
.fms-amt-wrap .fms-ctrl { padding-left: 34px; font-weight: 700; font-size: clamp(14px, 2.5vw, 16px); min-width: 0; }

/* expiry */
.fms-expiry-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; }
#fms-f-expiry { align-self: start; }
.fms-sep { color: var(--fms-muted); }
/* Son kullanma validasyon uyarisi: select'in yanina degil, satirin altinda tam genislik. */
.fms-expiry-row .fms-error,
.fms-expiry-row label.error { grid-column: 1 / -1; order: 9; margin-top: 6px; }

/* kur info */
.fms-kur-info {
    margin: -4px 0 16px;
    padding: 10px 14px;
    background: var(--fms-brand-50);
    border-radius: var(--fms-radius-sm);
    font-size: 13px;
}

/* custom fields */
.fms-custom-fields { grid-template-columns: 1fr 1fr; }
.fms-choice-group { display: flex; flex-wrap: wrap; gap: 12px; }
.fms-choice { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }

/* captcha */
.fms-captcha-row { display: flex; align-items: center; gap: 12px; }
.fms-captcha-row .b2b-giris-captcha-img { border-radius: 8px; }
.captcha-title { font-size: 12.5px; font-weight: 600; color: var(--fms-ink-soft); margin-bottom: 7px; display: block; }

/* taksit */
.fms-taksit-container { margin: 4px 0 6px; }
.fms-taksit-head { font-weight: 600; font-size: 14.5px; margin: 8px 0 12px; }
.fms-taksit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fms-taksit-card { border: 1px solid var(--fms-line-2); border-radius: var(--fms-radius-sm); overflow: hidden; }
.fms-taksit-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #FBFBFD;
    border-bottom: 1px solid var(--fms-line);
    font-size: 12px;
    color: var(--fms-muted);
}
.fms-taksit-card-head img { max-height: 22px; width: auto; }
.fms-taksit-opts { display: flex; flex-direction: column; }
.fms-taksit-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    cursor: pointer;
    border-top: 1px dotted var(--fms-line-2);
    transition: background .15s;
}
.fms-taksit-opt:first-child { border-top: none; }
.fms-taksit-opt:hover { background: var(--fms-brand-50); }
.fms-taksit-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.fms-taksit-opt-main { display: flex; flex-direction: column; flex: 1; }
.fms-taksit-opt-baslik { font-weight: 600; font-size: 13.5px; }
.fms-taksit-opt-tutar { font-size: 12.5px; color: var(--fms-ink-soft); }
.fms-taksit-opt-min { font-size: 11px; color: var(--fms-muted); }

/* actions / buttons */
.fms-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--fms-line);
}
.fms-actions-end { justify-content: flex-end; }
.fms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .12s, background .2s, box-shadow .2s;
}
.fms-btn-primary {
    background: var(--fms-brand);
    color: #fff;
    box-shadow: 0 12px 26px -10px rgba(59, 77, 224, .7);
}
.fms-btn-primary:hover { transform: translateY(-1px); }
.fms-btn-primary:disabled, .fms-btn-primary.fms-loading { opacity: .65; cursor: not-allowed; transform: none; }
/* odemeYapBtn: renk/arkaplan tema'dan (master.blade .odemeYapBtn) gelir; fms-btn yalniz bicim verir. */
.fms-btn.odemeYapBtn { box-shadow: 0 12px 26px -10px rgba(22, 24, 46, .35); }
.fms-btn.odemeYapBtn:hover { transform: translateY(-1px); }
.fms-btn.fms-loading, .fms-btn.odemeYapBtn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.fms-btn-ghost { background: #fff; border-color: var(--fms-line-2); color: var(--fms-ink-soft); }
.fms-btn-ghost:hover { border-color: var(--fms-brand); color: var(--fms-brand); }
.fms-redirect-msg { margin-top: 10px; font-size: 13px; color: var(--fms-muted); text-align: center; }

/* sticky bar (mobile) */
.fms-sticky-bar { display: none; }

/* taksit loader/message (shared fallback) */
.fms-page .taksitLoader { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--fms-muted); font-size: 13px; }
.fms-page .taksitMessage { padding: 14px; border: 1.5px dashed var(--fms-line-2); border-radius: var(--fms-radius-sm); color: var(--fms-ink-soft); font-size: 13px; }

/* tema scope incelikleri */
.tema-modern .fms-tape { background: var(--fms-paper); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
    .fms-grid { grid-template-columns: 1fr; gap: 22px; }
    .fms-receipt { position: static; }
    .fms-tape.fms-collapsed .fms-tape-summary,
    .fms-tape.fms-collapsed .fms-pv-wrap { display: none; }
    .fms-tape.fms-collapsed .fms-total-row { border-top: none; padding-top: 12px; }
    .fms-tape-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 14px;
        padding: 11px 14px;
        background: #fff;
        border: 1.5px solid var(--fms-line-2);
        border-radius: var(--fms-radius-sm);
        color: var(--fms-brand);
        font-weight: 600;
        font-size: 13.5px;
        cursor: pointer;
    }
    /* Sabit bar yalniz Adim 2 (odeme) aktifken gorunur; Adim 1'de gelmez. */
    .fms-sticky-bar.fms-sticky-visible {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: #fff;
        border-top: 1px solid var(--fms-line);
        box-shadow: 0 -8px 24px rgba(22, 24, 46, .1);
        padding: 10px 16px;
        z-index: 50;
    }
    .fms-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .fms-sticky-lbl { font-size: 11px; color: var(--fms-muted); }
    .fms-sticky-val { font-weight: 700; font-size: 16px; }
    .fms-sticky-bar .fms-btn { padding: 12px 22px; }
    .fms-taksit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .fms-steps-body { padding: 22px 16px; }
    .fms-progress { padding: 18px; }
    .fms-row.fms-c2, .fms-row.fms-c2-1, .fms-custom-fields { grid-template-columns: 1fr; }
    .fms-taksit-grid { grid-template-columns: 1fr; }
    .fms-nm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fms-pv-flip, .fms-pline::after, .fms-fstep.active { transition: none; animation: none; }
}

/* ============ Tam ekran odeme yukleyicisi (payment.css ile ortak) ============ */
.payos-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 18, 46, .6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: payosLoaderIn .28s ease both;
}
.payos-loader.u-hidden { display: none !important; }
.payos-loader-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 22px;
    padding: 38px 34px 30px;
    text-align: center;
    box-shadow: 0 40px 90px -24px rgba(16, 18, 46, .55);
    animation: payosCardIn .35s cubic-bezier(.2, .9, .3, 1) both;
}
.payos-loader-ring {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: conic-gradient(var(--tema-ana-renk, #3B4DE0) 0 25%, rgba(125, 131, 163, .18) 25% 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    animation: payosSpin .9s linear infinite;
}
.payos-loader-baslik { font-size: 18px; font-weight: 700; color: #16182E; letter-spacing: -.01em; }
.payos-loader-aciklama { font-size: 13.5px; line-height: 1.5; color: #7E83A3; margin-top: 8px; }
.payos-loader-bar { height: 4px; border-radius: 99px; background: #EEF0F6; overflow: hidden; margin: 20px 0 16px; }
.payos-loader-bar span {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--tema-ana-renk, #3B4DE0), #6A57F0);
    animation: payosBar 1.3s ease-in-out infinite;
}
.payos-loader-guvenlik {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #12B886;
    background: #E7F8F1;
    padding: 7px 13px;
    border-radius: 99px;
}
@keyframes payosSpin { to { transform: rotate(360deg); } }
@keyframes payosBar {
    0% { transform: translateX(-120%); }
    60% { transform: translateX(280%); }
    100% { transform: translateX(280%); }
}
@keyframes payosLoaderIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes payosCardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .payos-loader, .payos-loader-card { animation: none; }
    .payos-loader-ring { animation: payosSpin 1.6s linear infinite; }
    .payos-loader-bar span { animation: none; width: 100%; }
}

.odemeYapForm input, .odemeYapForm select, .odemeYapForm textarea {
    font-size: 13px;
    font-weight: bold;
    font-family: arial;
}