/* General body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4; /* Light background */
    color: #333; /* Text color */
}

/* Form styling */
#happyForm {
    max-width: 700px; /* Centering the form */
    margin: 20px auto; /* Auto margin for horizontal centering */
    padding: 20px !important; /* Ensured padding */
    background: #fff; /* White background for the form */
    border-radius: 10px !important; /* More pronounced rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Form section styles */
.form-section {
    margin-bottom: 10px !important; /* Reduced space between sections */
}

/* Label styles */
label {
    display: block;
    margin-bottom: 2px !important; /* Reduced space between label and input */
    font-weight: bold; /* Bold labels */
}

/* Input and Textarea styles */
input[type="text"],
input[type="number"],
textarea {
    width: calc(100% - 12px) !important; /* Full width minus padding */
    padding: 8px !important; /* Padding inside input */
    border: 2px solid #B8B8BD !important; /* Red border */
    border-radius: 8px !important; /* Rounded corners */
    transition: border-color 0.3s; /* Smooth border transition */
    margin-bottom: 10px !important; /* Reduced space between fields */
}

/* Highlight invalid fields */
.invalid {
    border: 2px solid red !important; /* Highlight invalid fields */
}

/* Focus styles */
input:focus,
textarea:focus {
    border-color: #990000 !important; /* Darker red on focus */
    outline: none !important; /* Remove default outline */
}

/* Button styles */
button,
input[type="submit"] {
    background-color: #cc0000 !important; /* Red background */
    color: white !important; /* White text */
    border: none !important; /* No border */
    padding: 10px 15px !important; /* Padding */
    border-radius: 5px !important; /* Rounded corners */
    font-size: 16px !important; /* Font size */
    cursor: pointer !important; /* Pointer cursor */
    transition: background-color 0.3s !important; /* Smooth transition */
    margin-right: 10px !important; /* Space between buttons */
}

/* Button hover effects */
button:hover,
input[type="submit"]:hover {
    background-color: #990000 !important; /* Darker red on hover */
}

/* Responsive design */
@media (max-width: 600px) {
    #happyForm {
        padding: 15px !important; /* Reduce padding on small screens */
    }

    input[type="text"],
    input[type="number"],
    textarea {
        width: 100% !important; /* Full width on mobile */
    }

    .name-surname-container {
        flex-direction: column; /* Stack inputs on mobile */
    }

    .name-surname-container > div {
        width: 100% !important; /* Full width for name and surname */
    }
}

/* Success and error messages */
.happy-success {
    color: #28a745; /* Green for success messages */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Space above the message */
}

.happy-error {
    color: #dc3545; /* Red for error messages */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Space above the message */
}
