/* Container and overall page styling */
.bod.compress-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* A light grey background for the body */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* New CSS to target the card-wrapper */
.bod.compress-container .card-wrapper {
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Headings and sub-title */
.card-wrapper h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.card-wrapper .subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Form and its components */
.compress-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.custom-file-input {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    max-width: 100%;
    text-align: center;
}

.custom-file-input:hover {
    background-color: #0056b3;
}

/* Hide the default file input */
input[type="file"] {
    display: none;
}

/* Dynamic form options section */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.form-options.visible {
    opacity: 1;
    max-height: 200px; /* Adjust as needed */
}

.form-options label {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.form-options select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23343a40" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-options select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-options button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-options button:hover {
    background-color: #0056b3;
}


@media (max-width: 600px) {
    .bod.compress-container .card-wrapper {
        padding: 1.5rem; /* Reduce padding on the card for smaller screens */
    }

    .card-wrapper h2 {
        font-size: 1.5rem; /* Make the main heading smaller */
    }

    .card-wrapper .subtitle {
        font-size: 0.9rem; /* Adjust subtitle font size */
        margin-bottom: 1.5rem; /* Reduce bottom margin */
    }

    .custom-file-input {
        padding: 0.75rem 1.5rem; /* Smaller padding for the button */
        font-size: 0.9rem; /* Smaller font size for the button text */
    }
    
    .form-options {
        gap: 0.75rem; /* Reduce the space between form elements */
    }

    .form-options select,
    .form-options button {
        padding: 0.6rem; /* Make the select box and button a bit smaller */
        font-size: 0.9rem; /* Reduce their font size */
    }
}