/* Tatbiqi Onboarding Form Styles */

.tatbiqi-onboarding-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.tatbiqi-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tatbiqi-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
}

.tatbiqi-form-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.tatbiqi-form-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.tatbiqi-form-section {
    margin-bottom: 30px;
}

.tatbiqi-form-section h3 {
    color: #34495e;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.tatbiqi-form-row {
    margin-bottom: 20px;
}

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

.tatbiqi-form-row input[type="text"],
.tatbiqi-form-row input[type="tel"],
.tatbiqi-form-row input[type="email"],
.tatbiqi-form-row input[type="number"],
.tatbiqi-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tatbiqi-form-row input:focus,
.tatbiqi-form-row select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.tatbiqi-form-row input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tatbiqi-form-row input[type="file"]:hover {
    border-color: #4CAF50;
    background-color: #f1f8f4;
}

.tatbiqi-form-row small {
    display: block;
    color: #95a5a6;
    font-size: 13px;
    margin-top: 5px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Signature Canvas */
#signature-canvas {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: crosshair;
    width: 100%;
    max-width: 600px;
    height: 200px;
    display: block;
    margin-bottom: 10px;
}

.signature-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#signature-status {
    font-size: 14px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    width: 100%;
    font-size: 18px;
}

.btn-primary:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background: #c0392b;
}

/* Messages */
.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 15px;
}

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

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

/* Custom Amount Wrapper */
#custom-amount-wrapper {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support */
[dir="rtl"] .tatbiqi-form {
    text-align: right;
}

[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .tatbiqi-onboarding-container {
        padding: 10px;
    }
    
    .tatbiqi-form {
        padding: 20px;
    }
    
    .tatbiqi-form-header h2 {
        font-size: 24px;
    }
    
    #signature-canvas {
        height: 150px;
    }
}
