/* Namespaced container */
.submit-form {
    font-family: Montserrat, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../images/gunung-dara.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 50px;
    padding: 20px;
}
.submit-form .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 10px;
}

.submit-form .radio-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.submit-form .radio-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-form .radio-button:hover {
    background-color: #ddd;
}

.submit-form .radio-container input[type="radio"]:checked + label {
    background-color: #2196f3 !important;
    color: #fff;
}

.submit-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: left; /* Left-aligns text within form */
}

.submit-form {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    white-space: nowrap;
}

.submit-form label {
    margin-right: 10px;
}

.submit-form input,
.submit-form select {
    margin-right: 5px;
}

.submit-form .unit {
    margin-left: 5px;
}

.submit-form input.long-input {
    width: 70%;
}

.submit-form .form-row input[type="checkbox"],
.submit-form .form-row input[type="radio"] {
    display: none;
}

.submit-form .form-row .radio-container label {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 16px;
    background-color: #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.submit-form .form-row .radio-container label:hover {
    background-color: #ccc;
}

.submit-form .form-row .radio-container label.checked {
    background-color: #4caf50;
    color: #fff;
}

.submit-form .form-row .submit-button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.submit-form li {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.submit-form h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.submit-form p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.submit-form .topnav {
    overflow: hidden;
    background-color: #fff;
    height: 50px;
}

.submit-form .topnav a {
    float: left;
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.submit-form .topnavbuttons a {
    float: left;
    display: block;
    color: #000 !important;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.submit-form .project-title {
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: right;
    font-size: 24px;
    font-weight: 700;
    z-index: 9999;
}

.submit-form #loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 9999;
}

.submit-form #loading-indicator {
    margin: 0 auto;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.submit-form #website-used {
    width: 200px !important;
    height: 30px !important;
    padding: 4px !important;
    font-size: 12px !important;
}

/* Centering and spacing adjustments */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: left; /* Left-aligns text within form */
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px; /* Adds spacing between rows */
}

.form-row label {
    flex: 1; /* Allows the label to take up space evenly */
    text-align: right;
    padding-right: 10px;
}

.form-row input,
.form-row select {
    flex: 2; /* Allows input/select elements to take up more space */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

footer .nav a.nav-link {
    color: black !important;
}

.unit {
    padding-left: 5px;
    font-size: 14px;
    color: #555;
}

.checkbox {
    vertical-align: middle;
    margin-right: 5px;
}

.popup-text {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

        /* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    overflow: auto; /* Enable scrolling for long content */
}

.modal-content {
    background-color: #fff; /* White background */
    margin: 15% auto; /* Center the modal */
    padding: 20px;
    border-radius: 8px; /* Smooth corners */
    max-width: 500px; /* Set a max width for the modal */
    text-align: center; /* Center-align text */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

#constructionModal {
    display: block; /* Modal should be hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.4); /* Semi-transparent background */
    overflow: auto; /* Enable scrolling if needed */
    padding-top: 60px;
}

#constructionModal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust the width as needed */
}

/* Close Button */
.close {
  position: absolute; /* Position relative to the modal content */
  top: 10px; /* Adjust vertical position */
  right: 10px; /* Adjust horizontal position */
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Center the spinning icon vertically and horizontally */
#loading-indicator .spinner {
    margin: 0 auto; /* Center horizontally */
    display: block; /* Make the spinner a block-level element */
    border: 4px solid rgba(255, 255, 255, 0.3); /* Semi-transparent border */
    border-top: 4px solid #3498db; /* Blue border on top for animation */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Spin animation */
}

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


@media only screen and (max-width: 414px) {
    .submit-form {
        background-image: none;
        background-color: #000;
    }

    .submit-form .topnav {
        display: none;
    }

    .submit-form .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 48px;
        right: 0;
        background-color: #fff;
        overflow-x: hidden;
        transition: 0.5s;
        box-shadow: 0 10px 11px 0 rgba(33, 33, 33, 0.8);
    }

    .submit-form .sidenav a {
        padding: 8px 8px 8px 32px;
        font-size: 25px;
        color: #333;
        display: block;
        transition: 0.3s;
        width: 100%;
    }

    .submit-form .sidenav a:hover {
        color: #008489;
    }

    .submit-form .nav-button {
        padding: 10px;
        flex: 1;
        text-align: center;
        border: none;
        background-color: #fff;
    }

    .submit-form {
        position: absolute;
        width: 100%;
        max-width: 100%;
        z-index: 100;
    }

    /* Ensure the navbar has proper padding on mobile */
    .navbar {
        padding: 0.5rem 1rem;
    }

    /* Adjust the brand logo and name spacing */
    .navbar-brand {
        display: flex;
        align-items: center;
    }

    .submit-form .desktop {
        display: none;
    }

    /* Style for the dropdown menu items */
    .dropdown-menu {
        margin-top: 0; /* Avoids unnecessary spacing from the dropdown */
    }

    /* Spacing adjustments for mobile */
    @media (max-width: 600px) {
        .navbar .nav-item {
            padding: 0.5rem 0;
        }
        .navbar .nav-link {
            text-align: left;
            padding: 0.5rem 1rem;
        }
    }
}
