.custom-form {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
.form-group,
fieldset {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}
.field-label {
    font-weight: 700;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="time"],
input[type="date"],
textarea {
    border: 1px solid #8c8f94;
    border-radius: 0;
    box-sizing: border-box;
    font: inherit;
    padding: 12px;
}
button.submit:hover {
    background-color: #2c2656;
    cursor: pointer;
}
legend {
    font-size: 18px;
    font-weight: bold;
}
span.error {
    font-size: 14px;
    color: red;
}
span.required {
    color: red;
}
.error-warning,
.success-warning {
    border: 2px solid red;
    border-radius: 10px;
    background-color: #ffe0e0;
    color: #d8000c;
    padding: 12px;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.error-warning *,
.success-warning * {
    margin: 0;
}
.success-warning {
    border: 2px solid green;
    background-color: #ebf7ee;
    color: green;
}
.form-progress {
    margin: 40px 0 50px;
    padding: 0 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 12px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Conector entre as etapas */
.step-connector {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    position: relative;
    top: -25px;
    z-index: 1;
    max-width: 180px;
}

/* Estados */
.step.active .step-circle {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step.completed .step-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step.completed .step-label,
.step.active .step-label {
    color: #1e2937;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 640px) {
    .step-circle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .step-label {
        font-size: 13px;
    }

    .step-connector {
        top: -21px;
    }
}

/* SignaturePad Modal */
.modal-assinatura {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 94%;
    max-width: 900px;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.canvas-container {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
}

#signature-canvas {
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    touch-action: none; /* importante para mobile */
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 1;
}

.modal-footer {
    padding: 15px 20px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.btn-principal {
    background: #069a69;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secundario {
    background: #e2e8f0;
    color: #334155;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-fechar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.my-form-column {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.my-form-column * {
    flex: 1 0;
}

.drop-container {
    position: relative;
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #555;
    color: #444;
    cursor: pointer;
    transition:
        background 0.2s ease-in-out,
        border 0.2s ease-in-out;
}

.drop-container:hover {
    background: #eee;
    border-color: #111;
}

.drop-container:hover .drop-title {
    color: #222;
}

.drop-title {
    color: #444;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: color 0.2s ease-in-out;
}

.form-group input[type="file"] {
    width: 350px;
    max-width: 100%;
    color: #444;
    padding: 5px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
    margin-right: 20px;
    border: none;
    background: #084cdf;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #0d45a5;
}

.drop-container.drag-active {
    background: #eee;
    border-color: #111;
}

.drop-container.drag-active .drop-title {
    color: #222;
}
