/* Trucking Industry Enhanced Styles - Bootstrap 5.3.8 */

:root {
    --bs-primary: #1e3a8a;
    --bs-primary-rgb: 30, 58, 138;
    --primary-dark: #1e293b;
    --accent-light: #60a5fa;
    --road-yellow: #fbbf24;
    --safety-orange: #f97316;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', sans-serif;
    letter-spacing: -0.02em;
}

/* ===== NAVBAR ===== */
.navbar-brand {
    font-family: 'Archivo', sans-serif;
    letter-spacing: -0.02em;
    color: var(--bs-primary) !important;
}

.navbar-brand span {
    color: #3b82f6;
}

.dot-badge {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ===== HERO SECTION WITH ROAD GRAPHICS ===== */
.hero-section {
    background: linear-gradient(5deg, #1AB27C 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Road Lines */
.road-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 48%, var(--road-yellow) 48%, var(--road-yellow) 52%, transparent 52%, transparent 100%);
    background-size: 100px 4px;
    background-position: 0 50px;
    background-repeat: repeat-x;
    opacity: 0.3;
    animation: roadMove 2s linear infinite;
}

.road-lines::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes roadMove {
    0% {
        background-position: 0 50px;
    }
    100% {
        background-position: 100px 50px;
    }
}

/* DOT Shield */
.dot-shield {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Truck Illustration */
.truck-illustration {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-section .display-3 {
    font-weight: 800;
    line-height: 1.1;
}

.hero-section .lead {
    opacity: 0.95;
    font-size: 1.25rem;
}

.hero-section .btn-light {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero-section .btn-outline-light {
    border-width: 2px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* ===== HIGHWAY DIVIDER ===== */
.highway-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.highway-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #e5e7eb 0px,
        #e5e7eb 20px,
        transparent 20px,
        transparent 40px
    );
}

.highway-sign {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 1;
    border: 3px solid white;
}

.sign-content {
    text-align: center;
}

.sign-number {
    font-family: 'Archivo', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.sign-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.negative-margin {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* ===== INFO CARDS ===== */
.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--accent-light), #3b82f6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

/* ===== REQUIREMENTS SECTION ===== */
.requirement-item {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.requirement-item:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.requirement-icon svg {
    display: block;
}

/* ===== FORM SECTION WITH SAFETY STRIPES ===== */
.form-card {
    position: relative;
    overflow: hidden;
}

.stripe-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
        45deg,
        #fbbf24,
        #fbbf24 10px,
        #1e293b 10px,
        #1e293b 20px
    );
    opacity: 0.05;
    border-radius: 0 1rem 0 0;
}

.form-badge {
    display: inline-block;
}

/* ===== ALERT ===== */
.alert-warning {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
}

.alert-warning strong {
    color: #0f172a;
}

.alert-warning {
    color: #92400e;
}

/* ===== FORM PLACEHOLDER ===== */
.form-placeholder {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== TRUST SECTION ===== */
.trust-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
}

.compliance-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* ===== FOOTER WITH ROAD STRIPE ===== */
footer {
    background-color: var(--primary-dark) !important;
}

.footer-road-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 45%,
        var(--road-yellow) 45%,
        var(--road-yellow) 55%,
        transparent 55%,
        transparent 100%
    );
    background-size: 50px 6px;
}

footer a:hover {
    color: white !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.alert {
    animation: fadeInUp 0.6s ease-out backwards;
}

.negative-margin .card:nth-child(1) { animation-delay: 0.1s; }
.negative-margin .card:nth-child(2) { animation-delay: 0.2s; }
.negative-margin .card:nth-child(3) { animation-delay: 0.3s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    
    .negative-margin {
        margin-top: -1.5rem;
    }
    
    .highway-sign {
        padding: 1rem 1.5rem;
    }
    
    .sign-number {
        font-size: 1.5rem;
    }
    
    .dot-shield svg {
        width: 60px;
        height: 60px;
    }
    
    .truck-illustration {
        display: none;
    }
    
    .stripe-pattern {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .icon-box {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .highway-divider {
        padding: 1.5rem 0;
    }
    
    .highway-sign {
        padding: 0.75rem 1.25rem;
    }
    
    .sign-number {
        font-size: 1.25rem;
    }
    
    .sign-text {
        font-size: 0.75rem;
    }
    
    .dot-shield svg {
        width: 50px;
        height: 50px;
    }
    
    .compliance-badge svg {
        width: 70px;
        height: 70px;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .dot-shield {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    footer,
    .road-lines,
    .stripe-pattern,
    .footer-road-stripe {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: #0f172a;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .highway-divider::before {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .road-lines {
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--road-yellow);
    outline-offset: 2px;
}

.truck-illustration img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Optional: Add a subtle border */
    border: 3px solid rgba(255, 255, 255, 0.3);
}
