/* Basic styling for URS forms */
/* General styling for URS forms */
.urs-form-wrapper {
    background-color: #ffffff; /* White background, similar to site content */
    border: 1px solid #eee; /* Lighter border */
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.urs-form h2 {
    color: #1d1d1d; /* Darker text for headings */
    border-bottom: 2px solid #ee0000; /* Red accent line */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.urs-form h3 {
    color: #ee0000; /* Red for sub-headings */
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.urs-form h4 {
    color: #1d1d1d;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.urs-form p {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #333;
    display: flex; /* Use flexbox for better alignment of label and input */
    align-items: center; /* Vertically align items in the middle */
    gap: 15px; /* Space between label and input */
}

.urs-form label {
    flex-shrink: 0; /* Prevent label from shrinking */
    width: 180px; /* Fixed width for labels */
    margin-bottom: 0; /* Remove default margin */
    font-weight: bold;
    color: #1d1d1d; /* Darker label text */
    font-size: 15px;
}

.urs-form input[type="text"],
.urs-form input[type="number"],
.urs-form input[type="email"], /* Added email input type */
.urs-form select {
    flex-grow: 1; /* Allow input/select to take remaining space */
    width: auto; /* Override 100% width for flex item */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
    background-color: #fefefe;
    transition: border-color 0.3s ease;
}

.urs-form input[type="text"]:focus,
.urs-form input[type="number"]:focus,
.urs-form select:focus {
    border-color: #ee0000; /* Red border on focus */
    outline: none;
}

.urs-form input[type="checkbox"],
.urs-form input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1); /* Slightly larger checkboxes/radios */
}

.urs-form input[type="submit"] {
    background-color: #ee0000; /* Main accent color for submit button */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    margin-top: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.urs-form input[type="submit"]:hover {
    background-color: #d40000; /* Slightly darker red on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .urs-form-wrapper {
        padding: 20px;
    }
    .urs-form h2 {
        font-size: 24px;
    }
    .urs-form h3 {
        font-size: 20px;
    }
    .urs-form p {
        flex-direction: column; /* Stack label and input vertically on small screens */
        align-items: flex-start; /* Align items to the start */
        gap: 8px; /* Smaller gap when stacked */
    }
    .urs-form label {
        width: 100%; /* Full width for labels on small screens */
    }
    .urs-form input[type="text"],
    .urs-form input[type="number"],
    .urs-form input[type="email"],
    .urs-form select {
        width: 100%; /* Full width for inputs on small screens */
    }
    .urs-form input[type="submit"] {
        width: 100%;
    }
}

/* Message styling */
#ahu-form-message,
#chiller-form-message,
#fancoil-form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    font-size: 15px;
    font-weight: 500;
}

#ahu-form-message.success,
#chiller-form-message.success,
#fancoil-form-message.success {
    background-color: #e6ffed; /* Light green */
    color: #1a7a3b; /* Dark green text */
    border-color: #b3e6c7;
    display: block;
}

#ahu-form-message.error,
#chiller-form-message.error,
#fancoil-form-message.error {
    background-color: #ffe6e6; /* Light red */
    color: #cc0000; /* Dark red text */
    border-color: #e6b3b3;
    display: block;
}
