/* ZLD Partners Brand Colors */
:root {
    --zld-primary: #2c364f;
    --zld-accent: #b18f2e;
    --zld-primary-light: #3c4660;
    --zld-primary-dark: #1c2640;
    --zld-accent-light: #c19f3e;
    --zld-accent-dark: #a1801e;
}

/* Engagement Section Styles */
.engagement-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.engagement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

/* Engagement Cards */
.engagement-card {
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.engagement-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--zld-primary), var(--zld-accent));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.engagement-card:hover::after {
    transform: translateX(0);
}

/* Engagement Icons */
.engagement-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--zld-primary) 0%, var(--zld-primary-dark) 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.engagement-card:hover .engagement-icon {
    background: linear-gradient(135deg, var(--zld-accent) 0%, var(--zld-accent-dark) 100%);
}

.engagement-icon i {
    font-size: 1.75rem;
}

/* Typography for Engagement Section */
.engagement-section h3 {
    color: #212529;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.engagement-section p {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer Engagement Buttons - Vertical Layout */
.footer-engagement-btn-vertical {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 500;
}

.footer-engagement-btn-vertical:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-engagement-btn-vertical:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.footer-engagement-btn-vertical i {
    flex-shrink: 0;
}

.footer-engagement-btn-vertical span {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Modal Customizations */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--zld-primary) 0%, var(--zld-primary-dark) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-header .btn-close {
    background: transparent;
    opacity: 1;
    color: white;
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 2rem;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--zld-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 54, 79, 0.25);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--zld-primary);
    border-color: var(--zld-primary);
}

/* Info Box */
.bg-light {
    background-color: #f8f9fa!important;
    border: 1px solid #e9ecef;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--zld-primary) 0%, var(--zld-primary-dark) 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--zld-accent) 0%, var(--zld-accent-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 54, 79, 0.3);
}

.btn-outline-primary {
    color: var(--zld-primary);
    border-color: var(--zld-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background: var(--zld-primary);
    border-color: var(--zld-primary);
}

.btn-outline-primary:focus {
    color: white;
    background: var(--zld-primary);
    border-color: var(--zld-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 54, 79, 0.25);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .engagement-section {
        padding: 3rem 0;
    }
    
    .engagement-icon {
        width: 50px;
        height: 50px;
    }
    
    .engagement-icon i {
        font-size: 1.5rem;
    }
    
    .engagement-section h3 {
        font-size: 1rem;
    }
    
    .footer-engagement {
        padding: 1.5rem 0;
    }
    
    .footer-engagement-btn {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-engagement-btn i {
        font-size: 1.25rem;
    }
    
    .footer-engagement-btn span {
        font-size: 0.65rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .engagement-card {
        margin-bottom: 1rem;
    }
    
    .engagement-section h2 {
        font-size: 1.75rem;
    }
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Validation Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' 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);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%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);
}

/* Accessibility */
.engagement-card:focus,
.footer-engagement-btn:focus {
    outline: 3px solid var(--zld-primary);
    outline-offset: 2px;
}

.engagement-card:focus:not(:focus-visible),
.footer-engagement-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Toast Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Enhanced Toast Styling */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-radius: .375rem;
}

.toast .toast-body {
    padding: 1rem;
}

/* Print Styles */
@media print {
    .engagement-section,
    .footer-engagement {
        display: none;
    }
}