/**
 * Livre d'Or (Guest Book) Styles
 * 
 * Frontend styles for the guest book feature
 * Designed to match the style9.css aesthetic
 */

/* Container */
.livre-or-container {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Testimonials Section */
.livre-or-testimonials {
    flex: 1 1 100%;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .livre-or-testimonials {
        flex: 0 0 60%;
        padding-right: 30px;
    }
}

/* Individual Testimonial */
.livre-or-testimonial {
    position: relative;
    margin-bottom: 30px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #aa8453;
    transition: all 0.3s ease;
}

.livre-or-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.livre-or-testimonial:before {
    content: '\201C'; /* Opening quotation mark */
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Gilda Display', serif;
    font-size: 60px;
    color: rgba(170, 132, 83, 0.2);
    z-index: 0;
}

.livre-or-content {
    position: relative;
    z-index: 1;
}

.livre-or-content p {
    margin-bottom: 15px;
    font-style: italic;
}

.livre-or-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.livre-or-name {
    font-family: 'Gilda Display', serif;
    font-size: 18px;
    color: #fff;
}

.livre-or-dates {
    font-size: 14px;
    color: #aa8453;
}

.livre-or-empty {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #aa8453;
}

/* Form Section */
.livre-or-form-container {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .livre-or-form-container {
        flex: 0 0 40%;
    }
}

.livre-or-form-container h3 {
    margin-bottom: 25px;
    font-family: 'Gilda Display', serif;
    font-size: 24px;
    color: #fff;
}

.livre-or-form {
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #aa8453;
}

/* Form Elements */
.livre-or-form .form-group {
    margin-bottom: 20px;
}

.livre-or-form label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: #fff;
}

.livre-or-form label .required {
    color: #aa8453;
}

.livre-or-form small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.livre-or-form input[type="text"],
.livre-or-form input[type="date"],
.livre-or-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.livre-or-form input[type="text"]:focus,
.livre-or-form input[type="date"]:focus,
.livre-or-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #aa8453;
    outline: none;
}

.livre-or-form input.error,
.livre-or-form textarea.error {
    border-color: #e74c3c;
}

.livre-or-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.livre-or-submit {
    display: inline-block;
    padding: 12px 30px;
    background-color: #aa8453;
    border: none;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.livre-or-submit:hover {
    background-color: #8a6a43;
}

.livre-or-submit:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Response Messages */
.livre-or-response {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-left: 3px solid;
}

.livre-or-response.success {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.livre-or-response.error {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.livre-or-response p {
    margin: 0;
    color: #fff;
}

/* ReCaptcha Styling */
.g-recaptcha {
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .livre-or-container {
        flex-direction: column;
    }

    .livre-or-testimonials,
    .livre-or-form-container {
        padding: 0;
    }
}
