/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

#google_translate_element {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* Container Styling */
.reg-container, .survey-container {
    max-width: 90%;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    clear: both; /* Add this to prevent floating issues */
}

/* Header Styling */
#header_survey {
    width: 100%;
    margin: 20px auto; /* Changed from '20px 0' to center it */
    padding: 0 20px;
    text-align: center;
    clear: both; /* Add this to prevent floating issues */
}

#header_survey h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    width: 100%; /* Add this to ensure full width */
}

	/* #surveyCode {
		color: red;
	} */

.survey-code-container #headerSurveyCode {
	color: red;
}

.survey-code-container {
    color: red;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;

}
.copy-icon {
	width: 30px;
	height: 30px;
	cursor: pointer;
	/* vertical-align: middle; */
}

.hidden {
	display: none;
}
.introText {
	text-align: justify;
	text-justify: inter-word;
	font-style:italic;
}

.thankText {
	text-align: center;
	text-justify: inter-word;
	font-style:italic;
}

/* Popup box style */
#popup{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

/* Style for the code (big, bold, red) */
#popup .code {
    font-size: 36px;
    color: #f44336; /* Red color */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Style for the message */
#popup .message {
    font-size: 18px;
    color: #333;
}

/* Close buttons */
#close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #f44336; /* Red color */
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Overlay styles */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* Copy button styles */
.copy-btn {
    background: #4CAF50 !important;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #45a049;
}

#popupCopyMessage, #headerCopyMessage, #indexCopyMessage {
    color: green;
    font-weight: bold;
    margin-top: 5px;
}

/* Form Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Button Styling */
button {
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

/* Specific Style for Navigation Buttons */
.nav-button {
    background-color: #27ae60; /* Green color */
}

/* Red Exit Button */
.exit-button {
    background-color: #e74c3c; /* Red */
}

.exit-button:hover {
    background-color: #c0392b; /* Darker Red */
}

.submit-button {
    background-color: #e74c3c; /* Red */
}

.submit-button:hover {
    background-color: #c0392b; /* Darker Red */
}

.nav-button:hover {
    background-color: #219150; /* Darker green on hover */
}

.reg_btn {
    width: 100%;
    margin-top: 20px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Section Styling */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Map Container Styling */
.mapContainer {
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
	width: 100%;
    height: 400px;
    /* max-width: 600px; */ /* Optional max width */
}

/* Response Message Styling */
#responseMemMessage, #responseTripMessage {
    margin-top: 5px;
	margin-bottom: 5px;
    font-size: 14px;
	color: green;
    font-weight: bold;
}

.leaflet-control-geocoder {
    background: #007bff; /* Change background color */
    color: white; /* Text color */
    border-radius: 8px; /* Rounded corners */
    padding: 5px 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.leaflet-control-geocoder-icon {
    background-image: url('../images/magnifying_glass_icon.png') !important; /* Custom search icon */
    background-size: contain !important;  /* Ensures the full icon is visible */
    background-repeat: no-repeat !important; /* Prevents repeating */
    background-position: center !important; /* Centers the icon */
	width: 30px !important; /* Adjust icon size */
    height: 30px !important;
}



.success-message {
    font-size: 18px;
    color: green;
	font-style: italic; 
}

.error-message {
    font-size: 18px;
	color: red;
    font-style: italic;
}

.dispTrips	{
	margin: 10px 0px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .reg-container, .survey-container {
        padding: 15px;
    }

    table th, table td {
        padding: 8px;
    }

    button {
        width: 100%;
    }
	#mapContainer {
        width: 100%;
        /* max-width: 450px; */
        height: 300px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .form-group input[type="text"],
    .form-group input[type="number"],
	.form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
	#mapContainer {
         width: 100%;
        /* max-width: 300px; */
        height: 200px;
        overflow: hidden;
    }
	#close-btn {
		margin-bottom:10px;
	}
}


