/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.company-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    color: #333;
    font-size: 1.5em;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    margin: 10px 0 5px;
    color: #333;
    width: 100%;
    text-align: left;
}

input[type="text"], input[type="file"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px;
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #218838;
}

#imagePreview {
    margin-top: 10px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    display: none;
}

#imagePreview img {
    max-width: 250px;
    height: auto;
    border-radius: 4px;
}

#responseContainer {
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    display: none;
    text-align: left;
}

/* Response styling */
.response-card {
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.response-card strong {
    color: #007bff;
    font-size: 16px;
}

.response-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.response-card li {
    margin-bottom: 5px;
}

.response-card p {
    margin: 10px 0;
    line-height: 1.5;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 600px) {
    h1 {
        font-size: 1.25em;
    }

    button {
        font-size: 14px;
    }

    #imagePreview img {
        max-width: 100%;
    }

    .modal-content {
        width: 80%;
    }

    .response-card {
        padding: 15px;
    }
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    text-align: center;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 10px;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal p {
    margin-top: 10px;
    color: #333;
}