/* ============================================================
   SALIK RECHARGE — Bağımsız Tema (salik-theme.css)
   main.css'e BAĞIMLI DEĞİLDİR. Tüm sınıflar sx- önekli.
   Her buton ve yazı dümdüz / ortalanmış konumlardadır.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sx-green: #00a94f;
    --sx-green-dark: #068f43;
    --sx-navy: #04344b;
    --sx-ink: #1d1d1f;
    --sx-gray: #6e6e73;
    --sx-line: #e3e6ea;
}

html, body { height: 100%; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background: #f4f6f8;
    color: var(--sx-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.sx-header {
    background: linear-gradient(90deg, var(--sx-navy) 0%, #06553f 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(4,52,75,.22);
}
.sx-header__logo img { height: 34px; display: block; }
.sx-header__lang {
    color: #cfe3dd;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    transition: all .15s;
}
.sx-header__lang:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   İÇERİK KARTI
   ============================================================ */
.sx-main {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 16px 46px;
}
.sx-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--sx-line);
    box-shadow: 0 4px 22px rgba(20,40,80,.07);
    padding: 34px 38px 40px;
}

.sx-card h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--sx-navy);
    margin-bottom: 6px;
}
.sx-card h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--sx-gray);
    margin-bottom: 28px;
}
.sx-section-title {
    display: block;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    color: var(--sx-ink);
    margin: 4px 0 14px;
}

/* ============================================================
   ADIM GÖSTERGESİ (1 > 2 > 3)  — kaymasız, ortalanmış
   ============================================================ */
.sx-steps {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
    max-width: 560px;
}
.sx-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}
/* bağlantı çizgisi: iki dairenin tam ortasından geçer */
.sx-steps li + li::before {
    content: '';
    position: absolute;
    top: 21px;                            /* daire merkezi (42/2) */
    left: calc(-50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: #cfd8dc;
}
.sx-steps li.sx-active + li::before,
.sx-steps li.sx-done + li::before { background: var(--sx-green); }

.sx-step-dot {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #eceff1;
    border: 2px solid #cfd8dc;
    color: #90a4ae;
    font-size: 16px; font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.sx-steps li.sx-active .sx-step-dot {
    background: var(--sx-green);
    border-color: var(--sx-green);
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,169,79,.35);
}
.sx-steps li.sx-done .sx-step-dot {
    background: #e6f7ee;
    border-color: var(--sx-green);
    color: var(--sx-green);
}
.sx-step-label {
    margin-top: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #90a4ae;
    line-height: 1.3;
}
.sx-steps li.sx-active .sx-step-label { color: var(--sx-navy); }
.sx-steps li.sx-done .sx-step-label   { color: var(--sx-green); }

/* ============================================================
   FORM
   ============================================================ */
.sx-field { margin-bottom: 18px; }
.sx-field > label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #455a64;
    margin-bottom: 7px;
}
.sx-field input[type="text"],
.sx-field input[type="tel"],
.sx-field select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cfd8dc;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--sx-ink);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.sx-field input:focus,
.sx-field select:focus {
    border-color: var(--sx-green);
    box-shadow: 0 0 0 3px rgba(0,169,79,.12);
}
/* +971 / AED ön eki: flex input-grubu (absolute yok, kayma imkansız) */
.sx-field .has-prefix {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid #cfd8dc;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.sx-field .has-prefix .sx-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f4f6f8;
    border-right: 1.5px solid #e3e6ea;
    font-weight: 800;
    font-size: 15px;
    color: var(--sx-navy);
    white-space: nowrap;
    flex-shrink: 0;
}
.sx-field .has-prefix input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: none;
    border-radius: 0;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: transparent;
}
.sx-field .has-prefix:focus-within {
    border-color: var(--sx-green);
    box-shadow: 0 0 0 3px rgba(0,169,79,.12);
}
.sx-field .sx-hint {
    display: block;
    font-size: 12.5px;
    color: #d32f2f;
    margin-top: 6px;
}

/* Plaka: kod + numara yan yana, eşit ve düz */
.sx-plate-row { display: flex; gap: 12px; }
.sx-plate-row .sx-field { flex: 1; margin-bottom: 0; }
.sx-plate-row .sx-field:first-child { flex: 0 0 130px; }
.sx-plate-row { margin-bottom: 18px; }

/* ============================================================
   TUTAR SEÇİMİ (50 / 100 / 150 / 200)
   ============================================================ */
.sx-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.sx-amounts input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sx-amounts label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border: 2px solid #cfd8dc;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #455a64;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.sx-amounts input:checked + label {
    border-color: var(--sx-green);
    background: #e6f7ee;
    color: var(--sx-navy);
    box-shadow: 0 4px 14px rgba(0,169,79,.18);
}
.sx-amounts input:focus-visible + label { outline: 2px dashed var(--sx-green); outline-offset: 2px; }

.sx-or {
    text-align: center;
    font-size: 13.5px;
    color: var(--sx-gray);
    margin: 6px 0 14px;
}
.sx-or a { color: var(--sx-green); font-weight: 700; text-decoration: none; }
.sx-or a:hover { text-decoration: underline; }

/* Hata kutusu (form doğrulama hataları) */
.sx-error-box {
    background: #ffecec;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
}
.sx-error-box div {
    color: #b00020;
    font-size: 13.5px;
    font-weight: 600;
    padding: 3px 0;
}

/* ============================================================
   BUTONLAR — her zaman ortada, dümdüz
   ============================================================ */
.sx-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    text-align: center;
}
.sx-btn--primary {
    background: var(--sx-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,169,79,.25);
}
.sx-btn--primary:hover { filter: brightness(.94); transform: translateY(-1px); }
.sx-btn--ghost {
    background: #fff;
    color: #546e7a;
    border: 2px solid #cfd8dc;
}
.sx-btn--ghost:hover { border-color: #90a4ae; color: #37474f; }

/* ============================================================
   RECHARGE SEÇİM KARTI (index.php)
   ============================================================ */
.sx-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.sx-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 230px;
    padding: 30px 20px;
    border: 2px solid var(--sx-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: all .15s;
}
.sx-choice:hover {
    border-color: var(--sx-green);
    box-shadow: 0 12px 28px rgba(0,169,79,.14);
    transform: translateY(-3px);
}
.sx-choice img { width: 56px; height: auto; }
.sx-choice strong { font-size: 15.5px; font-weight: 800; color: var(--sx-navy); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.sx-footer {
    border-top: 1px solid var(--sx-line);
    background: #fff;
    padding: 22px 20px;
    text-align: center;
}
.sx-footer p { font-size: 12.5px; color: #90a4ae; line-height: 1.6; }

/* ============================================================
   MOBİL
   ============================================================ */
@media (max-width: 640px) {
    .sx-main { padding: 20px 12px 36px; }
    .sx-card { padding: 24px 18px 28px; border-radius: 12px; }
    .sx-card h1 { font-size: 23px; }

    .sx-steps li + li::before { top: 17px; left: calc(-50% + 23px); width: calc(100% - 46px); }
    .sx-step-dot { width: 34px; height: 34px; font-size: 13px; }
    .sx-step-label { font-size: 11px; }

    .sx-amounts { grid-template-columns: repeat(2, 1fr); }
    .sx-amounts label { height: 48px; font-size: 16px; }

    .sx-plate-row { flex-direction: row; }
    .sx-plate-row .sx-field:first-child { flex: 0 0 110px; }

    .sx-actions { flex-direction: column; }
    .sx-btn { width: 100%; min-width: 0; }

    .sx-choice { width: 100%; max-width: 300px; }
}
