/* General Body Styling for Form Pages */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #f9f6ee 0%, #f6e4d2 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Styling */
nav {
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px;
    background-color: #f9f6ee !important;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

nav .brand-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 32px;
    color: #333333 !important;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 5px;
}

nav .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-wrapper ul li a {
    /* Adjust the radius as per your preference */
    border-radius: 10px;
    /* Smooth hover effect */
    transition: background-color 0.3s ease;
}

nav .nav-wrapper ul li a:hover {
    /* Ensure hover state remains rounded */
    border-radius: 10px;
}

nav .right {
    margin-left: auto;
}

nav .right a {
    margin-left: 20px;
    color: #333333 !important;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Hide the dropdown for large screens and show it only for mobile */
@media only screen and (max-width: 768px) {
    #nav-mobile {
        /* Hide the regular menu on mobile */
        display: none;
    }

    .dropdown-trigger {
        /* Show the dropdown menu */
        display: block;
        /* Move the hamburger a bit from the right */
        margin-right: 15px;
    }
}

/* For landscape mode (device width between 768px and 992px) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    #nav-mobile {
        /* Show the regular menu (About Us & Contact Us) */
        display: block;
    }

    .dropdown-trigger {
        /* Hide the hamburger menu */
        display: none;
    }
}

/* For larger screens (desktop view) */
@media only screen and (min-width: 993px) {
    #nav-mobile {
        /* Show the regular menu */
        display: block;
    }

    .dropdown-trigger {
        /* Hide the hamburger menu */
        display: none;
    }
}

/* Add Materialize styling to the nav links */
.nav-wrapper {
    padding-left: 15px;
    padding-right: 15px;
}

/* Material Design Styling for the Dropdown Menu */
.dropdown-trigger i {
    /* Increase size of the hamburger icon */
    font-size: 30px;
    /* Ensure the icon color contrasts well */
    color: #333333 !important;
}

/* Ensure About Us & Contact Us links are black */
.nav-wrapper .black-text {
    color: black !important;
}

.dropdown-content {
    /* Light background color for dropdown */
    background-color: #f9f6ee !important;
    /* Dark text color for dropdown */
    color: #333333 !important;
    /* Rounded corners */
    border-radius: 8px;
}

/* Title Styling (Outside Card) */
.page-title {
    color: #333333;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
    /* Add some spacing above and to the left */
    margin: 30px 0 10px 110px;
}

/* Card Styling for Form Pages */
.card {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    /* Adds internal spacing */
    padding: 20px;
    /* Enhances the shadow for better visibility */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    /* Makes the corners slightly rounded */
    border-radius: 12px;
    background: #f9f6ee;
    /* Increases the card width */
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.card-content {
    display: flex;
    flex-direction: column;
    /* Ensures consistent spacing between elements */
    gap: 15px;
}

/* Input Field Styling */
.input-field {
    margin-bottom: 20px;
    display: flex;
    /* Align icon and input field */
    align-items: center;
    /* Needed for material icon placement */
    position: relative;
    /* Move the input field slightly up */
    margin-top: -5px;
}

/* Input Fields and Icons Styling */
.material-icons.prefix {
    font-size: 1.8rem;
    /* Set width */
    width: 45px;
    /* Set height */
    height: 30px;
    /* Vertically center the icon */
    line-height: 30px;
    color: #333333;
    /* Space between icon and input */
    margin-right: 10px;
}

/* Input Fields Full Width */
.input-field input {
    /* Ensure input takes up full card space */
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #f6e4d2;
    border-radius: 5px;
    font-size: 1rem;
}

/* Label Styling */
.input-field label {
    color: #333333;
    margin-bottom: 5px;
    font-size: 0.9rem;
    /* Make labels stack above the input fields */
    display: block;
}

/* Input Field Focus Effects */
.input-field input[type="text"]:focus,
.input-field input[type="tel"]:focus,
.input-field input[type="email"]:focus,
.input-field input[type="number"]:focus,
.input-field input[type="date"]:focus {
    /* Change border color to main accent color */
    border-color: #333333;
    color: #333333 !important;
    outline: none;
    border-bottom: 1px solid #333333 !important;
    box-shadow: 0 1px 0 0 #333333 !important;
}

/* Match the styling of the Date of Birth field for Age field */
.input-field input#age {
    /* Text color */
    color: #333333;
    /* Font size matches dob */
    font-size: 1rem;
    /* Ensure consistent height */
    height: 2.5rem;
}

.input-field input#age:focus {
    /* Change border color to main accent color */
    border-color: #333333;
    color: #333333 !important;
    outline: none;
    border-bottom: 1px solid #333333 !important;
    box-shadow: 0 1px 0 0 #333333 !important;
}

/* Label for Age field */
.input-field label[for="age"] {
    /* Default label color */
    color: #757575;
    /* Match dob label */
    font-size: 0.9rem;
    /* Ensure proper placement */
    transform: translateY(-20px);
}

.input-field input#age:focus+label {
    /* Match focused label color */
    color: #333333 !important;
}

/* Icon Styling for Age Field */
.material-icons.prefix {
    /* Adjust to match dob icon size */
    font-size: 1.8rem;
    /* Same color as dob icon */
    color: #333333;
}

/* Icon Color Change When Input is Focused */
.input-field input:focus+label {
    /* Change label color on input focus */
    color: #333333 !important;
}

/* Icon Color when Not Focused */
.input-field .material-icons.prefix {
    /* Default icon color */
    color: #757575;
}

textarea.materialize-textarea:focus:not([readonly]) {
    /* Change border color to main accent color */
    border-color: #333333;
    color: #333333 !important;
    outline: none;
    border-bottom: 1px solid #333333 !important;
    box-shadow: 0 1px 0 0 #333333 !important;
}

textarea.materialize-textarea:focus:not([readonly])+label,
.dropdown-content li>a,
.dropdown-content li>span {
    /* Change label color on input focus */
    color: #333333 !important;
}

/* Submit Button Styling */
button.btn {
    background-color: #faf5e7 !important;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button.btn:hover {
    background-color: #f5eede !important;
}

/* Flash Message Styling */
.card-panel {
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    width: 80%;
    margin: 30px 0 10px 100px;
}

.card-panel.teal,
.card-panel.success {
    background-color: #f9f6ee !important;
    color: #333333 !important;
}

.card-panel.error {
    background-color: #d32f2f !important;
    color: white !important;
}

/* Responsive Adjustments */
@media only screen and (max-width: 600px) {
    .card {
        /* Adjust card width on smaller screens */
        width: 95%;
    }

    .page-title {
        font-size: 1.5rem;
        margin: 20px 0 10px 10px;
    }
}

/* This will make the main content area expand */
.container {
    /* Allow the content to take up remaining space */
    flex: 1;
}

/* Footer Styling */
footer {
    /* Add rounded corners */
    border-radius: 10px;
    /* Set smaller height for the footer */
    height: 50px;
    /* Optional: add some padding on the sides */
    padding: 0 20px;
    /* Example background color */
    background-color: #f9f6ee !important;
    /* Add shadow to the footer */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    /* Text color */
    color: #333333 !important;
    /* Remove margin to avoid extra space */
    margin-top: 0;
    /* Center text in footer */
    text-align: center;
    /* Enable flexbox */
    display: flex;
    /* Horizontally center text */
    justify-content: center;
    /* Vertically center text */
    align-items: center;
}

.error {
    color: red;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

.captcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    transform: scale(0.77);
    transform-origin: top center;
}

@media (min-width: 768px) {
    .captcha-wrapper {
        transform: scale(1);
        transform-origin: top center;
    }
}

.star-rating {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    margin-left: 40px;
    cursor: pointer;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label i {
    font-size: 2rem;
    transition: color 0.2s;
}

.star-filled {
    /* default filled color */
    color: #ffca28;
}

.star-empty {
    color: #ccc;
}

/* Live color based on value */
/* Red */
.star-color-1 i {
    color: #e53935;
}

/* Orange */
.star-color-2 i {
    color: #fb8c00;
}

/* Yellow */
.star-color-3 i {
    color: #fdd835;
}

/* Light green */
.star-color-4 i {
    color: #9ccc65;
}

/* Green */
.star-color-5 i {
    color: #43a047;
}

.survey-info-band {
    background-color: #fff8c5;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    width: 56.6%;
    margin: 20px auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

/* Icon inside the band */
.survey-info-band i {
    font-size: 1.6rem;
    color: #333333;
}

/* On mobile - match card responsiveness */
@media only screen and (max-width: 600px) {
    .survey-info-band {
        width: 86%;
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .survey-info-band i {
        font-size: 1.4rem;
    }
}

/* Landscape mode on small devices (mobile landscape) */
@media only screen and (max-width: 992px) and (max-height: 500px) {
    .survey-info-band {
        width: 68%;
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .survey-info-band i {
        font-size: 1.4rem;
    }
}

.material-icons.left {
    font-size: 1.8rem;
    /* Set width */
    width: 45px;
    /* Set height */
    height: 30px;
    color: #757575;
    margin-right: 10px;
}

.feedback-entry {
    margin-bottom: 20px;
}

.feedback-header {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feedback-text {
    margin-top: 0.5rem;
}

.scrollable-feedback {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.scrollable-feedback::-webkit-scrollbar {
    width: 6px;
}

.scrollable-feedback::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}