﻿* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
}

/* CONTAINER */
.container-fluid {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh; /* can grow taller */
    display: flex;
    flex-direction: column;
}

.flex-grow-1 {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -40px; /* optional */
    min-height: 600px; /* <== Add this to push footer below */
}


/* HEADER */
.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 40px;
}

    .header-logos img {
        max-height: 90px;
        width: auto;
    }

/* FOOTER */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 25px 0; /* more top padding, ensure visible */
    background-color: #fff;
}

    .footer-logos img {
        max-height: 60px;
        width: auto;
    }

/* MAIN SECTION */
.flex-grow-1 {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -40px; /* moves section slightly up */
}

.row {
    width: 85%; /* balanced width */
    margin: 0 auto;
    align-items: center;
}

.col-md-6 {
    padding-left: 35px;
    padding-right: 35px;
}

    /* LEFT IMAGE */
    .col-md-6 img {
        max-width: 500px;
        height: auto;
    }

/* FORM SECTION */
.form-section {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* CAMERA CONTAINER */
.camera-container {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background-color: #fafafa;
    width: 100%;
    overflow: hidden;
}

.camera-title {
    font-weight: 600;
    color: #792E8C;
    margin-bottom: 10px;
}

/* BUTTONS */
.btn-capture {
    background-color: #792E8C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .btn-capture:hover {
        background-color: #572173;
    }

.camera-btn {
    background-color: #792E8C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 70px;
    margin: 5px;
    transition: all 0.2s ease-in-out;
}

    .camera-btn:hover {
        background-color: #572173;
    }

video, img {
    max-width: 100%;
    height: auto;
}

/* LOADER OVERLAY */
#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #loaderOverlay img {
        width: 80px;
        height: 80px;
    }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .flex-grow-1 {
        margin-top: 0; /* no upward shift on small screens */
    }

    .row {
        width: 95%;
        flex-direction: column;
        text-align: center;
    }

    .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .form-section {
        max-width: 100%;
        margin-top: 20px;
    }

    .col-md-6 img {
        max-width: 350px;
    }

    .header-logos img {
        max-height: 55px;
    }

    .footer-logos img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .header-logos {
        padding: 10px 15px;
    }

    .footer-logos {
        padding: 10px 0;
    }

    .camera-container {
        padding: 15px;
    }
}

