/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #4facfe, #34d058);
    color: #333;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: visible;
}

/* Header Styling */
h1 {
    text-align: center;
    color: #34d058;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

fieldset {
    border: 2px solid #4facfe;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #4facfe;
    padding: 0 10px;
}

/* Labels and Inputs */
label {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    transition: box-shadow 0.3s, border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #34d058;
    box-shadow: 0 0 5px rgba(52, 208, 88, 0.5);
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 280px; /* Prevent inputs from shrinking too small */
}

.form-group.full-width {
    flex: 100%; /* Ensures this group spans the full width */
}

/* Error Styles */
.error-msg {
    color: red;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}

input.error,
select.error {
    border-color: red;
}

input.focused {
    background-color: #e8f5e9;
}

/* Buttons */
button {
    background: #34d058;
    color: #fff;
    font-size: 1.2em;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #28a745;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}
.error {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 0.9em;
}

.focused {
    outline: 2px solid #4CAF50;
}
