
/* ==========================================================================
   FORMS & MODALS STYLES
   ========================================================================== */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px);
    z-index: 100000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { display: flex; opacity: 1; }

.custom-modal-box {
    background: var(--c-bg-card); width: 100%; max-width: 600px;
    border-radius: 24px; padding: 40px; box-shadow: var(--shadow-xl);
    position: relative; transform: translateY(30px); transition: transform 0.3s ease;
    border: 1px solid var(--c-border); max-height: 90vh; overflow-y: auto;
    /* HIDE SCROLLBARS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.custom-modal-box::-webkit-scrollbar { display: none; /* WebKit */ }

.custom-modal-overlay.active .custom-modal-box { transform: translateY(0); }

.modal-close {
    position: absolute; top: 24px; right: 24px; font-size: 24px;
    color: var(--c-text-muted); cursor: pointer; background: none;
    border: none; transition: var(--transition);
}
.modal-close:hover { color: var(--c-brand-green); transform: rotate(90deg); }

.form-header { text-align: center; margin-bottom: 32px; }
.form-header h2 { font-size: 28px; font-weight: 900; color: var(--c-heading); margin-bottom: 8px; line-height: 1.2;}
.form-header p { color: var(--c-text-muted); font-size: 15px; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--c-heading); margin-bottom: 8px; letter-spacing: 0.5px;}
.form-input {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--c-border);
    background: var(--c-bg-main); color: var(--c-text-main); font-family: inherit;
    font-size: 15px; outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--c-brand-green); box-shadow: 0 0 0 4px var(--c-brand-green-light); }
textarea.form-input { resize: vertical; min-height: 100px; }

.form-footer-info { text-align: center; margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--c-text-muted); }
.form-footer-info a { color: var(--c-brand-green); text-decoration: underline; }

/* ==========================================================================
   COMPLIANCE CHECKLIST STYLES
   ========================================================================== */
.compliance-wrapper {
    background: var(--c-bg-card); border-radius: 24px; border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg); overflow: hidden; margin: 40px auto; max-width: 950px;
}
/* FIXED DARK MODE HEADER BUG */
.compliance-header { background: var(--c-bg-alt); padding: 48px 32px; text-align: center; border-bottom: 1px solid var(--c-border); }
.compliance-header h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; color: var(--c-heading); }
.compliance-header h3 { font-size: 16px; color: var(--c-brand-green); font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase;}
.compliance-header p { color: var(--c-text-muted); font-size: 15px; }

.compliance-table { width: 100%; border-collapse: collapse; }
.compliance-table th {
    background: var(--c-bg-alt); padding: 20px; color: var(--c-heading);
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    font-size: 13px; text-align: center; border-bottom: 2px solid var(--c-border);
}
.compliance-table th:nth-child(2) { text-align: left; }
.compliance-table td { padding: 20px; border-bottom: 1px solid var(--c-border); vertical-align: middle; color: var(--c-text-main); font-size: 15px; font-weight: 500;}
.compliance-table tr:hover { background: var(--c-bg-main); }

.radio-cell { text-align: center; }
.radio-custom { width: 22px; height: 22px; accent-color: var(--c-brand-green); cursor: pointer; }

.report-btn-wrapper { padding: 40px; background: var(--c-bg-alt); text-align: center; border-top: 1px solid var(--c-border); }

@media (max-width: 768px) {
    .compliance-table thead { display: none; }
    .compliance-table tr { display: block; border-bottom: 4px solid var(--c-border); padding: 16px; }
    .compliance-table td { display: block; width: 100% !important; padding: 8px 0; border: none; text-align: left;}
    .radio-cell { display: inline-block !important; margin-right: 24px; text-align: left; }
    .radio-cell::before { content: attr(data-label) " "; font-weight: bold; margin-right: 8px; color: var(--c-heading); }
}
