      .logo {
            width: 115px;
        }
        
        .p-5c {
	padding:3rem;
}

@media (min-width: 768px) {
            .half-width {
                width: 50%;
            }

            .inline-checkboxes input[type=checkbox] + label {
                margin-right: 20px;
            }
        }

        .inline-checkboxes input[type=checkbox] {
            margin-right: 5px;
        }

        .checkbox-container {
            white-space: nowrap;
            display: inline-block;
            margin-right: 20px;
        }

        .btn-link .fas {
            margin-right: 10px;
            color: #333;
        }


        
        .livePreviewContainer {
    overflow-x: auto; /* allows scrolling if the content is wider than container */
}

@media (max-width: 767px) { /* assuming you want to target devices smaller than 768px */
    #livePreview {
        transform: scale(0.7); /* you can adjust this value as needed */
        transform-origin: 0 0; /* scale from top left corner */
    }
}

@media (max-width: 576px) {
    .responsive-container {
        width: 100%;
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .p-5c {
        padding:15px!important;
    }
}

#signaturePreviewSection {
    display: none;
}

/* Validation feedback styles */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.4.4 1.85-1.85.7-.7 1.85-1.85.4-.4-.4-.4-.7-.7-.4-.4-1.85 1.85L3.14 3.18l-.8-.8-.7-.7-.4-.4-.4.4-.7.7-.4.4.8.8 1.85 1.85z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}

/* Show feedback when field has validation state */
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Smooth transitions for validation states */
.form-control {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus states for validation */
.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


/* Rate Limiting Alerts */
.rate-limit-alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.rate-limit-alert .fas {
    margin-right: 8px;
    font-size: 16px;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rate Limit Status Display */
#rateLimitStatus {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-top: 10px;
}

#rateLimitStatus small {
    font-size: 0.85em;
    color: #6c757d;
}

/* Enhanced button styles */
.btn-primary:disabled,
.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Rate limit warning indicator */
.rate-limit-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.rate-limit-error {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.rate-limit-success {
    border-left: 4px solid #28a745;
    background-color: #d4edda;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Progress indicator for rate limits */
.rate-limit-progress {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.rate-limit-progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.rate-limit-progress-bar.warning {
    background-color: #ffc107;
}

.rate-limit-progress-bar.danger {
    background-color: #dc3545;
}

/* Mobile responsive rate limit alerts */
@media (max-width: 576px) {
    .rate-limit-alert {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

/* Fade animations for rate limit messages */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}