/**
 * Public styles for Forever Bracelet Booking
 */

/* Booking form container */
.fbb-booking-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Page Title */
.fbb-page-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 600;
}

/* Product Information Section */
.fbb-product-information-section {
    margin-bottom: 40px;
}

/* Gallery Section - Centered */
.fbb-gallery-section {
    margin: 0 auto 40px;
    text-align: center;
    max-width: 800px;
}

/* Product Gallery */
.fbb-product-gallery {
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
}

.fbb-main-image {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    text-align: center;
}

.fbb-main-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.fbb-thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fbb-thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    padding: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.fbb-thumbnail.active {
    border-color: #2271b1;
    opacity: 1;
}

.fbb-thumbnail:hover {
    opacity: 1;
}

.fbb-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Information */
.fbb-product-information {
    flex: 1;
    min-width: 300px;
}

.fbb-introduction {
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.fbb-deposit-info {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #2271b1;
}

.fbb-deposit-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.fbb-pricing-section {
    margin-top: 20px;
}

.fbb-pricing-section h3 {
    font-size: 18px;
    margin: 15px 0 8px;
    color: #333;
}

.fbb-pricing-section p {
    margin-bottom: 15px;
    line-height: 1.4;
}

.fbb-note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    font-size: 14px;
}

/* Booking Section Title */
.fbb-booking-section-title {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.fbb-booking-section-title h2 {
    font-size: 24px;
    color: #333;
}

/* Information box */
.fbb-booking-info-box {
    display: flex;
    align-items: flex-start;
    background: #f0f8ff;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.fbb-info-icon {
    margin-right: 10px;
    font-size: 20px;
}

.fbb-info-content {
    font-size: 14px;
}

/* Form sections */
.fbb-booking-section {
    margin-bottom: 30px;
}

.fbb-booking-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Form rows */
.fbb-form-row {
    margin-bottom: 15px;
}

.fbb-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.fbb-form-row input[type="text"],
.fbb-form-row input[type="email"],
.fbb-form-row input[type="tel"],
.fbb-form-row select,
.fbb-form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fbb-form-row textarea {
    min-height: 100px;
}

.fbb-form-row .required {
    color: #c00;
}

/* Error messages */
.fbb-error-message {
    color: #c00;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Submit button */
.fbb-form-submit {
    margin-top: 30px;
}

.fbb-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.fbb-button:hover {
    background: #135e96;
}

/* Messages */
.fbb-message {
    margin: 10px 0;
    padding: 8px 12px;
    font-size: 14px;
    display: none;
}

.fbb-message.fbb-success {
    background: #f0f8f0;
    border-left: 4px solid #5b841b;
}

.fbb-message.fbb-error {
    background: #fff8f8;
    border-left: 4px solid #c00;
}

.fbb-message.fbb-info {
    background: #f8f8ff;
    border-left: 4px solid #2271b1;
}

.fbb-message.fbb-warning {
    background: #fff8f0;
    border-left: 4px solid #d97908;
}

/* Loading indicator */
.fbb-loading {
    display: none;
    align-items: center;
    margin-top: 15px;
}

.fbb-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: fbb-spinner 0.8s linear infinite;
}

@keyframes fbb-spinner {
    to {
        transform: rotate(360deg);
    }
}

.fbb-loading-text {
    font-size: 14px;
    color: #555;
}

/* Modal styles */
.fbb-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.fbb-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fbb-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.fbb-modal-close:hover {
    color: #555;
}

.fbb-modal-footer {
    margin-top: 20px;
    text-align: right;
}

/* jQuery Datepicker customization */
.ui-datepicker {
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 10px;
}

.ui-datepicker .ui-datepicker-header {
    background: #f5f5f5;
    border: none;
    border-radius: 3px;
    color: #333;
    font-weight: bold;
    padding: 8px;
}

.ui-datepicker th {
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 5px 0;
}

.ui-datepicker td span,
.ui-datepicker td a {
    text-align: center;
    padding: 7px;
    text-decoration: none;
    color: #555;
}

.ui-datepicker td a.ui-state-active {
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
}

.ui-datepicker td a.ui-state-hover {
    background: #e5f2ff;
    border-radius: 3px;
}

.ui-datepicker td.ui-state-disabled {
    opacity: 0.35;
}

/* Calendar date availability styles */
.ui-datepicker .available-date a {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.ui-datepicker .available-date a:hover {
    background: #c3e6cb !important;
    color: #155724 !important;
}

.ui-datepicker .unavailable-date a {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.ui-datepicker .unavailable-date a:hover {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* Override default disabled state for available dates */
.ui-datepicker .ui-state-disabled.available-date {
    opacity: 1;
}

.ui-datepicker .ui-state-disabled.available-date a {
    cursor: pointer !important;
}

/* Responsive styles */
@media (max-width: 600px) {
    .fbb-booking-form-wrapper {
        padding: 15px;
    }
    
    .fbb-booking-title {
        font-size: 20px;
    }
    
    .fbb-modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
}