/* General Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e0f2f7 0%, #c8e6c9 100%); /* Soft gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    color: #333; /* Default text color */
}

/* Form Container Styling */
.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Stronger, softer shadow */
    width: 100%;
    max-width: 550px; /* Slightly wider form */
    box-sizing: border-box;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6); /* Subtle border */
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

/* Form Title */
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em; /* Slightly larger title */
    font-weight: 700; /* Bolder title */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle text shadow */
}

/* Form Group Styling */
.form-group {
    margin-bottom: 25px; /* More vertical spacing */
    text-align: left;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 10px; /* More space below label */
    color: #34495e;
    font-weight: 600;
    font-size: 1em; /* Slightly larger label font */
    transition: color 0.3s ease;
}

/* Input and Select Styling */
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 14px; /* More padding */
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 10px; /* More rounded inputs */
    box-sizing: border-box;
    font-size: 1.05em; /* Slightly larger font */
    color: #333;
    background-color: #f9f9f9; /* Off-white background for inputs */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #5cb85c; /* Green focus border */
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2); /* Green glow on focus */
    background-color: #ffffff; /* White background on focus */
    outline: none;
}

/* Textarea specific styling */
textarea {
    resize: vertical;
    min-height: 100px; /* Taller textarea */
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* More spacing between checkboxes */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.3); /* Larger checkboxes */
    accent-color: #5cb85c; /* Green checkbox color */
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.95em;
    color: #555;
    cursor: pointer; /* Indicate clickable label */
}

/* Error Message Styling */
.error-message {
    color: #e74c3c;
    font-size: 0.88em;
    margin-top: 8px; /* More space above error message */
    min-height: 20px; /* Ensure consistent height */
    font-weight: 500;
}

/* Submit Button Styling */
button[type="submit"] {
    background: linear-gradient(45deg, #5cb85c, #4cae4c); /* Green gradient */
    color: white;
    padding: 16px 30px; /* More padding */
    border: none;
    border-radius: 10px; /* Rounded button */
    font-size: 1.2em; /* Larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions for all properties */
    width: 100%;
    margin-top: 30px; /* More space above button */
    box-shadow: 0 5px 15px rgba(0, 128, 0, 0.2); /* Green shadow */
    letter-spacing: 0.5px; /* Slightly spaced letters */
}

button[type="submit"]:hover {
    background: linear-gradient(45deg, #4cae4c, #5cb85c); /* Reverse gradient on hover */
    transform: translateY(-3px); /* Lift button on hover */
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.3); /* Enhanced shadow on hover */
}

button[type="submit"]:active {
    transform: translateY(0); /* Press down effect */
    box-shadow: 0 2px 5px rgba(0, 128, 0, 0.2);
}

/* Form Message (Success/Error) Styling */
.form-message {
    margin-top: 25px; /* More space above message */
    padding: 15px; /* More padding */
    border-radius: 10px; /* Rounded corners */
    font-weight: 600;
    font-size: 1em;
    display: none;
    animation: fadeIn 0.5s ease-out; /* Fade-in animation */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info { /* For loading messages */
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 25px;
        margin: 15px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    input[type="text"],
    select,
    textarea {
        padding: 12px;
        font-size: 1em;
    }

    button[type="submit"] {
        padding: 14px 25px;
        font-size: 1.1em;
        margin-top: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 18px;
        margin: 10px;
    }

    h1 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    label {
        font-size: 0.95em;
    }

    input[type="text"],
    select,
    textarea {
        padding: 10px;
        font-size: 0.95em;
    }

    button[type="submit"] {
        padding: 12px 20px;
        font-size: 1em;
        margin-top: 20px;
    }
}