body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    /*background-color: #f0f2f5; /* A slightly different, softer light gray */
    background-color: #fff; /* A slightly different, softer light gray */
    color: #333; /* Darker default text color for better contrast */
    line-height: 1.6;
    margin: 0;
    padding: 20px 0; /* Add some padding to the body for spacing on smaller screens */
}

.container {
    background-color: #ffffff;
    padding: 2.5rem 3rem; /* Increased padding */
    /*border-radius: 0.75rem; /* Slightly more rounded corners */
    /*box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1); /* Softer, more diffused shadow */
    max-width: 1000px; /* Max width for better readability on large screens */
}

h1.mb-4.text-center {
    /*color: #0d6efd; /* Bootstrap primary blue for main title */
    font-weight: 600; /* Bolder title */
    margin-bottom: 2.5rem !important; /* Increased margin */
}

h3.mt-4.mb-3 {
    color: #495057; /* A softer color for section headers */
    font-weight: 500;
    border-bottom: 2px solid #e9ecef; /* Subtle bottom border for separation */
    padding-bottom: 0.75rem;
    margin-top: 2.5rem !important; /* Consistent top margin */
    margin-bottom: 1.75rem !important; /* Adjusted bottom margin */
}

hr {
    border-top: 1px solid #e0e0e0; /* Lighter and softer hr */
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.form-label {
    font-weight: 600; /* Bolder labels for clarity */
    color: #555; /* Slightly darker label color */
    margin-bottom: 0.5rem;
}

.form-control,
.form-select { /* Added form-select for future use if any */
    border: 1px solid #ced4da;
    border-radius: 0.375rem; /* Standard Bootstrap rounding */
    padding: 0.75rem 1rem; /* More comfortable padding */
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe; /* Bootstrap focus color */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap focus shadow */
    /* background-color: #fff; Remove any potential conflicting background on focus */
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1; /* Firefox */
}

textarea.form-control {
    min-height: 100px; /* Ensure textareas have a decent default height */
}

.btn-primary {
    background-color: #0d6efd; /* Bootstrap primary blue */
    border-color: #0d6efd;
    padding: 0.75rem 1.75rem; /* Generous padding */
    font-size: 1.05rem; /* Slightly larger font */
    font-weight: 500;
    border-radius: 0.375rem; /* Consistent border radius */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.btn-primary:hover {
    background-color: #0b5ed7; /* Darker shade on hover */
    border-color: #0a58ca;
    transform: translateY(-2px); /* Slight lift on hover */
}

.btn-primary:active {
    transform: translateY(0px); /* Reset lift on click */
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5); /* Bootstrap focus shadow for buttons */
}

/* Custom validation highlight for invalid fields */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    background-color: rgba(var(--bs-danger-rgb), 0.05); /* Even more subtle background tint for invalid fields */
    /* Bootstrap handles border color and icon */
}

.was-validated .form-control:valid,
.form-control.is-valid {
    background-color: rgba(var(--bs-success-rgb), 0.05); /* Subtle background tint for valid fields */
     /* Bootstrap handles border color and icon */
}

.text-muted {
    font-size: 0.9rem;
    color: #6c757d !important; /* Ensure muted text is clearly styled */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    h1.mb-4.text-center {
        font-size: 1.75rem; /* Adjust heading size for smaller screens */
        margin-bottom: 2rem !important;
    }

    h3.mt-4.mb-3 {
        font-size: 1.25rem;
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .btn-primary {
        width: 100%; /* Make button full width on smaller screens for easier tapping */
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1.5rem 1rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    body {
        padding: 10px 0;
    }
}