* {
    box-sizing: border-box;
}

:root {
    --text: #222;
    --muted: #444;
    --border: #e4e4e4;
    --card: #f7f7f7;
    --shadow: rgba(0, 0, 0, 0.05);
    --accent: #000;
    --background: #fff;
}

body {
    background: var(--background);
    font-family: 'Fira Sans', Arial, sans-serif;
    color: var(--muted);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-weight: 700;
    color: #000;
    font-size: 2.2rem;
    text-decoration: none;
}

nav {
    margin-top: 18px;
}

.menu {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-tab {
    border: none;
    background: none;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 1.05rem;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}

.nav-tab:hover {
    color: var(--text);
}

.nav-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.main-content {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 980px;
    width: 100%;
    margin: 40px auto 48px auto;
    padding: 0 18px;
    line-height: 1.6;
}

.page-section {
    display: none;
    text-align: left;
}

.page-section.active {
    display: block;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
}

.cta-row {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.card {
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 3px 18px var(--shadow);
    padding: 26px 24px 22px 24px;
    margin-bottom: 28px;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text);
}

.card h3 {
    margin-top: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.bank-box {
    margin-top: 12px;
    padding: 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.03);
}

.bank-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #666;
}

.bank-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bank-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
}

.bank-reference {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
    word-break: break-word;
}

.copy-btn {
    border: 1px solid var(--border);
    background: #f2f2f2;
    color: var(--muted);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copy-btn:hover {
    background: #e9e9e9;
    border-color: #d5d5d5;
    color: var(--text);
}

.copy-btn.copied {
    background: #dff7e3;
    border-color: #b9e4c3;
    color: #0f7a33;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 1rem;
    color: var(--text);
}

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

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.checkbox-item input {
    margin-top: 4px;
}

.checkbox-item label {
    color: var(--muted);
    line-height: 1.5;
}

.signature-area {
    margin-top: 12px;
}

.signature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.signature-canvas {
    width: 100%;
    height: 170px;
    border: 1px dashed #c6c6c6;
    border-radius: 12px;
    background: #fff;
    touch-action: none;
}

.subtle-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
}

.actions-row {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form-status {
    order: -1;
    margin-bottom: 4px;
    font-weight: 700;
    text-align: center;
}

.success {
    color: #0f7a33;
}

.error {
    color: #b00020;
}

.field-error {
    color: #b00020;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.docs-list a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.docs-list a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px 0;
    letter-spacing: 0.01em;
}

footer {
    text-align: center;
    padding: 18px 0 12px 0;
    background: #fafafa;
}

.footer-link {
    color: #bbb;
    font-size: 1rem;
    text-decoration: none;
    font-family: 'Fira Sans', Arial, sans-serif;
}

.footer-link:hover {
    color: #888;
}

#attributes.page-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.attributes-list {
    display: table;
    width: auto;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    padding: 32px 32px 24px 32px;
    margin: 0 auto;
    text-align: left;
    min-width: 260px;
    max-width: 520px;
}

.attributes-list tr {
    border-bottom: 1px solid #eee;
    line-height: 2.2;
}

.attributes-list td {
    vertical-align: middle;
    padding: 12px 0;
    font-size: 1.05rem;
}

.attributes-list td:first-child {
    font-weight: 700;
    color: #222;
    width: 180px;
}

.attributes-list td:last-child {
    color: #444;
    word-break: break-word;
    padding-left: 16px;
}

.attributes-list a {
    color: #444;
    text-decoration: underline;
}

.attributes-list a:hover {
    color: #000;
}

@media (max-width: 820px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-tab {
        padding: 10px 8px;
    }

    .card {
        padding: 22px 18px;
    }
}
