/* General Styling for the Comments Container */
body {
    background-color: transparent;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 20px; /* Add padding directly to the body */
    border: 1px solid #e1e1e1; /* Light grey border */
    border-radius: 20px; /* Rounded corners */
    box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
    display: flow-root; /* NEW: A modern fix for containing margins correctly */
}

/* Container is now mainly for max-width and centering */
.container {
    padding: 0; /* Padding is now on the body */
    max-width: 700px;
    margin: 0 auto;
}

/* Comment Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

button {
    background-color: #4e7197;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 10px; /* Added space below the button */
}

button:hover {
    background-color: #3a5673; /* Corrected to the darker blue hover color */
}

/* Hidden Honeypot Field */
.honeypot {
    position: absolute;
    left: -5000px;
    visibility: hidden;
}

/* Comment List Styling */
.comment-item {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Slight background for each comment */
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items-center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    font-size: 0.85em;
    color: #888;
}

.comment-body p {
    margin: 0;
}

/* Success Message Styling */
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #d6e9c6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px; /* This is the space we want to see */
}

/* --- Responsive Adjustments for Small Screens --- */
@media (max-width: 600px) {
    body {
        border: none; /* Remove the border */
        padding: 0;   /* Remove the outer padding */
    }
}

