﻿:root {
    font-size: 16px; /* Base font size for rem calculations */
}

.container {
    max-width: 85%;
    margin: auto;
    margin-bottom: 1.25rem;
    padding: 1.25rem; /* 20px */
    border-radius: 1.125rem; /* 18px */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* 4px 8px */
    background-color: #ffffff;
}

#search {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

#searchbutton {
    /* width: 4.6875rem; /* 75px */
    width: 100%;
    max-width: 4.375rem; /* 150px */
    padding: 0.55rem; /* 12px */
    border: none;
    border-radius: 0.5rem; /* 15px */
    background-color: darkgray;
    color: white;
    font-size: 0.8rem; /* 16px */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0.050rem 0.2rem rgba(0, 0, 0, 0.4); /* 2px 4px */
}

    #searchbutton:hover {
        background-color: black;
    }

.form-group {
    margin-bottom: 1.25rem; /* 20px */
    width: auto;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem; /* 8px */
        font-weight: bold;
        color: #333;
    }

    .form-group input,
    .form-group select {
        width: auto;
        padding: 0.625rem; /* 10px */
        border: 0.0625rem solid #ddd; /* 1px */
        border-radius: 0.25rem; /* 4px */
        font-size: 0.875rem; /* 14px */
        box-sizing: border-box;
    }

    .form-group button {
        width: 100%;
        max-width: 9.375rem; /* 150px */
        padding: 0.75rem; /* 12px */
        border: none;
        border-radius: 0.9375rem; /* 15px */
        background-color: darkgray;
        color: white;
        font-size: 1rem; /* 16px */
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4); /* 2px 4px */
    }

        .form-group button:hover {
            background-color: #0056b3;
        }

        .form-group button:active {
            transform: translateY(0.125rem); /* 2px */
            box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1); /* 1px 2px */
        }

.details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem; /* 20px */
    margin-top: 1.25rem; /* 20px */
}

    .details .form-group {
        margin-bottom: 0;
    }

.pdf-viewer {
    width: 100%;
    margin-top: 1.25rem; /* 20px */
}

.details p {
    font-size: 1rem; /* 16px */
    color: #555;
}

.details b {
    color: #333;
}

/* Media Queries for responsiveness */

@media (min-width: 48rem) { /* 768px */
    #search {
        max-width: 50%;
    }

    .form-group button {
        width: auto;
        max-width: 9.375rem; /* 150px */
    }

    .details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 62rem) { /* 992px */
    #search {
        max-width: 25%;
    }

    .form-group button {
        width: auto;
    }

    .details {
        grid-template-columns: auto auto auto auto;
    }
}
