/* AERC Whistleblower Platform - Official Brand Design */

/* Import AERC Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap');

/* AERC Brand Variables */
:root {
    /* AERC Official Colors */
    --aerc-gold: #E6A141;        /* RGB(230, 161, 65) */
    --aerc-navy: #263D56;        /* RGB(38, 61, 86) */
    --aerc-light: #F2F2F2;       /* RGB(242, 242, 242) */

    /* Primary palette based on AERC brand */
    --primary-color: #E6A141;
    --primary-dark: #D4922A;
    --primary-light: #F0B85C;
    --secondary-color: #263D56;
    --secondary-light: #3A5A7A;

    /* Status colors */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Background and text */
    --light-color: #ffffff;
    --bg-light: #ffffff;
    --bg-accent: #F2F2F2;
    --dark-color: #263D56;
    --text-dark: #263D56;
    --text-light: #ffffff;
    --border-color: #e9ecef;

    /* Shadow effects with AERC gold */
    --shadow-color: rgba(230, 161, 65, 0.15);
    --shadow-hover: rgba(230, 161, 65, 0.25);
    --shadow-navy: rgba(38, 61, 86, 0.15);
}

/* General Styles with AERC Brand Typography */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
}

/* AERC Brand Headers */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-header h4,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

h1, .display-4 {
    font-weight: 700;
}

h2, h3 {
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

/* AERC Brand Navbar */
.navbar {
    background: linear-gradient(135deg, var(--aerc-navy) 0%, var(--secondary-light) 100%) !important;
    box-shadow: 0 4px 20px var(--shadow-navy);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 3px solid var(--aerc-gold);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    background-color: var(--aerc-gold);
    color: var(--aerc-navy) !important;
    transform: translateY(-1px);
}

/* Form Wizard Styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-container {
    margin-bottom: 2rem;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step-label.completed {
    color: var(--success-color);
    font-weight: 500;
}

/* AERC Brand Form Elements */
.form-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: var(--aerc-navy);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Source Sans Pro', sans-serif;
    background-color: var(--light-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--aerc-gold);
    box-shadow: 0 0 0 0.2rem var(--shadow-color);
    background-color: var(--light-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

/* Radio and Checkbox Styles */
.form-check-input {
    margin-top: 0.25rem;
}

.form-check-inline {
    margin-right: 1.5rem;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.25rem;
}

/* Required Field Indicator */
.text-danger {
    color: var(--danger-color) !important;
}

/* Modern Button Styles */
.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aerc-gold) 0%, var(--primary-dark) 100%);
    color: var(--aerc-navy);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--aerc-gold) 100%);
    box-shadow: 0 8px 25px var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--aerc-navy);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #28a745 0%, var(--success-color) 100%);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--aerc-navy) 0%, var(--secondary-light) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--shadow-navy);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--aerc-navy) 100%);
    box-shadow: 0 8px 25px var(--shadow-navy);
    transform: translateY(-2px);
    color: var(--text-light);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background: var(--aerc-gold);
    color: var(--aerc-navy);
    border-color: var(--aerc-gold);
    transform: translateY(-2px);
}

/* Modern Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-color);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
    padding: 2rem;
    border-bottom: 3px solid var(--aerc-gold);
    background: linear-gradient(135deg, var(--aerc-navy) 0%, var(--secondary-light) 100%);
    color: white;
}

.card-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.card-body {
    padding: 2.5rem;
    background: var(--light-color);
}

/* AERC Brand Alert Styles */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border-left: 4px solid transparent;
    font-family: 'Source Sans Pro', sans-serif;
}

.alert-info {
    background: linear-gradient(135deg, rgba(230, 161, 65, 0.1) 0%, rgba(242, 242, 242, 0.8) 100%);
    color: var(--aerc-navy);
    border-left-color: var(--aerc-gold);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0a3622;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #58151c;
}

/* File Upload Styles */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* AERC Brand Progress Bar */
.progress {
    height: 0.75rem;
    border-radius: 12px;
    background-color: var(--bg-accent);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--aerc-gold) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label.active {
    color: var(--aerc-gold);
    font-weight: 600;
}

.step-label.completed {
    color: var(--success-color);
    font-weight: 600;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

/* AERC Brand Footer Styles */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--aerc-navy) 0%, var(--secondary-light) 100%) !important;
    border-top: 3px solid var(--aerc-gold);
}

footer h5, footer h6 {
    font-family: 'Lora', serif;
    color: #ffffff !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p, footer small {
    color: #e9ecef !important;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    padding: 0.25rem 0;
}

footer ul li small {
    color: #e9ecef !important;
    font-weight: 400;
}

footer ul li i {
    color: var(--aerc-gold) !important;
}

footer .text-muted {
    color: #ced4da !important;
}

footer hr {
    border-color: rgba(230, 161, 65, 0.3) !important;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
    }

    .form-check-inline {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-container {
        margin-bottom: 1rem;
    }
}

/* Accessibility Improvements */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* AERC Brand Dark Mode Support */
/* Dark mode block disabled — the previous rules forced .card-body to #2d2d2d
   while keeping body white, which produced dark interiors inside light cards.
   The site now always uses the light AERC palette regardless of OS preference. */
@media not all {
    /* intentionally empty */
}

/* Security Notice Styles */
.alert-info h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.alert-info .bi {
    color: #0c63e4;
}

/* AERC Brand Home Page Styles */
.hero-section {
    background: linear-gradient(135deg, var(--aerc-navy) 0%, var(--secondary-light) 50%, var(--aerc-gold) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--aerc-navy) 0%, rgba(38, 61, 86, 0.8) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Modern Hero Section Enhancements */
.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: 'Lora', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-btn-primary {
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(230, 161, 65, 0.3);
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(230, 161, 65, 0.4);
}

.hero-btn-secondary {
    font-weight: 600;
    border-width: 2px;
}

.trust-indicator {
    padding: 1rem;
}

.trust-indicator h6 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Feature Cards Modern Styling */
.features-section .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.features-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon-wrapper {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-list li {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Report Categories Styling */
.report-category {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.report-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    transition: all 0.3s ease;
}

.report-category:hover .category-icon i {
    transform: scale(1.15);
}

/* Security Section */
.security-notice {
    border: 1px solid rgba(230, 161, 65, 0.1);
}

.security-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
}

.stat-item {
    padding: 1rem;
}

.stat-item h3 {
    font-family: 'Lora', serif;
    font-size: 2rem;
}

/* Full Width Submit Form Styling */
.submit-hero-section {
    background: linear-gradient(135deg, #263D56 0%, #4A6B8A 100%);
    margin: 0;
    padding: 0;
}

.submit-form-section {
    min-height: calc(100vh - 200px);
    margin: 0;
    padding: 0;
}

/* Override base template spacing for submit page */
.submit-page main {
    padding: 0 !important;
    margin: 0 !important;
}

.submit-page main .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force submit page to connect directly to navbar */
.submit-hero-section {
    margin-top: -1px !important;
}

/* Force submit page to connect directly to footer */
.submit-form-section {
    margin-bottom: -1px !important;
    padding-bottom: 0 !important;
}

/* Override footer margin for submit page and home page */
body:has(.submit-hero-section) footer,
body:has(.hero-section) footer,
footer.bg-dark {
    margin-top: 0 !important;
}

.sidebar-content {
    padding-right: 2rem;
}

.progress-card, .security-card {
    border: 1px solid rgba(230, 161, 65, 0.1);
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #F2F2F2;
    transition: all 0.3s ease;
}

.progress-step:last-child {
    border-bottom: none;
}

.progress-step.active {
    background: rgba(230, 161, 65, 0.05);
    border-radius: 8px;
    border-bottom: 1px solid #F2F2F2;
    padding: 1rem;
    margin: 0 -1rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #263D56;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #E6A141;
    color: white;
}

.progress-step.completed .step-icon {
    background: #198754;
    color: white;
}

.step-title {
    font-weight: 600;
    color: #263D56;
    margin-bottom: 0.25rem;
}

.progress-step.active .step-title {
    color: #E6A141;
}

.step-desc {
    color: #6c757d;
    font-size: 0.85rem;
}

.security-item {
    display: flex;
    align-items: center;
}

.form-container {
    border: 2px solid rgba(230, 161, 65, 0.1);
}

.step-intro {
    background: rgba(230, 161, 65, 0.05);
    border-left: 4px solid #E6A141;
}

.form-floating > label {
    color: #263D56 !important;
    font-weight: 600 !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #E6A141 !important;
}

/* Force white backgrounds and proper text colors for form controls */
.form-control, .form-select {
    background-color: #ffffff !important;
    color: #263D56 !important;
    border: 2px solid #e9ecef !important;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    color: #263D56 !important;
    border-color: #E6A141 !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 161, 65, 0.15) !important;
}

.form-floating > .form-control, .form-floating > .form-select {
    background-color: #ffffff !important;
    color: #263D56 !important;
}

.form-floating > .form-control:focus, .form-floating > .form-select:focus {
    background-color: #ffffff !important;
    color: #263D56 !important;
}

/* Override any dark mode form styling */
@media (prefers-color-scheme: dark) {
    .submit-form-section .form-control,
    .submit-form-section .form-select {
        background-color: #ffffff !important;
        color: #263D56 !important;
        border-color: #e9ecef !important;
    }

    .submit-form-section .form-control:focus,
    .submit-form-section .form-select:focus {
        background-color: #ffffff !important;
        color: #263D56 !important;
        border-color: #E6A141 !important;
    }

    .submit-form-section .form-floating > .form-control,
    .submit-form-section .form-floating > .form-select {
        background-color: #ffffff !important;
        color: #263D56 !important;
    }
}

.form-container {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-header {
    position: relative;
}

.security-indicator {
    backdrop-filter: blur(10px);
}

.form-body {
    background: #ffffff !important;
}

.form-container {
    background: #ffffff !important;
}

.progress-section {
    background: #ffffff !important;
    border: 2px solid #F2F2F2;
    border-radius: 12px;
    padding: 1.5rem;
}

.step-indicators {
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: #263D56;
}

.step-indicator.active .step-circle {
    background: #E6A141;
    color: white;
    border-color: #E6A141;
    box-shadow: 0 4px 15px rgba(230, 161, 65, 0.3);
}

.step-indicator.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #263D56;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #E6A141;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #198754;
    font-weight: 600;
}

.step-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #F2F2F2;
}

.step-header h4 {
    font-family: 'Lora', serif;
    color: #263D56;
}

.step-header p {
    color: #6c757d;
}

.form-section {
    padding: 0;
}

.form-group {
    margin-bottom: 0;
}

.form-navigation {
    background: #F2F2F2;
    margin: 0 -2.5rem -2.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 0 0 20px 20px;
}

.security-footer {
    border-top: 1px solid var(--border-color);
}

.security-notice-compact {
    border: 1px solid rgba(230, 161, 65, 0.1);
}

/* Form Steps Animation */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Form Controls */
.form-group .form-label {
    font-weight: 600;
    color: var(--aerc-navy);
    margin-bottom: 0.75rem;
}

.form-check-label {
    font-weight: 500;
    margin-left: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--aerc-gold);
    border-color: var(--aerc-gold);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .trust-indicator {
        margin-bottom: 2rem;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .form-body {
        padding: 2rem !important;
    }

    .form-navigation {
        margin: 0 -2rem -2rem -2rem;
        padding: 1.5rem 2rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .security-notice-compact .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    /* Full Width Form Responsive */
    .sidebar-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .submit-form-section .row {
        flex-direction: column-reverse;
    }

    .progress-step {
        padding: 0.75rem 0;
    }

    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .progress-step.active {
        margin: 0 -0.5rem;
        padding: 0.75rem 0.5rem;
    }
}

.feature-card {
    transition: transform 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--aerc-gold);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: var(--aerc-navy);
    transform: scale(1.1);
}

/* Animation for form steps */
.form-step {
    min-height: 400px;
}

.form-step.active {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}