/*
Theme Name: Bookio Child
Theme URI: http://nile.ke/
Template: bookio
Author: Nile Kenya
Author URI: http://nile.ke/
Description: A modified child theme of the Bookio theme.
Version: 1.1.1730298985
Updated: 2024-10-30 14:36:25

*/

/*
 * Styling custom buttoms
 * /
 
 .button.borrow-button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
}

.button.reserve-button {
    background-color: #ffc107;
    color: #000;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
}

.button.download-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    opacity: 0.8;
}

/* Membership form styling */
/* Center the form container */
.wpcf7-form {
    max-width: 600px !important; /* Adjust this value for ideal desktop width */
    margin: 0 auto; /* Centers the form */
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Subtle depth */
}

/* Style form elements to fit container */
.wpcf7-form .form-group {
    margin-bottom: 20px;
}

.wpcf7-form-control {
    width: 100% !important; /* Force full width of parent container */
    max-width: 100%; /* Prevent overflow */
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

/* Labels */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

/* Submit button */
.wpcf7-submit {
    width: 100%;
    background: #2b6cb0;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.wpcf7-submit:hover {
    background: #2c5282;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 20px;
        margin: 0 15px; /* Prevents edge-to-edge on mobile */
    }
}