﻿/* ===== Base Styles ===== */
:root {
    --primary: #0d6efd;
    --primary-light: #e7f1ff;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    /* Enhanced Form Colors - High Contrast */
    --form-bg: #3a3a3a;
    --form-text: #FFFFFF;
    --form-placeholder: #BBBBBB;
    --form-border: #666666;
    --form-focus: #4DA6FF;
    --form-hover: #444444;
    --form-label: #DDDDDD;
}


body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ===== Ultra-Visible Form Fields ===== */
input, textarea, select {
    background-color: var(--form-bg);
    border: 2px solid var(--form-border);
    color: var(--form-text);
    padding: 14px 16px;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    input::placeholder, textarea::placeholder, select::placeholder {
        color: var(--form-placeholder);
        opacity: 1 !important;
        font-weight: 500;
    }

    input:hover, textarea:hover, select:hover {
        background-color: var(--form-hover);
        border-color: #777777;
    }

    input:focus, textarea:focus, select:focus {
        background-color: var(--form-hover);
        border-color: var(--form-focus);
        box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.4);
        outline: none;
    }

/* Labels with high visibility */
label {
    display: block;
    margin-bottom: 10px;
    color: var(--form-label);
    font-weight: 600;
    font-size: 15px;
}

/* Enhanced Submit Button */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
    }

    .btn-primary:active {
        transform: translateY(-1px);
    }

    .btn-primary.btn-lg {
        padding: 18px 36px;
        font-size: 18px;
    }

    .btn-primary::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn-primary:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@keyframes submitPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 94, 215, 0.7), 0 6px 15px rgba(13, 110, 253, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(11, 94, 215, 0), 0 6px 15px rgba(13, 110, 253, 0.4);
    }
}

/* Enhanced Learn More Buttons */
.btn-outline-primary {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    }

    .btn-outline-primary::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: all 0.5s ease;
    }

    .btn-outline-primary:hover::before {
        left: 100%;
    }

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ===== Auth Buttons ===== */
.auth-buttons-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    pointer-events: none;
}

/* ===== Login Button Styles ===== */
.login-button-container {
    position: fixed;
    right: 1px;
    bottom: 1px;
    z-index: 1000;
    pointer-events: auto;
}

.btn-login {
    /* Exact same sizing as register button */
    width: 68px;
    height: 17px;
    padding: 0;
    font-size: 0.65rem;
    /* Same structural styling */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 4px 12px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 -1px 2px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    /* Unique login button colors */
    background-color: rgba(13, 110, 253, 0.4);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background-color: rgba(33, 150, 83, 0.75);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
    }

    .btn-login:active,
    .btn-login:focus {
        background-color: rgba(22, 115, 51, 0.85);
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3), 0 0 20px rgba(40, 167, 69, 0.5);
        transform: translateY(-1px);
    }

    .btn-login i {
        font-size: 0.7rem;
        margin-right: 0.25rem;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

/* Register Button Specific Styles */
.register-button-container {
    position: fixed;
    left: 1px;
    bottom: 1px;
    z-index: 1050;
    pointer-events: auto;
    animation: fadeIn 1s ease-out;
    will-change: transform;
}

.btn-register {
    width: 68px;
    height: 17px;
    border-radius: 12px 4px 12px 4px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.6) 0%, rgba(200, 122, 255, 0.6) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 -1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.65rem;
    text-decoration: none;
}

    .btn-register i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
        text-shadow: none;
    }

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(200, 122, 255, 0.8) 100%);
    }

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(5px);
    }
}


/* ****8Scroll indicator styles ******/
.scroll-down-indicator {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}

.scroll-down-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(26, 115, 232, 0.95) 0%, rgba(66, 133, 244, 0.95) 100%);
    box-shadow: 0 4px 30px rgba(26, 115, 232, 0.4), inset 0 2px 4px rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.arrow-aura {
    position: relative;
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-soft 3s infinite;
}

.liquid-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    opacity: 0.6;
    z-index: 1;
    transition: all 1s ease;
}

.material-symbols-outlined.scroll-arrow {
    font-size: 38px;
    color: white;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    text-shadow: 0 2px 8px rgba(26, 115, 232, 0.5);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.metallic-version .scroll-down-btn {
    background: linear-gradient(145deg, rgba(96, 125, 139, 0.95) 0%, rgba(144, 164, 174, 0.95) 100%);
    box-shadow: 0 4px 30px rgba(69, 90, 100, 0.4), inset 0 2px 4px rgba(255,255,255,0.3);
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.scroll-down-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 40px rgba(26, 115, 232, 0.6), inset 0 4px 6px rgba(255,255,255,0.3);
}

    .scroll-down-btn:hover .liquid-effect {
        transform: rotate(15deg);
        opacity: 0.8;
    }

    .scroll-down-btn:hover .scroll-arrow {
        transform: translateY(4px);
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
        text-shadow: 0 4px 12px rgba(26, 115, 232, 0.7);
    }

/* ===== Main CTA Buttons ===== */
.btn-light {
    transition: all 0.3s ease;
    font-weight: 600;
}

    .btn-light:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }

.btn-outline-light {
    transition: all 0.3s ease;
    font-weight: 600;
}

    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

/* ===== Stats Section ===== */
.stats-card {
    transition: all 0.3s ease;
    border: none;
}

    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }

/* ===== Enhanced Services Section ===== */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
    position: relative;
    border-radius: 10px !important;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    }

        .card:hover::before {
            opacity: 1;
        }

    .card .btn-learn-more {
        background-color: var(--primary);
        color: white;
        border: none;
        padding: 10px 24px;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        opacity: 0.9;
        display: inline-block;
        font-size: 15px;
        position: relative;
    }

        .card:hover .btn-learn-more,
        .card .btn-learn-more:hover {
            background-color: #0b5ed7;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
            opacity: 1;
        }

        .card .btn-learn-more:hover {
            animation: buttonPulse 1.5s infinite;
        }

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 94, 215, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(11, 94, 215, 0);
    }
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: transparent !important;
}

    .icon-wrapper i {
        font-size: 2.5rem;
        color: var(--primary);
        transition: all 0.4s ease;
    }

/* Unique Hover Animations */
.card:nth-child(1):hover .icon-wrapper i {
    animation: truckBounce 1.5s infinite;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.card:nth-child(2):hover .icon-wrapper i {
    animation: mapSpin 1.5s infinite;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.card:nth-child(3):hover .icon-wrapper i {
    animation: chartGrow 1.5s infinite;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

@keyframes truckBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes mapSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes chartGrow {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== CTA Section ===== */
.cta-section .btn-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== Help Centre ===== */
.spinner-border {
    vertical-align: middle;
    margin-right: 0.5rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.9);
    border-color: rgba(25, 135, 84, 0.9);
    color: white;
}

/* ===== Other Question Field Styles ===== */
#otherQuestionContainer {
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

    #otherQuestionContainer.visible {
        max-height: 100px;
        opacity: 1;
    }

#otherQuestion {
    background-color: var(--form-bg);
    border: 2px solid var(--form-border);
    color: var(--form-text);
    padding: 14px 16px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    #otherQuestion:hover {
        background-color: var(--form-hover);
        border-color: #777777;
    }

    #otherQuestion:focus {
        background-color: var(--form-hover);
        border-color: var(--form-focus);
        box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.4);
        outline: none;
    }

/* ===== Dropdown Fixes ===== */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BBBBBB'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px !important;
}

    select option {
        background-color: #3a3a3a;
        color: white;
        padding: 12px;
        border-bottom: 1px solid #555555;
    }

        select option:hover {
            background-color: var(--primary) !important;
            color: white !important;
        }

    select:focus option:checked {
        background-color: var(--primary);
        color: white;
    }

    select option {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

@-moz-document url-prefix() {
    select {
        color: white !important;
        text-shadow: 0 0 0 white;
    }

        select option {
            background-color: #3a3a3a;
        }
}

select::-ms-expand {
    display: none;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .hero-section {
        height: auto;
        min-height: 600px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    }

    .btn-login {
        background-color: rgba(13, 110, 253, 0.45);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        text-align: center;
    }

        .hero-section .d-flex {
            justify-content: center;
        }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .btn-login {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        background-color: rgba(13, 110, 253, 0.5);
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

        .icon-wrapper i {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .btn-login {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
        background-color: rgba(13, 110, 253, 0.55);
    }

        .btn-login i {
            font-size: 0.95rem;
        }
}

@media (max-width: 375px) {
    .btn-login {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        background-color: rgba(13, 110, 253, 0.6);
    }

        .btn-login i {
            font-size: 0.85rem;
            margin-right: 0.4rem;
        }
}
