
:root {
    --sunset-yellow: #FFB347;
    --sunset-dark: #FF8C00;
    --pure-white: #FFFFFF;
    --bg-gray: #FAFAFA;
    --text-dark: #1A1A1A;
    --text-light: #666666;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
}

.logo-header {
    height: 40px;
}
.btn-primary {
background-color: #FF8C00;
}
/* Loader styles */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Fullscreen center */
    background-color: #fff;
    color: #FDBA12; /* Your "sunset yellow" */
    z-index: 9999;
    position: fixed;
    inset: 0;
}


.truck {
    --dur: 3s;
    display: block;
    width: 12em;
    height: auto;
}

.truck__body,
.truck__line,
.truck__outside1,
.truck__outside2,
.truck__outside3,
.truck__wheel,
.truck__wheel-spin,
.truck__window1,
.truck__window2 {
    animation: truck-body var(--dur) linear infinite;
}

.truck__body {
    transform-origin: 17px 11px;
}

.truck__line {
    animation-name: truck-line;
}

.truck__outside1 {
    animation-name: truck-outside1;
}

.truck__outside2 {
    animation-name: truck-outside2;
}

.truck__outside3 {
    animation-name: truck-outside3;
}

.truck__wheel {
    animation-name: truck-wheel;
}

.truck__wheel-spin {
    animation-name: truck-wheel-spin;
    transform-origin: 6.5px 17px;
}

.truck__wheel:nth-child(2) {
    animation-delay: calc(var(--dur) * 0.0625);
}

.truck__wheel:nth-child(2) .truck__wheel-spin {
    transform-origin: 27px 17px;
}

.truck__window1 {
    animation-name: truck-window1;
}

.truck__window2 {
    animation-name: truck-window2;
}



/* Animations */
@keyframes truck-body {
    from,
    12.5%,
    25%,
    37.5%,
    50%,
    62.5%,
    75%,
    87.5%,
    to {
        animation-timing-function: ease-in;
        transform: translate(0, 0) rotate(0);
    }
    6.25%,
    18.75%,
    31.25%,
    43.75%,
    56.25%,
    68.75%,
    81.25%,
    93.75% {
        animation-timing-function: ease-out;
        transform: translate(0, 1px) rotate(-0.75deg);
    }
}

@keyframes truck-line {
    from {
        stroke-dashoffset: -18;
    }
    to {
        stroke-dashoffset: 78;
    }
}

@keyframes truck-outside1 {
    from {
        stroke-dashoffset: 105;
    }
    to {
        stroke-dashoffset: -105;
    }
}

@keyframes truck-outside2 {
    from {
        stroke-dashoffset: 168;
    }
    to {
        stroke-dashoffset: -42;
    }
}

@keyframes truck-outside3 {
    from {
        stroke-dashoffset: 192;
    }
    to {
        stroke-dashoffset: -18;
    }
}

@keyframes truck-wheel {
    from,
    12.5%,
    25%,
    37.5%,
    50%,
    62.5%,
    75%,
    87.5%,
    to {
        animation-timing-function: ease-in;
        transform: translate(0, 0);
    }
    6.25%,
    18.75%,
    31.25%,
    43.75%,
    56.25%,
    68.75%,
    81.25%,
    93.75% {
        animation-timing-function: ease-out;
        transform: translate(0, -1px);
    }
}

@keyframes truck-wheel-spin {
    from {
        stroke-dashoffset: -15.71;
        transform: rotate(0);
    }
    to {
        stroke-dashoffset: 15.71;
        transform: rotate(-1440deg); /* Converted from -4turn to degrees */
    }
}

@keyframes truck-window1 {
    from {
        stroke-dashoffset: -21;
    }
    to {
        stroke-dashoffset: 189;
    }
}

@keyframes truck-window2 {
    from {
        stroke-dashoffset: -39;
    }
    to {
        stroke-dashoffset: 171;
    }
}

/* Header styles */
header {
    background: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1rem 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--sunset-dark);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(255,179,71,0.08) 0%, rgba(255,255,255,1) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,179,71,0.15) 0%, rgba(255,179,71,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

/* Action cards */
.action-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Stats section */
.stats {
    padding: 5rem 0;
    background: var(--pure-white);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sunset-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--pure-white);
    padding: 3rem 0;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    opacity: 0.7;
    margin: 0 1rem;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--sunset-yellow);
    color: var(--text-dark);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--sunset-dark);
    color: var(--text-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
}

.btn-secondary:hover {
    border-color: var(--sunset-yellow);
    color: var(--sunset-dark);
}


/* driver sign up */
 /* NEW STYLES ONLY - Complementary to homepage */
 .signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    align-items: start;
}

.signup-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-input:focus {
    border-color: var(--sunset-yellow);
    outline: none;
}

.file-upload {
    border: 2px dashed #e0e0e0;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--sunset-yellow);
}

.benefits-sidebar {
    background: linear-gradient(135deg, #FDBA12 0%, #FDBA12 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 5px 20px rgba(108,92,231,0.2);
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.benefits-list li::before {
    content: "✓";
    margin-right: 0.8rem;
    color: var(--sunset-yellow);
    font-weight: bold;
}

.signup-btn {
    background: var(--sunset-yellow);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,179,71,0.3);
}

.signup-btn:hover {
    background: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .signup-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .benefits-sidebar {
        order: -1;
        position: static;
    }
/* Ensure Bootstrap navbar collapse works on mobile */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        padding: 1rem;
    }
    .navbar-custom .navbar-nav .nav-link,
    .navbar-custom .btn {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: left;
    }
    .navbar-custom .navbar-nav {
        align-items: flex-start;
    }
}

/* Fixes and Additions for Better Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header layout fix */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
    }
        padding: 1rem 5%;
    }

    .logo-header {
        width: 100%;
        justify-content: space-between;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    nav a {
        font-size: 1rem;
    }

    /* Hero text resizing */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Action grid layout improvement */
    .action-grid {
        padding: 0 1rem;
        gap: 1rem;
        transform: none;
    }

    .action-card {
        padding: 1.5rem 1rem;
    }

    /* Stats section */
    .stats {
        padding: 3rem 1rem;
    }

    .stats h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Footer layout improvements */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}
