/* ============================================
   Section 65B / Section 63 BSA Certificate Generator
   Modern Professional UI - Responsive Design
   © 2025 Advocate (Dr.) Prashant Mali
   www.cyberlawacademy.com
   ============================================ */

/* CSS Variables - Professional Color Scheme */
:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --secondary-color: #3b82f6;
    --secondary-dark: #2563eb;
    --accent-color: #0ea5e9;
    --accent-light: #38bdf8;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --error-color: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --success-color: #16a34a;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
    --warning-color: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --input-border: #cbd5e1;
    --input-focus: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.logo-section h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-section .tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.tool-title {
    text-align: right;
}

.tool-title h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.tool-title p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    color: var(--accent-light);
    font-weight: 500;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ============================================
   LAW SELECTOR
   ============================================ */
.law-selector {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.law-selector h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.law-selector .info-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.law-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.law-option {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}

.law-option:hover {
    border-color: var(--secondary-color);
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.law-option.selected,
.law-option:has(input:checked) {
    border-color: var(--secondary-color);
    background-color: #eff6ff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.law-option input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 22px;
    height: 22px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.law-option .option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.law-option .option-content strong {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.law-option .option-content span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.law-option .option-content .note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4rem;
    right: 4rem;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
    transition: all 0.2s ease;
}

.progress-step:hover .step-number {
    transform: scale(1.1);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
    font-weight: 500;
}

.progress-step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.progress-step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

/* ============================================
   WIZARD FORM & STEPS
   ============================================ */
.wizard-form {
    width: 100%;
}

.wizard-step {
    display: none;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step {
    display: none;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.step-header {
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.step-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.step-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ============================================
   ERROR DISPLAY
   ============================================ */
.error-container {
    background-color: var(--error-bg);
    border: 2px solid var(--error-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.error-container.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-container .error-title {
    color: var(--error-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-container .error-title::before {
    content: '⚠';
    font-size: 1.25rem;
}

.error-container .error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-container .error-list li {
    color: var(--error-color);
    font-size: 0.95rem;
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.error-container .error-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--error-color);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group label .required {
    color: var(--error-color);
    font-weight: 700;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    background-color: var(--error-bg);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group .field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.4rem;
    display: none;
    font-weight: 500;
}

.form-group .field-error.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ============================================
   CHECKBOX & RADIO GROUPS
   ============================================ */
.checkbox-group,
.radio-group {
    margin-bottom: 1.25rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.875rem;
    padding: 1rem 1.25rem;
    background-color: #fafbfc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    background-color: #f1f5f9;
    border-color: var(--secondary-color);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-item label,
.radio-item label {
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   DECLARATION BOXES
   ============================================ */
.declaration-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #eab308;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.declaration-box h4 {
    color: #a16207;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.declaration-box h4::before {
    content: '⚖';
    font-size: 1.25rem;
}

.declaration-box p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #854d0e;
    line-height: 1.6;
}

.declaration-box .checkbox-item {
    background-color: white;
    border-color: #eab308;
}

/* ============================================
   IMPORTANT NOTES
   ============================================ */
.important-note {
    background: linear-gradient(135deg, var(--warning-bg) 0%, #fef3c7 100%);
    border-left: 5px solid var(--warning-color);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.important-note h4 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-note h4::before {
    content: 'ℹ';
    font-size: 1.1rem;
}

.important-note p {
    color: #92400e;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   LEGAL REFERENCE BOX
   ============================================ */
.legal-reference {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.legal-reference h4 {
    color: #1e40af;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.legal-reference p,
.legal-reference ul {
    font-size: 0.95rem;
    color: #1e3a8a;
}

.legal-reference ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-reference li {
    margin-bottom: 0.35rem;
}

/* ============================================
   STEP ACTIONS / BUTTONS
   ============================================ */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

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

.btn-next {
    background-color: var(--secondary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--secondary-dark);
}

.btn-next::after {
    content: '→';
    font-size: 1.1rem;
}

.btn-prev {
    background-color: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-prev:hover {
    background-color: var(--background-color);
    border-color: var(--text-secondary);
}

.btn-prev::before {
    content: '←';
    font-size: 1.1rem;
}

.btn-preview {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.btn-preview:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #0284c7 100%);
}

.btn-generate {
    background: linear-gradient(135deg, var(--success-color) 0%, #22c55e 100%);
    color: white;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.btn-print {
    background-color: var(--primary-color);
    color: white;
}

.btn-print:hover {
    background-color: var(--primary-light);
}

.btn-download,
.btn-download-txt {
    background-color: var(--success-color);
    color: white;
}

.btn-download:hover,
.btn-download-txt:hover {
    background-color: #15803d;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   REVIEW SECTION
   ============================================ */
.review-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fafbfc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.review-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.1rem;
}

.review-item {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-label {
    font-weight: 600;
    min-width: 200px;
    color: var(--text-muted);
}

.review-value {
    color: var(--text-color);
    flex: 1;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.35rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-wrap: wrap;
}

/* ============================================
   CERTIFICATE PREVIEW
   ============================================ */
.certificate-preview {
    font-family: 'Times New Roman', Georgia, 'Cambria', serif;
    line-height: 1.8;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: var(--radius-md);
}

.certificate-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px double var(--primary-color);
}

.certificate-header h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-family: 'Times New Roman', Georgia, serif;
}

.certificate-header p {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.certificate-body {
    margin-bottom: 2rem;
}

.certificate-body p {
    text-align: justify;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.certificate-body .indent {
    margin-left: 2.5rem;
}

.certificate-body ol,
.certificate-body ul {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

.certificate-body li {
    margin-bottom: 0.75rem;
}

.certificate-section {
    margin-bottom: 2rem;
}

.certificate-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-decoration: underline;
    font-family: 'Times New Roman', Georgia, serif;
}

.signature-block {
    margin-top: 3.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.signature-area {
    width: 45%;
}

.signature-line {
    border-top: 1px solid var(--text-color);
    margin-top: 4rem;
    padding-top: 0.75rem;
    text-align: center;
}

.signature-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   EXPLANATION BOX
   ============================================ */
.explanation-section {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.explanation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
    font-size: 1.5rem;
}

.explanation-section h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.explanation-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.explanation-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.explanation-section li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.main-footer .disclaimer {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-footer .disclaimer h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.main-footer .disclaimer p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.main-footer .copyright {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.main-footer .copyright p {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    opacity: 0.9;
    color: white;
}

.main-footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .tool-title {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .progress-bar::before {
        left: 2rem;
        right: 2rem;
    }

    .signature-block {
        flex-direction: column;
    }

    .signature-area {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .main-container {
        padding: 1.5rem 1rem;
    }

    .wizard-step,
    .form-step {
        padding: 1.5rem;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    .tool-title h2 {
        font-size: 1.25rem;
    }

    .progress-bar {
        padding: 1rem 0.5rem;
        gap: 0.25rem;
    }

    .progress-bar::before {
        display: none;
    }

    .progress-step {
        min-width: 40px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.65rem;
        max-width: 50px;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }

    .law-options {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .review-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .review-label {
        min-width: auto;
    }

    .certificate-preview {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main-header {
        padding: 1.25rem 1rem;
    }

    .logo-section h1 {
        font-size: 1.35rem;
    }

    .law-selector {
        padding: 1.25rem;
    }

    .wizard-step,
    .form-step {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    @page {
        size: A4;
        margin: 2cm;
    }

    body {
        background-color: white;
        font-size: 11pt;
        line-height: 1.5;
    }

    .main-header,
    .law-selector,
    .progress-bar,
    .step-actions,
    .main-footer,
    .explanation-section,
    .important-note,
    .legal-reference,
    .modal-header,
    .modal-footer,
    .error-container {
        display: none !important;
    }

    .modal {
        display: block !important;
        position: static;
        background: none;
        padding: 0;
    }

    .modal-content {
        box-shadow: none;
        border: none;
        max-width: 100%;
    }

    .modal-body {
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .certificate-preview {
        border: none;
        padding: 0;
    }

    .certificate-header h2 {
        font-size: 14pt;
    }

    .certificate-body {
        font-size: 11pt;
    }

    .signature-block {
        page-break-inside: avoid;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-error { color: var(--error-color); }
.text-success { color: var(--success-color); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
