﻿body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.drivethrough-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.drivethrough-header {
    text-align: center;
    color: #1b365d;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-selection {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

    .case-selection div {
        margin-bottom: 12px;
    }

        .case-selection div:last-child {
            margin-bottom: 0;
        }

    .case-selection input[type="radio"] {
        transform: scale(1.2);
        margin-right: 8px;
        cursor: pointer;
    }

    .case-selection label {
        cursor: pointer;
        font-size: 15px;
        color: #334155;
    }

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        color: #4a5568;
        font-weight: 600;
    }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .form-control:focus {
        border-color: #2b6cb0;
        box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
    }

.radio-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 42px; /* Aligns vertically with standard text inputs */
}

    .radio-inline input[type="radio"] {
        transform: scale(1.2);
        margin-right: 5px;
        cursor: pointer;
    }

    .radio-inline label {
        margin-bottom: 0;
        font-weight: normal;
        cursor: pointer;
    }

.camera-container {
    width: 160px;
    height: 160px;
    border: 2px dashed #2b6cb0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    text-align: center;
    cursor: pointer;
    color: #2b6cb0;
    font-size: 14px;
    font-weight: 500;
    background-color: #ebf8ff;
    transition: background-color 0.2s;
}

    .camera-container:hover {
        background-color: #bee3f8;
    }

    .camera-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

/* Fallback hidden utility if Bootstrap's .d-none isn't applied correctly */
.hidden {
    display: none !important;
}

/* Fixes radio buttons to standard blue instead of green */
.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Constrains the camera preview box */
.camera-box {
    width: 140px;
    height: 140px;
    border: 1px solid #003366;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    color: #003366;
    background-color: #fff;
    overflow: hidden; /* Ensures the image doesn't break out */
}

    .camera-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Keeps aspect ratio clean */
    }

    .camera-box span {
        font-size: 13px;
        text-align: center;
    }