/* Body Styling */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
}

/* Form Container */
.form-container {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding-bottom: 20px;
}

/* Form Header */
.form-header {
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Form Body */
form {
    padding: 20px;
    text-align: left;
}

/* Input Fields */
input, select, textarea, button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

textarea {
    max-width: 100%;
    border: 2px solid #ccc;
    border-radius: 8px;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* Radio Buttons */
input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* Submit Button */
button {
    background: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    padding: 12px;
}

button:hover {
    background: #27ae60;
    transition: 0.3s;
}

/* Back to Home Button */
.form-container a button {
    background: #3498db;
    width: 100%;
    margin-top: 10px;
}

.form-container a button:hover {
    background: #2980b9;
}

/* Success/Error Message */
p {
    text-align: center;
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
}

p[style*="color: green"] {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    font-weight: bold;
}

p[style*="color: red"] {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        width: 95%;
    }

    .form-header {
        font-size: 20px;
    }

    input, select, textarea, button {
        font-size: 14px;
        padding: 10px;
    }
}
