.pgd-container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent;
    color: #333;
    line-height: 1.7;
}

.pgd-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.pgd-intro {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.pgd-field-name input[type="text"] {
    width: 60%;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    color: #333;
}

.pgd-field-name input[type="text"]::placeholder {
    color: #999;
}

.pgd-field-name {
    margin-bottom: 1.5rem;
}

.pgd-consent-body {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.pgd-consent-body p {
    margin: 0 0 1rem;
}

.pgd-field {
    margin-bottom: 1.2rem;
}

.pgd-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.pgd-required {
    color: #c0392b;
}

.pgd-canvas-wrapper {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    touch-action: none;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#pgd-canvas {
    display: block;
    width: 100%;
    height: 175px;
    cursor: crosshair;
}

.pgd-clear-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pgd-clear-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.pgd-field-date {
    margin-top: 1.2rem;
}

.pgd-field-date input[type="date"] {
    width: 60%;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    color: #333;
}


.pgd-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.pgd-btn:hover {
    opacity: 0.85;
}

.pgd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pgd-btn-primary {
    background: #a89279;
    color: #fff;
}

.pgd-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.pgd-message.pgd-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pgd-message.pgd-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    #pgd-signature-form {
        padding: 1.5rem 1.2rem;
    }
}
