body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    color: #1E293B;
}

/* Login Overlay */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 320px;
    border: 1px solid #E2E8F0;
}

.login-box h2 {
    margin-top: 0;
    color: #0F172A;
}

.login-box input {
    margin: 10px 0;
}

.login-box button {
    background: #2563EB;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}

/* Main Content */
.container {
    background: white;
    width: 100%;
    max-width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

h1 {
    font-size: 20px;
    color: #0F172A;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 15px 0;
}

.section-title h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0F172A;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.legal-card {
    background: #F8FAFC;
    border: none;
}

.legal-card ul {
    margin: 0;
    padding-left: 15px;
}

.legal-card li {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Form Elements */
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.col {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    color: #0F172A;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

input::placeholder {
    color: #94A3B8;
}

/* Professional Info Specifics */
.card h3 {
    margin-top: 0;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 15px;
}

/* Signatures */
.date-row {
    margin-bottom: 20px;
}

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

.sig-box {
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #F8FAFC;
}

.sig-box p {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

canvas {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 200px;
    min-height: 200px;
    display: block;
    margin-bottom: 10px;
}

/* Buttons */
.actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

#download-btn {
    background: #2563EB;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, background 0.2s;
}

#download-btn:hover {
    transform: translateY(-2px);
    background: #1D4ED8;
}

.clear-btn {
    margin-top: 10px;
    background: white;
    color: #EF4444;
    border: 1px solid #EF4444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.clear-btn:hover {
    background: #FEF2F2;
}

/* Responsive */
@media (max-width: 600px) {

    .row,
    .signature-grid {
        flex-direction: column;
        display: flex;
    }

    .container {
        padding: 15px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 15mm;
    }

    #login-overlay,
    .actions,
    .clear-btn {
        display: none !important;
    }

    input {
        border: none;
        padding: 5px 0;
    }

    .card {
        border: 1px solid #E2E8F0;
        /* Keep borders for print/pdf clarity */
    }
}