/* Sentari Proposals — Public Proposal Styles */

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-accent: #0f172a;
    --color-accent-light: #334155;
    --color-success: #059669;
    --color-error: #dc2626;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Loading & Not Found */
.proposal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--color-muted);
    gap: 1rem;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.proposal-not-found {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--color-muted);
}

.not-found-icon { margin-bottom: 1.5rem; color: var(--color-border); }
.proposal-not-found h1 { color: var(--color-text); margin: 0 0 0.5rem; font-size: 1.5rem; }
.proposal-not-found p { margin: 0; }

/* Page Layout */
.proposal-page {
    min-height: 100vh;
    padding-top: 56px;
}

/* Sticky Nav */
.proposal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
}

.nav-brand {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.nav-steps {
    display: flex;
    gap: 0.25rem;
}

.mobile-step-select {
    display: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text);
    background: #fff;
}

.nav-step {
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.nav-step:hover {
    background: #f1f5f9;
    color: var(--color-text);
}

.nav-step.active {
    background: var(--color-accent);
    color: white;
}

.nav-step.completed {
    color: var(--color-success);
}

.nav-page {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-print {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--color-muted);
    transition: all 0.15s;
}

.nav-print:hover {
    background: #f1f5f9;
    color: var(--color-accent);
}

/* Step Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-back {
    padding: 0.625rem 1.25rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent-light);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-next {
    padding: 0.625rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-next:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* Container */
.proposal-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* Hero */
.proposal-hero {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.proposal-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    background: var(--color-border);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.status-pill {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.status-pill.accepted { background: #ecfdf5; color: #059669; }
.status-pill.funded { background: #d1fae5; color: #047857; }

.proposal-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.proposal-meta {
    color: var(--color-muted);
    margin: 0;
    font-size: 0.875rem;
}

.proposal-expiry {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.proposal-expiry.expiry-urgent {
    color: #dc2626;
    background: #fef2f2;
}

/* Content Cards */
.content-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.card-content { flex: 1; }

.card-content h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
}

.card-content p {
    color: var(--color-accent-light);
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Deliverables Card */
.deliverables-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.deliverables-card:hover {
    box-shadow: var(--shadow-md);
}

.deliverables-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.deliverables-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.deliverable-item:hover {
    background: #f8fafc;
}

.deliverable-check {
    width: 24px;
    height: 24px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.deliverable-item span {
    font-size: 0.9375rem;
    color: var(--color-accent-light);
    line-height: 1.5;
}

.deliverable-group-header {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-accent);
    padding: 1.25rem 1rem 0.375rem;
    border-bottom: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

.deliverable-group-header:first-child {
    margin-top: 0;
}

.deliverable-subheader {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-light);
    padding: 0.75rem 1rem 0.25rem;
}

.deliverable-paragraph {
    font-size: 0.9375rem;
    color: var(--color-accent-light);
    line-height: 1.7;
    padding: 0.5rem 1rem;
    margin: 0;
}

.timeline-dot {
    background: #eff6ff;
    color: #3b82f6;
}

/* Investment Card */
.investment-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.investment-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.investment-content {
    margin-bottom: 1.5rem;
}

.investment-paragraph {
    color: var(--color-accent-light);
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.investment-paragraph:last-child { margin-bottom: 0; }

.investment-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0 0.375rem 1rem;
    font-size: 0.9375rem;
    color: var(--color-accent-light);
    line-height: 1.6;
}

.investment-bullet::before {
    content: "•";
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.investment-breakdown {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

.investment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--color-accent);
    color: white;
}

.investment-total span:first-child { font-weight: 500; }
.total-amount { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }

.investment-split {
    padding: 1rem 1.5rem;
}

.split-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.split-label { font-size: 0.875rem; color: var(--color-muted); }
.split-value { font-size: 0.875rem; font-weight: 600; }

/* Agreement Section */
.agreement-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.agreement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.agreement-header:hover { background: #fafbfc; }

.agreement-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 1rem;
    color: var(--color-muted);
}

.agreement-body {
    padding: 0 1.75rem 1.75rem;
    border-top: 1px solid var(--color-border);
}

.agreement-version {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 0 0.5rem;
}

.agreement-richtext {
    margin: 0.5rem 0 0.75rem;
}

.agreement-richtext p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--color-accent-light);
    line-height: 1.7;
}

.agreement-richtext p:last-child { margin-bottom: 0; }

.agreement-clause {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.agreement-clause:last-child { border-bottom: none; }

.agreement-clause h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    margin: 0 0 0.625rem;
    color: var(--color-accent);
}

.agreement-clause p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--color-accent-light);
    line-height: 1.7;
}

.agreement-clause p:last-child { margin-bottom: 0; }

.agreement-preamble {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.agreement-preamble p {
    font-size: 0.875rem;
    color: var(--color-accent-light);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.agreement-table {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.agreement-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.625rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.agreement-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
}

.agreement-table-row:last-child { border-bottom: none; }

.agreement-list {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-accent-light);
    line-height: 1.8;
}

.agreement-list li {
    margin-bottom: 0.125rem;
}

.agreement-caps {
    font-size: 0.8125rem !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.agreement-clause ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-accent-light);
}

.payment-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid #f1f5f9;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

/* Signature Section */
.signature-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.signature-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.signature-confirmed {
    text-align: center;
    padding: 1.5rem 0;
}

.signature-confirmed h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.signature-record {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.signature-display {
    border-bottom: 2px solid var(--color-accent);
    padding: 1rem 0.5rem;
    margin-bottom: 1rem;
}

.signature-display .signature-text {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-accent);
}

.signature-meta {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.75rem;
}

.meta-label { color: var(--color-muted); }
.meta-value { font-weight: 500; color: var(--color-accent-light); }

.check-icon {
    width: 48px;
    height: 48px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.signature-confirmed p { margin: 0 0 0.25rem; }
.signature-confirmed .timestamp {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.disclaimer {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.disclaimer p { margin: 0; }

.form-field { margin-bottom: 1.25rem; }

.form-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.form-field input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.15s;
    outline: none;
}

.form-field input[type="text"]:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.name-warning {
    font-size: 0.75rem;
    color: #d97706;
    margin-top: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: #fffbeb;
    border-radius: 4px;
}

/* Signature Preview */
.signature-preview {
    margin-bottom: 1.25rem;
}

.signature-preview label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.signature-box {
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-accent);
    border-radius: 8px 8px 0 0;
    padding: 1.25rem 1rem;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
}

.signature-box .signature-text {
    font-family: 'Georgia', serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-accent);
    letter-spacing: 0.01em;
}

.signature-box .signature-placeholder {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
}

/* Capture Info */
.capture-info {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.capture-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

.form-checkbox label {
    font-size: 0.8125rem;
    color: var(--color-accent-light);
    line-height: 1.5;
    cursor: pointer;
}

.accept-button {
    width: 100%;
    padding: 0.9375rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.accept-button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.accept-button:disabled { opacity: 0.4; cursor: not-allowed; }

.error-message {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: 6px;
}

/* Payment Section */
.payment-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Files Section */
.files-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}

.files-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.files-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.files-empty p { margin: 0; }

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

.file-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.file-details .file-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.file-details .file-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.file-download {
    color: var(--color-muted);
    transition: color 0.15s;
}

.file-card:hover .file-download {
    color: var(--color-accent);
}

.files-category {
    margin-bottom: 1.5rem;
}

.files-category:last-child { margin-bottom: 0; }

.category-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.payment-confirmed {
    text-align: center;
    padding: 1.5rem 0;
}

.payment-check {
    width: 48px;
    height: 48px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.payment-confirmed h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.payment-confirmed p { margin: 0 0 0.25rem; color: var(--color-accent-light); }
.payment-timestamp { font-size: 0.8125rem; color: var(--color-muted) !important; margin-top: 0.5rem !important; }

.payment-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    color: var(--color-muted);
    gap: 0.75rem;
}

.lock-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-locked p { margin: 0; font-size: 0.875rem; }

.payment-active {}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.payment-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.payment-amount { font-size: 1.25rem; font-weight: 700; }


.pay-button {
    display: block;
    width: 100%;
    padding: 0.9375rem;
    background: #635bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    text-decoration: none;
}

.pay-button:hover:not(:disabled) { background: #5046e5; transform: translateY(-1px); }
.pay-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.check-payment-form {
    margin: 0;
}

.check-button {
    display: block;
    width: 100%;
    padding: 0.9375rem;
    background: #ffffff;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.check-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.payment-pending {
    text-align: center;
    padding: 1rem 0;
}

.pending-icon {
    width: 48px;
    height: 48px;
    background: #fffbeb;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.payment-pending h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.payment-pending > p {
    margin: 0 0 1.25rem;
    color: var(--color-accent-light);
}

.check-instructions {
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
}

.check-instructions div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.check-instructions div:last-child {
    border-bottom: none;
}

.check-instructions span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.check-instructions strong,
.check-instructions p,
.check-instructions pre {
    margin: 0;
    color: var(--color-accent-light);
    font: inherit;
    white-space: pre-wrap;
}

.payment-description {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* Footer */
.proposal-footer {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.75rem;
}

.proposal-footer p { margin: 0 0 0.25rem; }
.footer-brand { font-weight: 600; color: var(--color-accent-light); margin-bottom: 0.25rem !important; }
.footer-generated { margin-top: 0.5rem !important; }

.portal-cta {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.portal-cta:hover { opacity: 0.9; }

.portal-hint {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 0.25rem !important;
}

/* Print Styles */
@media print {
    .progress-bar { display: none; }
    .proposal-page { padding-top: 0; }
    .proposal-container { max-width: 100%; padding: 0; }
    .content-card { box-shadow: none; border: 1px solid #ddd; }
    .agreement-body { display: block !important; }
    .toggle-icon { display: none; }
    .signature-form { display: none; }
    .payment-section { display: none; }
    .accept-button { display: none; }
    .pay-button { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
    .proposal-page { padding-top: 48px; }
    .proposal-nav { height: 48px; padding: 0 1rem; }
    .nav-steps { display: none; }
    .mobile-step-select { display: inline-flex; }
    .proposal-container { padding: 0 1rem 3rem; }
    .proposal-hero { padding: 1.5rem 0 1rem; }
    .proposal-hero h1 { font-size: 1.375rem; }
    .content-card { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
    .card-icon { width: 32px; height: 32px; }
    .deliverables-card { padding: 1.5rem 1.25rem; }
    .deliverable-item { padding: 0.75rem 0.5rem; }
    .investment-card { padding: 1.5rem; }
    .investment-total { flex-direction: column; gap: 0.25rem; text-align: center; padding: 1rem; }
    .total-amount { font-size: 1.5rem; }
    .agreement-header { padding: 1rem 1.25rem; }
    .agreement-body { padding: 0 1.25rem 1.25rem; }
    .signature-section { padding: 1.5rem 1.25rem; }
    .payment-section { padding: 1.5rem 1.25rem; }
    .payment-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .payment-options { grid-template-columns: 1fr; }
    .check-instructions div { grid-template-columns: 1fr; gap: 0.25rem; }
    .progress-bar { padding: 1rem; }
    .progress-step span { font-size: 0.625rem; }
}
