/* Reset some base elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

main {
    padding: 40px 20px;
}

.container {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: bold;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    background-color: white;
}

/* Submit button */
.form-group input[type="submit"],
.form-group button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-group input[type="submit"]:hover,
.form-group button:hover {
    background-color: #2980b9;
}

/* Flash messages */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.alert-error,
.alert-danger {
    background-color: #f2dede;
    color: #a94442;
}

.alert-info {
    background-color: #d9edf7;
    color: #31708f;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 15px;
    }

    .form-group input[type="submit"],
    .form-group button {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 410px) {
    .container{
        width: 100%;
        margin: 0px;
    }

    main {
        padding: 40px 0px;
    }
}