/* Guestbook Section Styling to match Contact Form Box */
#guestbook-section {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#guestbook-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

/* Guestbook Form */
#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%; /* Form should fill the new container */
    margin: 0 auto 2rem auto;
}

#guestbook-form .form-row {
    display: flex;
    gap: 1rem;
}

#guestbook-form input[type="text"],
#guestbook-form input[type="password"] {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#guestbook-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    min-height: 120px;
}

#guestbook-form button {
    width: 100%;
    padding: 0.9rem;
    background-color: #BF5700;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#guestbook-form button:hover {
    background-color: #a04a00;
}

/* Guestbook Entries */
.guestbook-list {
    list-style: none;
    padding: 0;
    max-width: 100%; /* Entries should fill the container */
    margin: 0 auto;
}

.guestbook-list.level-0 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guestbook-entry {
    background-color: #f8f9fa; /* Slightly different background for entries */
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.guestbook-entry strong {
    color: #0056b3;
}

.guestbook-entry .timestamp {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.guestbook-entry p {
    margin: 0.75rem 0;
}

.guestbook-entry .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.guestbook-entry .actions button {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
}
.guestbook-entry .actions button:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}


/* Comments */
.comments-container {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 2px solid #e0e0e0;
}

.guestbook-list.level-1,
.guestbook-list.level-2 { /* Add more levels if needed */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Dynamic Forms (for reply/edit) */
.dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dynamic-form textarea {
    min-height: 60px;
    font-size: 0.9rem;
}

.dynamic-form input,
.dynamic-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.dynamic-form div {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.dynamic-form button {
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid transparent;
}

.dynamic-form button[type="submit"] {
    background-color: #28a745;
    color: white;
}
.dynamic-form button[type="submit"]:hover {
    background-color: #218838;
}

.dynamic-form button[type="button"] {
    background-color: #6c757d;
    color: white;
}
.dynamic-form button[type="button"]:hover {
    background-color: #5a6268;
}