/**
 * @package Divine_Agreement_System
 * @author Aditya Singh
 */

.divine-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.divine-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.divine-status-signed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.divine-template-info ul {
    margin: 10px 0;
}

.divine-template-info code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.divine-signing-link input[type="text"] {
    font-family: monospace;
    font-size: 12px;
}

.divine-send-email-btn {
    width: 100%;
    text-align: center;
}

.divine-status-info p {
    margin: 10px 0;
}



.divine-agreement-wrapper,
.divine-agreement-system-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 20px;
}

.divine-agreement-container,
.divine-agreement-system-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.divine-agreement-header,
.divine-agreement-system-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.divine-agreement-header h1,
.divine-agreement-system-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.divine-agreement-subtitle,
.divine-agreement-system-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.divine-agreement-content,
.divine-agreement-system-content {
    padding: 40px 30px;
    line-height: 1.8;
    color: #333;
}

.divine-agreement-content h1,
.divine-agreement-content h2,
.divine-agreement-content h3,
.divine-agreement-system-content h1,
.divine-agreement-system-content h2,
.divine-agreement-system-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.divine-agreement-content p,
.divine-agreement-system-content p {
    margin-bottom: 15px;
}

.divine-signature-section {
    padding: 40px 30px;
    background: #f8f9fa;
    border-top: 3px solid #667eea;
}

.divine-signature-section h2 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #2c3e50;
}

.divine-signature-form {
    max-width: 600px;
}

.divine-form-row {
    margin-bottom: 25px;
}

.divine-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.divine-form-row .required {
    color: #e74c3c;
}

.divine-form-row input[type="text"],
.divine-form-row input[type="email"],
.divine-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.divine-form-row input:focus,
.divine-form-row textarea:focus {
    outline: none;
    border-color: #667eea;
}

.divine-signature-pad-wrapper {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

#divine-signature-pad {
    display: block;
    width: 100%;
    cursor: crosshair;
    touch-action: none;
}

.divine-clear-btn {
    margin-top: 10px;
    padding: 8px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.divine-clear-btn:hover {
    background: #c0392b;
}

.divine-signature-note {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
}

.divine-acceptance-row {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
}

.divine-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.divine-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.divine-checkbox-label span {
    flex: 1;
}

.divine-submit-row {
    text-align: center;
}

.divine-submit-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.divine-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.divine-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divine-loading {
    margin-top: 15px;
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

.divine-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    display: none;
}

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

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

.divine-success-box {
    background: #fff;
    border: 3px solid #28a745;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.divine-success-box h2 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
}

.divine-success-box p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.divine-agreement-footer,
.divine-agreement-system-footer {
    padding: 20px 30px;
    text-align: center;
    background: #2c3e50;
    color: #fff;
}

.divine-agreement-footer p,
.divine-agreement-system-footer p {
    margin: 0;
    font-size: 14px;
}


@media (max-width: 768px) {
    .divine-agreement-wrapper,
    .divine-agreement-system-wrapper {
        padding: 20px 10px;
    }
    
    .divine-agreement-header,
    .divine-agreement-system-header {
        padding: 30px 20px;
    }
    
    .divine-agreement-header h1,
    .divine-agreement-system-header h1 {
        font-size: 24px;
    }
    
    .divine-agreement-content,
    .divine-agreement-system-content,
    .divine-signature-section {
        padding: 30px 20px;
    }
    
    .divine-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    #divine-signature-pad {
        height: 150px;
    }
}


@media print {
    .divine-signature-section,
    .divine-agreement-footer,
    .divine-agreement-system-footer {
        display: none;
    }
    
    .divine-agreement-wrapper,
    .divine-agreement-system-wrapper {
        background: #fff;
        padding: 0;
    }
    
    .divine-agreement-container,
    .divine-agreement-system-container {
        box-shadow: none;
    }
}
