#wpds-container {
    width: 100%;
    min-width: 340px;
    max-width: 600px;
}

#wpds-container #wpds-form fieldset {
    width: 100%;
    min-width: 340px;
    max-width: 600px;
    padding: 20px;
}

#wpds-container #wpds-form fieldset legend {
    margin-bottom: 10px;
    padding: 0 10px;
}

#wpds-container #wpds-form fieldset > div {
    width: 600px;
    min-width: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

#wpds-container #wpds-form label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-top: -0.5rem;
}

#wpds-container #wpds-form input,
#wpds-container #wpds-form select {
    border: 1px solid #759384;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px 10px;
}

#wpds-container #wpds-form select {
    margin-bottom: 1.7rem;
}

#wpds-container #wpds-form input[type="submit"] {
    background-color: #759384;
    color: #fff;
}

#wpds-container iframe {
    width: 100vw;
    min-width: 340px;
    height: 500px;
}

#wpds-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 999;
}

.wpds-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
}

#download-document {
    display: none;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #759384;
    color: #fff;
    border: none;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

#download-document:hover {
    background-color: #759384;
}
#toggle-signature-pad {
    width: 100%;
    font-weight: normal;
    margin-top: 10px;
}

#wpds-signature-pad {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    height: 350px;
    border: 1px solid #ccc;
}

#wpds-signature-pad canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#wpds-signature-pad .wpds-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
}