.contact-wrap {
    max-width: 740px;
}

.contact-invoice {
    max-width: 680px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.contact-accent {
    height: 6px;
    background: #111827;
}

.contact-body {
    padding: 48px;
}

.contact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
}

.contact-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.contact-meta {
    text-align: right;
}

.contact-meta-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.contact-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-top: 2px;
}

.contact-section-title {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 2px solid #111827;
    padding-bottom: 3px;
    margin-bottom: 14px;
}

.contact-from {
    margin-bottom: 32px;
}

.contact-from-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.contact-from-line {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.contact-items {
    margin-bottom: 32px;
}

.contact-items-head {
    display: flex;
    border-bottom: 2px solid #111827;
    padding-bottom: 8px;
    margin-bottom: 0;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-items-head .col-method { flex: 1; }
.contact-items-head .col-detail { width: 60%; text-align: right; }

.contact-item-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.contact-item-method {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.contact-item-detail {
    width: 60%;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
}

.contact-item-detail a {
    color: #111827;
    text-decoration: none;
}

.contact-item-detail a:hover {
    text-decoration: underline;
}

.contact-total {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    margin-bottom: 36px;
}

.contact-total-box {
    width: 280px;
    border: 1px solid #111827;
    padding: 14px 16px;
}

.contact-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-total-row:last-child {
    border-bottom: 0;
}

.contact-total-final {
    border-top: 2px solid #111827;
    padding-top: 10px;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-total-final span:first-child {
    font-size: 11px;
}

.contact-notes {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.contact-notes-body {
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    white-space: pre-wrap;
}

.contact-brandline {
    text-align: right;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-top: 32px;
}

@media (max-width: 767px) {
    .contact-body {
        padding: 28px 20px;
    }

    .contact-head {
        flex-direction: column;
        gap: 16px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-meta {
        text-align: left;
    }

    .contact-total-box {
        width: 100%;
    }
}
