/**
 * Eventchy Prescreening Form Styles
 */

/* Consent Notice Box Styles */
.consent-notice-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e40d75;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    overflow: hidden;
}

.consent-header {
    background: linear-gradient(90deg, #2871e4 0%, #e40d75 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.consent-header i {
    font-size: 28px;
    opacity: 0.9;
}

.consent-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    padding: 0;
    color: #fff;
}

.consent-content {
    padding: 30px;
}

.consent-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #e40d75;
    border-radius: 4px;
}

.consent-details {
    margin-bottom: 30px;
}

.consent-details h5 {
    color: #e40d75;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.consent-details h5:first-child {
    margin-top: 0;
}

.consent-details p {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 0;
    text-align: justify;
}

.consent-agreement {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #dee2e6;
}

.consent-checkbox {
    margin-bottom: 20px;
}

.consent-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    border: 2px solid #e40d75;
    cursor: pointer;
}

.consent-checkbox .form-check-input:checked {
    background-color: #e40d75;
    border-color: #9f024e;
}

.consent-checkbox .form-check-label {
    margin-left: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.consent-checkbox .form-check-label strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #212529;
}

.consent-checkbox .form-check-label ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    list-style-type: none;
}

.consent-checkbox .form-check-label ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
    line-height: 1.6;
}

.consent-checkbox .form-check-label ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.consent-link {
    color: #007bff;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}

.consent-link:hover {
    color: #e40d75;
    text-decoration: underline;
}

.consent-timestamp {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.consent-timestamp span {
    font-weight: 500;
    color: #495057;
}

/* Error state for consent checkbox and box */
.consent-notice-box.has-error {
    border-color: #dc3545;
    animation: shake 0.5s;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

.consent-notice-box.has-error .consent-header {
    background: linear-gradient(90deg, #dc3545 0%, #bd2130 100%);
}

.consent-checkbox.has-error .form-check-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.consent-checkbox .error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 30px;
}

.consent-checkbox .error-message.consent-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 0;
    margin-top: 15px;
    font-weight: 500;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Container & Layout */
.eventchy-prescreening-wrapper {
    min-height: 100vh;
}

.prescreening-header {
    text-align: center;
    margin-bottom: 40px;
}

.prescreening-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.prescreening-subtitle {
    font-size: 18px;
    color: #666;
}

/* Progress Bar */
.prescreening-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step.completed::before {
    background-color: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background-color: #007bff;
    color: white;
}

.progress-step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-title {
    font-size: 14px;
    color: #666;
}

.progress-step.active .step-title,
.progress-step.completed .step-title {
    color: #333;
    font-weight: 500;
}

/* Form Container */
.prescreening-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.form-step-header {
    margin-bottom: 30px;
}

.form-step-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-step-header h3 {
    margin-bottom: 0;
}

.form-step-header p {
    font-size: 16px;
    color: #666;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    resize: vertical;
}

.field-description {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.char-count {
    font-weight: 600;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-upload {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 40px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.file-upload-label i {
    font-size: 48px;
    color: #007bff;
    display: block;
    margin-bottom: 10px;
}

.file-upload-label span {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.file-upload-label small {
    display: block;
    color: #666;
}

.file-preview {
    margin-top: 10px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-preview-item i {
    margin-right: 10px;
    color: #28a745;
}

.file-preview-item .file-name {
    flex: 1;
}

.file-preview-item .file-size {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.file-preview-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.months-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn i {
    margin: 0 5px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Help Section */
.prescreening-help {
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.prescreening-help h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.prescreening-help ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.prescreening-help li {
    margin-bottom: 10px;
}

.prescreening-help i {
    margin-right: 10px;
    color: #007bff;
}

/* Loading Overlay */
.prescreening-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: white;
    font-size: 18px;
}

/* Modal */
.prescreening-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
}

.modal-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Specific Sections */
.documents-intro {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.documents-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.business-type-docs {
    margin-top: 20px;
}

.upload-progress {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.upload-progress h4 {
    margin-bottom: 15px;
}

.upload-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.survey-intro {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.survey-section {
    margin-bottom: 30px;
}

.submission-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.submission-summary h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.summary-content ul {
    list-style: disc;
    padding-bottom: 20px;
}

.summary-content li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .prescreening-form-container {
        padding: 20px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-step .step-title {
        font-size: 12px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Form Validation */
.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Shortcode Specific Styles */
.eventchy-prescreening-shortcode {
    margin: 20px 0;
}

.eventchy-prescreening-shortcode .prescreening-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.eventchy-prescreening-shortcode .prescreening-header {
    text-align: center;
    margin-bottom: 30px;
}

.eventchy-prescreening-shortcode .prescreening-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.eventchy-prescreening-shortcode .prescreening-subtitle {
    font-size: 16px;
    color: #666;
}

/* Form Step Wrapper for Shortcode */
.form-step-wrapper {
    display: none;
}

.form-step-wrapper.active {
    display: block;
}

.form-steps-container {
    min-height: 400px;
}

/* Shortcode Help Section */
.eventchy-prescreening-shortcode .prescreening-help {
    margin-top: 20px;
    padding: 20px;
    font-size: 14px;
}

.eventchy-prescreening-shortcode .prescreening-help h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Modal Adjustments for Shortcode */
.eventchy-prescreening-shortcode + .prescreening-loading,
.eventchy-prescreening-shortcode + .prescreening-modal {
    z-index: 999999;
}

/* Enhanced Summary Section Styles */
.submission-summary {
    margin-top: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.submission-summary h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.summary-header {
    text-align: center;
    margin-bottom: 30px;
}

.summary-header p {
    color: #666;
    font-size: 16px;
}

.summary-container {
    min-height: 200px;
    position: relative;
}

.summary-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.summary-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #007bff;
}

/* Summary Sections */
.summary-section {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.summary-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-section h4 i {
    color: #007bff;
    font-size: 20px;
}

.summary-content {
    padding: 10px 0;
}

.summary-content p {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.summary-content p strong {
    font-weight: 600;
    color: #222;
    display: inline-block;
    min-width: 200px;
}

/* Services List */
.services-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services-list li {
    list-style: none !important;
    padding: 6px 14px;
    background: #e3f2fd;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    color: #1976d2;
    display: inline-block;
    margin: 0 !important;
}

/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.documents-list li {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.documents-list li strong {
    color: #333;
    font-weight: 600;
}

/* Confirmation Section */
.confirmation-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.confirmation-section .form-check {
    margin-bottom: 15px;
}

.confirmation-section .form-check:last-child {
    margin-bottom: 0;
}

.confirmation-section .form-check-label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

/* Responsive Summary */
@media (max-width: 768px) {
    .submission-summary {
        padding: 20px;
    }
    
    .summary-section {
        padding: 15px;
    }
    
    .summary-content p strong {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }
    
    .services-list {
        gap: 6px;
    }
    
    .services-list li {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* Facebook Input Group */
.facebook-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.facebook-input-group .input-prefix {
    background-color: #f0f0f0;
    padding: 10px 12px;
    border-right: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.facebook-input-group .form-control {
    border: none;
    border-radius: 0;
    padding-left: 12px;
    flex: 1;
}

.facebook-input-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.facebook-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.fb-validation-message {
    display: block;
    margin-top: 5px;
}

/* File Preview Thumbnails */
.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin-top: 10px;
}

.file-thumbnail {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.file-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.file-thumbnail.error {
    background: #f5f5f5;
}

.file-thumbnail.error::after {
    content: 'Preview unavailable';
    color: #999;
    font-size: 12px;
}

.file-thumbnail.pdf-thumbnail,
.file-thumbnail.doc-thumbnail {
    background: #f8f9fa;
}

.file-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-thumbnail:hover .file-preview-overlay {
    opacity: 1;
}

.preview-zoom,
.preview-link {
    background: #fff;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.preview-zoom:hover,
.preview-link:hover {
    background: #f0f0f0;
}

.file-info {
    width: 100%;
    text-align: center;
}

.file-info .file-name {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.file-info .file-size {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.file-info .remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.file-info .remove-file:hover {
    background: #c82333;
}

/* Image Preview Modal */
.file-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.file-preview-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.file-preview-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.file-preview-modal .modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
    font-weight: 500;
}

.file-preview-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-modal .modal-close:hover {
    color: #333;
}

.file-preview-modal .modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 100px);
    overflow: auto;
}

.file-preview-modal .modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Summary Documents Grid */
.summary-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.summary-document-item {
    text-align: center;
}

.summary-document-thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.summary-document-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.summary-document-thumbnail.error {
    background: #f5f5f5;
}

.summary-document-thumbnail.error::after {
    content: 'Preview unavailable';
    color: #999;
    font-size: 10px;
    text-align: center;
    padding: 5px;
}

.summary-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
}

.summary-file-icon.pdf-icon {
    color: #dc3545;
}

.summary-file-icon.doc-icon {
    color: #6c757d;
}

.summary-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-document-thumbnail:hover .summary-thumbnail-overlay {
    opacity: 1;
}

.summary-thumbnail-overlay button,
.summary-thumbnail-overlay a {
    background: #fff;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
}

.summary-thumbnail-overlay button:hover,
.summary-thumbnail-overlay a:hover {
    background: #f0f0f0;
}

.summary-document-label {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 768px) {
    .summary-documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .summary-document-thumbnail {
        width: 80px;
        height: 80px;
    }
}

/* Verified Supplier Badge Section Styles */
.verified-badge-section {
    margin: 40px 0;
}

.badge-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.badge-header {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-header i {
    font-size: 28px;
    opacity: 0.9;
}

.badge-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-top: 0;
    padding-top: 0;
}

.badge-content {
    padding: 25px 30px;
}

.badge-content > p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.badge-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.badge-benefits li {
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-benefits li i {
    color: #28a745;
    font-size: 18px;
    flex-shrink: 0;
}

/* Badge Toggle Switch */
.badge-toggle-wrapper {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.badge-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.badge-toggle-checkbox {
    display: none;
}

.badge-toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    margin-right: 15px;
    transition: background-color 0.3s;
}

.badge-toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.badge-toggle-checkbox:checked + .badge-toggle-slider {
    background-color: #28a745;
}

.badge-toggle-checkbox:checked + .badge-toggle-slider::before {
    transform: translateX(30px);
}

.badge-toggle-text {
    flex: 1;
}

/* Optional Documents Section */
.optional-documents-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #28a745;
}

.optional-documents-header {
    margin-bottom: 20px;
}

.optional-documents-header h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.optional-documents-header .section-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Required Documents Header */
.required-documents-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.required-documents-header h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}

.required-documents-header .section-description {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Optional Badge Indicator */
.optional-badge {
    background: #6c757d;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: normal;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .badge-header {
        padding: 15px 20px;
    }
    
    .badge-header h4 {
        font-size: 18px;
    }
    
    .badge-content {
        padding: 20px;
    }
    
    .badge-toggle-label {
        font-size: 14px;
    }
    
    .badge-toggle-slider {
        width: 50px;
        height: 26px;
    }
    
    .badge-toggle-slider::before {
        width: 20px;
        height: 20px;
    }
    
    .badge-toggle-checkbox:checked + .badge-toggle-slider::before {
        transform: translateX(24px);
    }
}

/* Marketing Consent Section */
.marketing-consent-section {
    margin-top: 30px;
}

.marketing-consent-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #d1d9e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.marketing-consent-box .form-check {
    display: flex;
    align-items: flex-start;
    margin: 0;
}

.marketing-consent-box .form-check-input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    margin-right: 15px;
    border: 2px solid #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.marketing-consent-box .form-check-input:checked {
    background-color: #667eea;
    border-color: #5a67d8;
}

.marketing-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    flex: 1;
}

.consent-icon {
    font-size: 28px;
    margin-right: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.consent-text {
    flex: 1;
}

.consent-text strong {
    font-size: 16px;
    color: #2d3748;
    display: inline-block;
    margin-right: 10px;
}

.badge-free {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.consent-description {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .marketing-consent-box {
        padding: 15px;
    }
    
    .consent-icon {
        font-size: 24px;
        margin-right: 10px;
    }
    
    .consent-text strong {
        font-size: 15px;
        display: block;
        margin-bottom: 5px;
    }
    
    .badge-free {
        margin-top: 5px;
    }
}

/* "I don't have X" Checkbox Styling */
.no-document-checkbox {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.no-document-checkbox:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.no-document-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    user-select: none;
}

.no-document-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.no-document-checkbox input[type="checkbox"]:checked + span {
    color: #495057;
    font-weight: 500;
}

/* Highlight checkbox container when checked */
.no-document-checkbox:has(input:checked) {
    background: #d4edda;
    border-color: #28a745;
}

/* Badge Unchecked Notice */
.badge-unchecked-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.badge-unchecked-notice::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-document-checkbox {
        margin-top: 8px;
        padding: 6px 10px;
    }
    
    .no-document-checkbox label {
        font-size: 13px;
    }
}