/* Dark Theme */
.theme-dark {
    --bg-color: #000000;
    --text-color: #ffffff;
    --navbar-bg: #042f3a69;
    --navbar-bg-small: #042f3a;
    --navbar-shadow: #00404e;
    --link-color: #ffffff;
    --link-hover: #ffcc00;
    --cta-bg: #ffcc00;
    --cta-hover-bg: #000000;
    --cta-hover-text: #ffffff;
    --secondary-bg: #121212;
    --border-color: #333333;
    --button-bg: #1f1f1f;
    --button-hover-bg: #333333;
    --text-muted: #888888;
    --heading-color: #f2f2f2;
    --card-bg: #1e1e1e;
    --card-shadow: rgba(0, 0, 0, 0.6);
    --image-border: #444444;
}

/* Light Theme */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --navbar-bg: #c0f0e4;
    --navbar-bg-small: #a5fce6;
    --navbar-shadow: #010202;
    --link-color: #000000;
    --link-hover: #01471f;
    --cta-bg: #00796b;
    --cta-hover-bg: #65ffe5;
    --cta-hover-text: #ffffff;
    --secondary-bg: #f4f4f4;
    --border-color: #cccccc;
    --button-bg: #e0f7fa;
    --button-hover-bg: #b2ebf2;
    --text-muted: #666666;
    --heading-color: #000000;
    --card-bg: #f9f9f9;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --image-border: #dddddd;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* Form Heading */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.heading {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Structure */
.quote-form {
    background-color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--card-shadow);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-group {
    flex: 1 1 calc(50% - 1.5rem);
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cta-bg);
}

input[type="file"] {
    border: none;
}

/* Checkbox Styling */
.material-options label {
    display: inline-block;
    margin-right: 1rem;
    font-weight: normal;
    color: var(--text-muted);
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Submit Button */
.submit-btn {
    display: inline-block;
    width: 30%;
    padding: 1rem;
    background-color: var(--cta-bg);
    color: var(--cta-hover-text);
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#quoteForm .submit-btn:hover {
    background-color: var(--border-color);
    color: var(--cta-bg);
}

/* Media Queries for Small Screens */
@media only screen and (max-width: 768px) {

    /* Ensure the form container fits within the viewport */
    .get-quote .container {
        width: 100%;
        margin: 0 auto;
        padding: 5px;
    }

    /* Form Groups should take full width */
    .form-group {
        width: 100%;
        margin-bottom: 20px;
        font-size: 10px;
    }

    /* Input fields and buttons should scale */
    input,
    select,
    textarea {
        width: 100%;
        padding: 12px;
        font-size: 12px;
    }

    /* Align form labels to the top for better stacking */
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

    /* Handle overflow for checkboxes */
    .material-options {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        /* border: solid; */
    }

    .material-options label {
        width: 30px;
        flex-grow: 1;
        text-align: center;
    }

    /* Adjust the button to fit the width */
    #quoteForm .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 18px;
        background-color: var(--cta-bg);
    }

    #quoteForm .submit-btn:hover {
        background-color: var(--cta-bg);
    }


        /* Fine-tune the heading */
        .heading {
            font-size: 24px;
            text-align: center;
            margin-bottom: 15px;
        }

        /* Reduce padding for better fitting */
        body, section, .form-group {
            padding: 0;
            margin: 0;
        }

        /* Eliminate any potential overflow */
        html, body {
            overflow-x: hidden;
        }

        /* Ensure no elements exceed the viewport width */
        * {
            max-width: 100%;
            box-sizing: border-box;
        }
    }