/* Guestbook Modal Styling */
#guestbook-modal {
    --gb-primary: #667eea;
    --gb-primary-dark: #5568d3;
    --gb-text: #333;
    --gb-text-light: #666;
    --gb-border: #e0e0e0;
    --gb-success: #4caf50;
}

.guestbook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

.guestbook-card {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Move to the left side of the screen */
    right: unset; /* Remove right alignment */
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    pointer-events: auto;
    animation: guestbook-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guestbook-card h3 {
    color: var(--gb-primary);
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.guestbook-card p {
    color: var(--gb-text-light);
    margin: 0 0 16px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#guestbook-form input {
    padding: 10px 12px;
    border: 1px solid var(--gb-border);
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.2s ease;
}

#guestbook-form input:focus {
    outline: none;
    border-color: var(--gb-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#guestbook-form input::placeholder {
    color: #999;
}

.guestbook-submit,
.guestbook-skip {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guestbook-submit {
    background: var(--gb-primary);
    color: white;
}

.guestbook-submit:hover {
    background: var(--gb-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.guestbook-submit:active {
    transform: translateY(0);
}

.guestbook-skip {
    background: transparent;
    color: var(--gb-text-light);
    border: 1px solid var(--gb-border);
}

.guestbook-skip:hover {
    background: #f5f5f5;
    color: var(--gb-text);
}

.guestbook-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--gb-text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.guestbook-close:hover {
    color: var(--gb-text);
}

#guestbook-modal.guestbook-closing .guestbook-card {
    animation: guestbook-slide-out 0.3s ease-out forwards;
}

#guestbook-modal.guestbook-closing .guestbook-overlay {
    animation: guestbook-fade-out 0.3s ease-out forwards;
}

@keyframes guestbook-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes guestbook-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes guestbook-slide-in {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes guestbook-slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .guestbook-card {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .guestbook-card h3 {
        font-size: 1.1em;
    }

    .guestbook-card p {
        font-size: 0.85em;
    }
}

