/* Shared style for escrow.php and escrow_cizgi.php */

:root {
    --primary: #0ea5e9;
    --secondary: #0369a1;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(14, 116, 144, 0.22), transparent),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent),
                var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text);
}

.escrow-wrapper {
    width: 100%;
    max-width: 720px;
}

.brand {
    text-align: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.card-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, rgba(7, 40, 58, 0.98), rgba(14, 116, 144, 0.92), rgba(14, 165, 233, 0.88));
    color: #fff;
}

.card-header small {
    font-size: 12px;
    opacity: .85;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.36);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.4);
}

.domain-tag.mt-3 {
    margin-top: 12px;
}

.domain-tag span {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-tag-badge {
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.12);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.card-body {
    padding: 22px 22px 20px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.step-pill {
    flex: 1 1 120px;
    border-radius: 999px;
    background: #f8fafc;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

input,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    font-family: inherit;
    background: #f9fafb;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(0, 73, 144, 0.28);
    background: #ffffff;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

.price-info {
    font-size: 11px;
    color: var(--muted);
}

.actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(130deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.5);
}

.btn-primary:disabled {
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.trust-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    background: #eff6ff;
    color: #0ea5e9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(191, 219, 254, 1);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.errors {
    margin-bottom: 12px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    color: #b91c1c;
    font-size: 13px;
}

.errors ul {
    list-style: disc;
    padding-left: 18px;
}

.escrow-alert {
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 12px;
    font-size: 13px;
}

.escrow-alert-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.escrow-alert-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.escrow-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.escrow-alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.success-box {
    text-align: center;
    padding: 26px 20px 24px;
}

.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ecfdf3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #16a34a;
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.38);
}

.success-box h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.success-box p {
    font-size: 14px;
    color: var(--muted);
}

.success-domain {
    margin-top: 12px;
    font-weight: 600;
    color: var(--text);
}

.footer-note {
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

@media (max-width: 640px) {
    .card-header {
        padding: 18px 18px 14px;
    }

    .card-body {
        padding: 18px 16px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .domain-tag span {
        max-width: 160px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-badges {
        justify-content: flex-start;
    }
}
