/* Custom CSS for Trust & Will Online */

/* Global dark mode form overrides - with higher specificity */
body .form-control, 
body .form-select, 
body .form-check-input,
body input[type="text"],
body input[type="email"],
body input[type="password"],
body input[type="number"],
body textarea,
body select {
    color: #f8f9fa !important;
    background-color: #343a40 !important;
    border-color: #0d6efd !important;
}

body .form-control::placeholder {
    color: #adb5bd !important;
}

body .form-label, 
body .form-check-label, 
body label {
    color: #f8f9fa !important;
}

body .alert-info {
    background-color: #343a40 !important;
    border-color: #0d6efd !important;
    color: #f8f9fa !important;
}

body .card, 
body .card-body, 
body .card-header {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

/* High specificity selectors to override white backgrounds */
body form .card-body,
body form div.card-body,
body div.card-body,
body div.alert-info,
body .bg-white,
body .bg-light {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

/* Custom colors */
.btn-purple, .bg-purple {
    background-color: #6f42c1;
    color: #fff;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Header and footer styles */
.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dashboard styles */
.document-card {
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.document-actions {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.document-card:hover .document-actions {
    visibility: visible;
    opacity: 1;
}

/* Trust builder styles */
.privacy-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 15px;
}

.disclaimer {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Multi-step form styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block !important;
}

.step-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.step-indicator .step {
    display: inline-block;
    margin: 0 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dee2e6;
}

.step-indicator .step.active {
    background-color: #007bff;
}

/* Affidavit styles */
.affidavit-wrapper {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
}

.affidavit-header {
    text-align: center;
    margin-bottom: 2rem;
}

.affidavit-subheader {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
}

.affidavit-clause {
    margin-bottom: 1.5rem;
}

.affidavit-clause-number {
    font-weight: bold;
    margin-right: 0.5rem;
}

.affidavit-signature {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Blog styles */
.blog-post-card {
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.blog-featured-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-post-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-content img {
    max-width: 100%;
    height: auto;
}

.blog-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.blog-content table thead th {
    border-bottom: 2px solid #dee2e6;
}

.blog-content blockquote {
    padding: 1rem;
    border-left: 4px solid #dee2e6;
    margin-left: 0;
    margin-right: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Comment section */
.comment-container {
    margin-top: 2rem;
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-author {
    font-weight: bold;
}

.comment-content {
    margin-top: 0.5rem;
}
