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

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background-color: #6B8D94;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
}

/* Logo */
.navbar-logo img {
    height: auto;
    max-width: 145px;
    display: block;
}

/* Contact Button */
.button-primary {
    outline: 0px solid transparent;
    border-radius: 100px !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 300ms ease, transform 200ms ease, outline 300ms ease;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    display: inline-block;
    background: linear-gradient(to right, #f36146, #ff9f4f);
}

/* Hover Effects */
.button-primary:hover {
    transform: scale(1.05);
    outline: 1.5px solid #ffffff;
}

.button-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #ff9f4f, #f36146);
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms ease;
}

.button-primary:hover::after {
    opacity: 1;
}

/* Main Container */
.container {
    background: white;
    padding: 60px 40px;
    min-width: 700px;
    max-width: 90vw;
    text-align: center;
    flex: 1;
    margin: auto;
}

/* Placeholder Text Styling */
input::placeholder,
textarea::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #999;
}

/* Ensure all form inputs & button text match */
input,
textarea,
button {
    font-family: 'Poppins', sans-serif;
}

/* Form Labels */
label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 15px;
}

/* Input Fields */
textarea,
input {
    width: calc(100% - 16px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    max-width: 100%;
    min-height: 80px;
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns per row */
    gap: 5px 10px; /* Reduce row spacing */
    align-items: center;
    justify-content: start;
    max-width: 700px;
    margin: 0 auto;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1;
    gap: 5px;
    margin: 0;
    padding: 3px 0; /* Forces uniform row height */
    height: 30px; /* Locks row height so everything aligns */
}

/* Checkbox Inputs */
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f36146;
}

@media screen and (max-width: 768px) {
    .checkbox-group {
        display: flex;
        flex-direction: column; /* Stack items in a single column */
        gap: 8px; /* Reduce space between checkboxes */
        align-items: flex-start; /* Align checkboxes to the left */
        max-width: 100%;
    }

    .checkbox-group label {
        white-space: nowrap;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
}

/* Submit Button */
button {
    background-color: #f36146;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
}

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

/* Response Box */
#response {
    margin-top: 20px;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin-left: 5px;
    border-radius: 50%;
    background-color: #f36146;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Ensure full page scrolling */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        height: auto;
        padding: 20px;
    }

    .container {
        min-width: 100%;
        padding: 20px;
        box-shadow: none;
    }

    textarea, input {
        font-size: 14px;
        padding: 8px;
    }

    /* Adjust navbar spacing */
    .navbar {
        padding: 10px 20px;
    }

    .navbar-logo img {
        max-width: 120px;
    }

    .button-primary {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Make sure the response div can expand fully */
#response {
    overflow: visible;
    max-width: 100%;
    white-space: normal;
}

/* Footer Styles */
.app-footer {
    background-color: #42454A;
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    margin-top: auto;
}

.app-footer a {
    color: #FF9E4F;
    text-decoration: none;
    font-weight: 600;
    margin: 5px 0;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* Desktop View */
@media (min-width: 768px) {
    .app-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
        font-size: 16px;
    }

    .app-footer p {
        margin: 0;
    }

    .app-footer a {
        margin: 0 15px;
    }
}