.cca-password-box {
    max-width: 360px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 8px;
}

.cca-password-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.cca-password-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
}

.cca-password-box button,
.cca-toolbar button,
#cca-clear-signature {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
}

.cca-error {
    color: #b00000;
    font-weight: bold;
}

.cca-toolbar {
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    padding: 12px 0;
}

#cca-status {
    margin-left: 15px;
    font-weight: bold;
}

.cca-pdf-pages {
    max-width: 900px;
}

.cca-page-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.cca-page-wrapper canvas.cca-pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.cca-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.cca-field {
    position: absolute;
    z-index: 10;
    border: 1px solid #333;
    background: rgba(255,255,255,0.9);
    padding: 4px 6px;
    font-size: 13px;
    height: 28px;
    pointer-events: auto;
    box-sizing: border-box;
}

.cca-signature-box {
    position: absolute;
    z-index: 10;
    background: rgba(255,255,255,0.92);
    padding: 6px;
    border: 1px solid #333;
    pointer-events: auto;
    box-sizing: border-box;
}

.cca-signature-box label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
}

#cca-signature {
    width: 100%;
    height: 90px;
    border: 1px solid #aaa;
    background: #fff;
    display: block;
    touch-action: none;
    box-sizing: border-box;
}

#cca-clear-signature {
    margin-top: 5px;
    padding: 6px 10px;
    font-size: 12px;
}

.cca-page-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    z-index: 20;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .cca-field {
        font-size: 11px;
        height: 24px;
    }

    #cca-signature {
        height: 70px;
    }
}