/* Custom CSS Variables */
:root {
    --union-blue: #1e3a5f;
    --union-blue-dark: #152a42;
    --union-red: #c41e3a;
    --union-gold: #ffd700;
    --union-gold-dark: #e6c200;
    --text-light: rgba(255, 255, 255, 0.8);
    --text-lighter: rgba(255, 255, 255, 0.6);
    --border-light: rgba(255, 255, 255, 0.2);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Utility Classes */
.bg-union-blue { background-color: var(--union-blue) !important; }
.bg-union-red { background-color: var(--union-red) !important; }
.text-union-blue { color: var(--union-blue) !important; }
.text-union-red { color: var(--union-red) !important; }
.text-union-gold { color: var(--union-gold) !important; }
.text-white-80 { color: var(--text-light) !important; }
.text-white-60 { color: var(--text-lighter) !important; }
.border-white-20 { border-color: var(--border-light) !important; }

/* Button Styles */
.btn-union-blue {
    background-color: var(--union-blue);
    border-color: var(--union-blue);
    color: white;
}

.btn-union-blue:hover,
.btn-union-blue:focus {
    background-color: var(--union-blue-dark);
    border-color: var(--union-blue-dark);
    color: white;
}

.btn-union-gold {
    background-color: var(--union-gold);
    border-color: var(--union-gold);
    color: var(--union-blue);
    font-weight: 600;
}

.btn-union-gold:hover,
.btn-union-gold:focus {
    background-color: var(--union-gold-dark);
    border-color: var(--union-gold-dark);
    color: var(--union-blue);
}

.btn-demo-cta {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-demo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--union-gold) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--union-blue) 0%, var(--union-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}

.highlight-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Background Gradients */
.bg-gradient-union {
    background: linear-gradient(135deg, var(--union-blue) 0%, var(--union-blue-dark) 100%);
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
}

.problem-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    text-align: center;
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.problem-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.problem-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.problem-details li::before {
    content: '•';
    color: var(--union-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.problem-source {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.problem-source a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.problem-source a:hover {
    color: var(--union-gold) !important;
    text-decoration: underline !important;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaf6 100%);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--union-blue), var(--union-gold));
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-title {
    font-weight: 600;
    color: var(--union-blue);
}

.stat-icon {
    opacity: 0.8;
}

.stat-source a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.stat-source a:hover {
    color: var(--union-gold) !important;
    text-decoration: underline !important;
}

.highlight-stat {
    background: linear-gradient(135deg, var(--union-blue) 0%, #2563eb 100%) !important;
    box-shadow: 0 1rem 3rem rgba(30, 58, 138, 0.3);
}

.mobile-stat .display-4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Solution Section */
.solution-section {
    padding: 5rem 0;
}

.solution-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--union-blue);
}

.solution-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.solution-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.solution-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.solution-benefits li::before {
    content: '✓';
    color: var(--union-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.roi-section {
    margin-top: 3rem;
}

/* Security Section */
.security-section {
    padding: 5rem 0;
}

.security-feature {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.security-feature:hover {
    transform: translateY(-5px);
}

.security-icon {
    margin-bottom: 1rem;
}

.security-guarantee {
    border: 2px solid var(--union-blue);
}

.security-stat {
    padding: 1rem;
}

/* Demo Form Section */
.demo-form-section {
    padding: 5rem 0;
}

.demo-form-card {
    border: none;
    max-width: 600px;
    margin: 0 auto;
}

.demo-form .form-control,
.demo-form .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.demo-form .form-control:focus,
.demo-form .form-select:focus {
    border-color: var(--union-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
}

.demo-form .form-label {
    font-weight: 600;
    color: var(--union-blue);
    margin-bottom: 0.5rem;
}

.demo-form .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.demo-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

/* Form Validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--union-red);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: var(--union-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    margin-bottom: 1rem;
}

.about-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-section {
    border: 2px solid var(--union-blue);
    margin-top: 3rem;
}

.testimonial-stats .stat-item {
    text-align: center;
}

/* Footer */
.footer {
    padding: 3rem 0;
}

.footer-brand img {
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--union-gold) !important;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--union-gold) !important;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .problem-section,
    .solution-section,
    .security-section,
    .demo-form-section,
    .about-section {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-demo-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .highlight-item {
        font-size: 1rem;
    }
    
    .solution-icon {
        width: 50px;
        height: 50px;
    }
    
    .security-feature,
    .about-card {
        padding: 1.5rem 1rem;
    }
    
    .demo-form-card {
        padding: 2rem 1.5rem;
    }
    
    .roi-section .col-lg-4 {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .demo-form-card {
        padding: 1.5rem 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .problem-card,
    .solution-card {
        margin-bottom: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
    }
    
    .hero-section .text-white-80,
    .hero-section .text-white-60 {
        color: white !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .demo-form-section,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .submit-text {
    display: none;
}

.loading .loading-text {
    display: inline-block !important;
}

/* Animation for form success */
@keyframes slideInFromTop {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert.show {
    animation: slideInFromTop 0.3s ease-out;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--union-gold);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--union-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Privacy Notice Banner */
.privacy-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--union-blue);
    color: white;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.privacy-notice.show {
    transform: translateY(0);
}

.privacy-notice-content {
    padding: 1rem 0;
}

.privacy-notice-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.privacy-link {
    color: var(--union-gold);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link:hover {
    color: var(--union-gold-dark);
    text-decoration: underline;
}

.btn-privacy-accept {
    background-color: var(--union-gold);
    color: var(--union-blue);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-privacy-accept:hover {
    background-color: var(--union-gold-dark);
    color: var(--union-blue);
    transform: translateY(-1px);
}



/* Mobile responsive for privacy notice */
@media (max-width: 767.98px) {
    .privacy-notice-content {
        padding: 0.75rem 0;
    }
    
    .privacy-notice-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .privacy-notice .col-lg-3 {
        text-align: center;
    }
    
    .btn-privacy-accept {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
