/* Guestbook Form Styles */
.guestbook-form-container {
}

.guestbook-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 400;
    margin-bottom: 8px;
    color: #000;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #000;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.signature-hint {
    font-size: 13px;
    color: #777;
    margin: 0 0 15px 0;
    font-style: italic;
}

/* Signature Controls */
.signature-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

#clear-signature {
    padding: 10px 20px;
}

#signature-color {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
}

#signature-color:hover {
    border-color: #000;
}

/* Signature Pad Canvas */
#signature-pad {
    border: 1px solid #000;
    border-radius: 0;
    background: white;
    display: block;
    width: 100%;
    height: 200px;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

button {
    border: none;
    padding: 12px 24px;
    background: #000;
    color: white;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

button:hover {
    background: #333;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0;
    display: none;
    font-size: 14px;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Guestbook Wall - Desktop & Mobile */
.guestbook-wall-container {
    width: 100%;
    overflow: visible;
}

.guestbook-wall {
    position: relative;
    width: 100%;
}

/* Desktop: fixed 100vh container */
@media (min-width: 769px) {
    .guestbook-wall {
        height: 100vh;
        overflow: hidden;
    }
}

/* Mobile: auto height to contain all signatures */
@media (max-width: 768px) {
    .guestbook-wall {
        height: auto;
        min-height: 600px;
    }
}

/* Signatures - Same dimensions, scattered positioning */
.wall-signature {
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    mix-blend-mode: multiply;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    draggable: false;
}

/* Desktop: 200px x 100px (2:1 aspect ratio) */
@media (min-width: 769px) {
    .wall-signature {
        width: 200px;
        height: 100px;
    }
}

/* Mobile: 120px x 60px (2:1 aspect ratio) */
@media (max-width: 768px) {
    .wall-signature {
        width: 120px;
        height: 60px;
    }
}

.wall-signature img,
.wall-signature .signature-image {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Pagination Controls */
.guestbook-pagination {
    position: relative;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
    transform: none;
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: center;
    z-index: 100;
    background: transparent;
    padding: 20px;
    border: 0;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 40px;
}

.pagination-btn {
    border: 1px solid #000;
    background: white;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    padding: 10px 20px;
}

.pagination-btn:hover:not(.disabled) {
    background: #000;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    white-space: nowrap;
}

.no-entries {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}