/* Remote Solicitor E-Sign Styles */

.rs-esign-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
}

.rs-esign-header {
    margin-bottom: 32px;
    text-align: center;
}

.rs-esign-header h2 {
    font-size: 28px;
    color: #1a365d;
    margin: 0 0 8px;
}

.rs-esign-header p {
    color: #718096;
    font-size: 15px;
    margin: 0;
}

/* Sections */
.rs-esign-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.rs-esign-section h3 {
    font-size: 18px;
    color: #1a365d;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* Form Fields */
.rs-field {
    margin-bottom: 16px;
}

.rs-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.rs-field input,
.rs-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.rs-field input:focus,
.rs-field textarea:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.rs-field-row {
    display: flex;
    gap: 16px;
}

.rs-field-row .rs-field {
    flex: 1;
}

.req {
    color: #e53e3e;
}

.rs-hint {
    font-size: 13px;
    color: #718096;
    margin: 0 0 12px;
}

/* Signature Canvas */
.rs-sig-wrapper {
    text-align: center;
}

.rs-sig-canvas {
    width: 100%;
    height: 180px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: crosshair;
    touch-action: none;
}

.rs-sig-canvas.rs-sig-active {
    border-color: #1a365d;
    border-style: solid;
}

/* Buttons */
.rs-btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rs-btn-primary:hover {
    background: #2a4a7f;
}

.rs-btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.rs-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #edf2f7;
    color: #1a365d;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rs-btn-secondary:hover {
    background: #e2e8f0;
}

.rs-btn-text {
    display: inline-block;
    padding: 6px 12px;
    background: none;
    color: #e53e3e;
    border: none;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
}

.rs-btn-text:hover {
    text-decoration: underline;
}

.rs-btn-danger {
    display: inline-block;
    padding: 6px 12px;
    background: none;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.rs-btn-danger:hover {
    background: #fff5f5;
}

/* Signer Rows */
.rs-signer-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rs-signer-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.rs-signer-row input:focus {
    outline: none;
    border-color: #1a365d;
}

.rs-signer-num {
    font-weight: 700;
    color: #1a365d;
    font-size: 14px;
    min-width: 24px;
}

/* Actions */
.rs-esign-actions {
    text-align: center;
    margin-top: 20px;
}

/* Success / Info Messages */
.rs-success-msg {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.rs-success-msg h3 {
    color: #276749;
    margin: 0 0 12px;
}

.rs-success-msg p {
    color: #4a5568;
    margin: 4px 0;
}

.rs-info-msg {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.rs-info-msg h3 {
    color: #2b6cb0;
    margin: 0 0 12px;
}

/* Status Badges */
.rs-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rs-badge-pending {
    background: #fefcbf;
    color: #975a16;
}

.rs-badge-signed {
    background: #c6f6d5;
    color: #276749;
}

.rs-badge-completed {
    background: #c6f6d5;
    color: #276749;
}

/* Signers Status List */
.rs-signers-status {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-signer-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.rs-signer-status-row:last-child {
    border-bottom: none;
}

/* Meta Info */
.rs-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #718096;
    margin-top: 12px;
}

.rs-doc-desc {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0 0;
}

/* Loading */
.rs-loading {
    text-align: center;
    padding: 48px;
    color: #718096;
    font-size: 16px;
}

/* Footer */
.rs-esign-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.rs-esign-footer a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
}

.rs-esign-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.rs-dash-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.rs-dash-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rs-dash-card h4 {
    margin: 0 0 8px;
    color: #1a365d;
}

.rs-dash-card .rs-dash-meta {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.rs-dash-signers {
    font-size: 13px;
}

.rs-dash-signers span {
    display: inline-block;
    margin-right: 12px;
}

/* Completed Document Signatures */
.rs-completed-sigs {
    margin-top: 20px;
}

.rs-sig-block {
    display: inline-block;
    text-align: center;
    margin: 12px 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
}

.rs-sig-block img {
    max-width: 200px;
    max-height: 80px;
}

.rs-sig-block p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #4a5568;
    font-weight: 600;
}

.rs-sig-block small {
    color: #a0aec0;
    font-size: 11px;
}

/* Error */
.rs-error-msg {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .rs-esign-container {
        padding: 12px;
    }

    .rs-field-row {
        flex-direction: column;
        gap: 0;
    }

    .rs-signer-row {
        flex-wrap: wrap;
    }

    .rs-signer-row input {
        min-width: 120px;
    }

    .rs-meta {
        flex-direction: column;
        gap: 4px;
    }

    .rs-sig-block {
        margin: 8px;
    }
}
