/* style.css */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.container {
    margin-top: 30px;
    padding: 15px;
    width: 100%;
}

/* Card */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    padding: 20px;

    width: 100% !important;
    max-width: 650px;
    margin: auto;
    border: none;
}

/* Card Title Center */
h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Form */
.card-body form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-body form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-body form input,
.card-body form textarea,
.card-body form select {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    font-size: 15px;
}

/* Submit button centered */
.card-body form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;

    width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.card-body form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Link */
.link {
    text-align: center;
    margin-top: 15px;
}

.link a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

.link a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .container {
        margin-top: 15px;
        padding: 10px;
    }

    .card {
        padding: 15px;
        max-width: 420px; /* ✅ Mobile max width */
    }

    .card-body form button[type="submit"] {
        width: 80%;
    }
}
