/* Scoped styles for Nil Bilişim Online Ödeme & Sözleşme sayfaları */
.sub-page-top-section.odeme-page-banner {
    margin-top: 0;
    padding: 24px 0 26px 0;
    background-color: #255f97;
    background-image: linear-gradient(135deg, #245b91 0%, #3178ba 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.odeme-page-banner .sub-page-top-flex {
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
}

.odeme-page-banner .sub-page-h1 {
    margin: 0 0 6px 0;
}

.odeme-page-section {
    background-color: #f7f9fc;
    padding: 36px 0 64px 0;
    color: #1e293b;
}

.odeme-page-section *,
.odeme-page-section *::before,
.odeme-page-section *::after,
.odeme-modal-backdrop *,
.odeme-modal-backdrop *::before,
.odeme-modal-backdrop *::after {
    box-sizing: border-box;
}

.odeme-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Trust & card brand bar */
.odeme-trust-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.odeme-trust-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.odeme-bank-logo {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}

.odeme-trust-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.odeme-trust-sub {
    font-size: 12.5px;
    color: #475569;
    margin-top: 2px;
}

.odeme-trust-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.odeme-ssl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.odeme-brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* Main 2-column grid */
.odeme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

.odeme-sidebar {
    position: sticky;
    top: 24px;
}

.odeme-card {
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.odeme-card:last-child {
    margin-bottom: 0;
}

.odeme-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.odeme-step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3178ba;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.odeme-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.odeme-card-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Form layout & controls */
.odeme-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.odeme-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.odeme-field {
    margin-bottom: 16px;
}

.odeme-field:last-child {
    margin-bottom: 0;
}

.odeme-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.4;
}

.odeme-required {
    color: #dc2626;
    margin-left: 2px;
}

.odeme-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.odeme-input,
.odeme-select,
.odeme-textarea {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.odeme-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.odeme-textarea {
    height: auto;
    min-height: 82px;
    resize: vertical;
}

.odeme-input-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding-right: 54px;
}

.odeme-input-cardnum {
    padding-right: 92px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.odeme-input:focus,
.odeme-select:focus,
.odeme-textarea:focus {
    outline: none;
    border-color: #0082f3;
    box-shadow: 0 0 0 3px rgba(0, 130, 243, 0.14);
}

.odeme-input::placeholder,
.odeme-textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.odeme-currency-suffix {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #3178ba;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: none;
}

.odeme-card-brand-pill {
    position: absolute;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    pointer-events: none;
    text-transform: uppercase;
}

.odeme-card-brand-pill.is-visa {
    background: #eff6ff;
    color: #1d4ed8;
}

.odeme-card-brand-pill.is-mc {
    background: #fff7ed;
    color: #c2410c;
}

.odeme-card-brand-pill.is-troy {
    background: #ecfeff;
    color: #0e7490;
}

.odeme-field-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.odeme-input.odeme-field-error,
.odeme-select.odeme-field-error,
.odeme-textarea.odeme-field-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.odeme-error-text {
    display: none;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

.odeme-error-text.is-visible {
    display: block;
}

.odeme-form-alert {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
}

.odeme-form-alert.is-visible {
    display: block;
}

/* Visual credit card preview */
.odeme-card-preview {
    background: linear-gradient(135deg, #1b365d 0%, #3178ba 55%, #0f172a 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(27, 54, 93, 0.24);
}

.odeme-card-preview::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -60px;
    right: -45px;
    pointer-events: none;
}

.odeme-card-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.odeme-card-brand-display {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f8fafc;
}

.odeme-card-preview-num {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 20px;
    word-break: break-all;
}

.odeme-card-preview-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.odeme-card-preview-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 3px;
}

.odeme-card-preview-val {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Installment table */
.odeme-installment-wrap {
    overflow-x: auto;
    border: 1px solid #dce4ee;
    border-radius: 8px;
}

.odeme-installment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #ffffff;
}

.odeme-installment-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #dce4ee;
}

.odeme-installment-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f6;
    color: #1e293b;
    vertical-align: middle;
}

.odeme-inst-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.odeme-inst-row:last-child td {
    border-bottom: none;
}

.odeme-inst-row:hover {
    background-color: #f8fbff;
}

.odeme-inst-row.is-selected {
    background-color: #eff6ff;
}

.odeme-inst-row.is-selected td:first-child {
    box-shadow: inset 3px 0 0 #3178ba;
}

.odeme-inst-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.odeme-inst-radio {
    width: 17px;
    height: 17px;
    accent-color: #3178ba;
    cursor: pointer;
    margin: 0;
}

.odeme-inst-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
}

.odeme-inst-badge.is-rate {
    background: #fef3c7;
    color: #92400e;
}

.odeme-world-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
}

/* Agreements */
.odeme-agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.odeme-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafcff;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
}

.odeme-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #3178ba;
    flex-shrink: 0;
    cursor: pointer;
}

.odeme-check-item.odeme-field-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.odeme-agree-link {
    color: #3178ba;
    font-weight: 600;
    text-decoration: underline;
}

.odeme-agree-link:hover {
    color: #0082f3;
}

/* Submit button */
.odeme-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3178ba 0%, #0082f3 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(49, 120, 186, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.odeme-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #246199 0%, #0070d2 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(49, 120, 186, 0.36);
}

.odeme-submit-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.odeme-submit-note {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

/* Sidebar summary & info cards */
.odeme-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.odeme-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
}

.odeme-summary-row strong {
    color: #1e293b;
}

.odeme-summary-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px dashed #dce4ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.odeme-summary-total-val {
    font-size: 21px;
    color: #3178ba;
}

.odeme-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.odeme-info-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.odeme-info-list li {
    margin-bottom: 6px;
}

.odeme-legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odeme-legal-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.odeme-legal-links a:hover {
    border-color: #3178ba;
    color: #3178ba;
}

.odeme-kunye-list {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.65;
}

.odeme-kunye-list p {
    margin: 0 0 6px 0;
}

.odeme-wire-cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #3178ba;
    text-decoration: underline;
}

/* Modal for reading agreements without losing form values */
.odeme-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.odeme-modal-backdrop.is-open {
    display: flex;
}

.odeme-modal {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.odeme-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.odeme-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.odeme-modal-close {
    border: none;
    background: #e2e8f0;
    color: #1e293b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.odeme-modal-close:hover {
    background: #cbd5e1;
}

.odeme-modal-body {
    padding: 22px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}

.odeme-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
}

/* Result page (sonuc.php) */
.odeme-result-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.odeme-result-card {
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.odeme-result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odeme-result-card.is-success .odeme-result-icon {
    background: #dcfce7;
    color: #15803d;
}

.odeme-result-card.is-error .odeme-result-icon {
    background: #fee2e2;
    color: #dc2626;
}

.odeme-result-card.is-pending .odeme-result-icon {
    background: #fef3c7;
    color: #b45309;
}

.odeme-result-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.odeme-result-message {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.odeme-receipt-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 20px 0 26px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.odeme-receipt-table th,
.odeme-receipt-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.odeme-receipt-table th {
    width: 42%;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.odeme-receipt-table td {
    color: #0f172a;
    font-weight: 600;
}

.odeme-receipt-table tr:last-child th,
.odeme-receipt-table tr:last-child td {
    border-bottom: none;
}

.odeme-result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.odeme-btn-primary,
.odeme-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.odeme-btn-primary {
    background: #3178ba;
    color: #ffffff;
}

.odeme-btn-primary:hover {
    background: #2563eb;
}

.odeme-btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.odeme-btn-secondary:hover {
    background: #f1f5f9;
}

/* Legal document standalone pages */
.odeme-legal-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.odeme-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.odeme-legal-pill {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.odeme-legal-pill:hover {
    border-color: #3178ba;
    color: #3178ba;
}

.odeme-legal-pill.is-active {
    background: #3178ba;
    border-color: #3178ba;
    color: #ffffff;
}

.odeme-legal-card {
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    padding: 32px 34px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.odeme-legal-body h2 {
    margin: 0 0 14px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.odeme-legal-body h3 {
    margin: 22px 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.odeme-legal-body p,
.odeme-legal-body li {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
}

.odeme-legal-body ul,
.odeme-legal-body ol {
    padding-left: 20px;
    margin: 8px 0 14px 0;
}

.odeme-legal-meta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 14px 0 18px 0;
    font-size: 13.5px;
    line-height: 1.65;
}

.odeme-legal-footer-cta {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .odeme-layout {
        grid-template-columns: 1fr;
    }

    .odeme-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .odeme-card,
    .odeme-legal-card,
    .odeme-result-card {
        padding: 20px 18px;
    }

    .odeme-grid-2,
    .odeme-grid-3 {
        grid-template-columns: 1fr;
    }

    .odeme-trust-bar {
        padding: 14px 16px;
    }

    .odeme-card-preview-num {
        font-size: 16px;
        letter-spacing: 0.1em;
    }

    .odeme-installment-table th,
    .odeme-installment-table td {
        padding: 10px 9px;
        font-size: 12.5px;
    }
}

@media print {
    .menu-section,
    .sub-page-top-section,
    .bilisim-call-section,
    .footer,
    .odeme-result-actions {
        display: none !important;
    }

    .odeme-page-section {
        background: #ffffff;
        padding: 0;
    }

    .odeme-result-card {
        border: 1px solid #cbd5e1;
        box-shadow: none;
    }
}
