/* Marine Jewel Booking Styles */
.mjb-booking-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.mjb-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.mjb-step {
    margin-bottom: 30px;
    padding: 0 10px;
}

.mjb-step h3 {
    color: #1B1464;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* Activity Cards */
.mjb-activity-card {
    margin-bottom: 15px;
}

.mjb-activity-card input[type="radio"] {
    display: none;
}

.mjb-activity-label {
    display: block;
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.mjb-activity-label:hover {
    border-color: #FFD925;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mjb-activity-card input[type="radio"]:checked + .mjb-activity-label {
    border-color: #1B1464;
    background: #f8f9ff;
}

.mjb-activity-info h4 {
    color: #1B1464;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.mjb-duration,
.mjb-price,
.mjb-capacity {
    margin: 5px 0;
    color: #666;
}

.mjb-price {
    font-weight: 600;
    color: #1B1464;
    font-size: 16px;
}

/* Form Groups */
.mjb-form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Two column layout for some fields */
.mjb-form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.mjb-form-row .mjb-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.mjb-form-row .mjb-form-group input,
.mjb-form-row .mjb-form-group select {
    max-width: none;
}

.mjb-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1B1464;
    font-size: 15px;
}

.mjb-form-group input,
.mjb-form-group select,
.mjb-form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
}

.mjb-form-group input:focus,
.mjb-form-group select:focus,
.mjb-form-group textarea:focus {
    outline: none;
    border-color: #1B1464;
    box-shadow: 0 0 0 3px rgba(27, 20, 100, 0.1);
}

.required {
    color: #e74c3c;
}


/* Specific field widths */
.mjb-form-group input[type="date"] {
    max-width: 200px;
}

.mjb-form-group select#booking_time,
.mjb-form-group select#adults,
.mjb-form-group select#children {
    max-width: 150px;
}

.mjb-form-group input[type="tel"] {
    max-width: 200px;
}

.mjb-form-group input[type="email"] {
    max-width: 300px;
}

.mjb-form-group textarea {
    max-width: 100%;
    resize: vertical;
    min-height: 100px;
}

/* Field notes */
.mjb-field-note {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Time slots */
.mjb-time-slots {
    margin-top: 10px;
}

.mjb-time-instruction {
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.mjb-time-slot-btn {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.mjb-time-slot-btn:hover {
    border-color: #FFD925;
    background: #fffbf0;
    transform: translateY(-1px);
}

.mjb-time-slot-btn.selected {
    background: #1B1464;
    color: #fff;
    border-color: #1B1464;
}

.mjb-time-slot-btn.unavailable {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.mjb-time-slot-btn.unavailable:after {
    content: " (満席)";
    font-size: 11px;
    color: #d63638;
    font-weight: 500;
}

.mjb-time-slot-btn.unavailable:hover {
    transform: none;
    border-color: #ddd;
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Flatpickr customization */
.flatpickr-calendar {
    font-family: 'Noto Sans JP', sans-serif !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.flatpickr-day {
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.flatpickr-day.selected, 
.flatpickr-day.selected:hover {
    background: #1B1464 !important;
    border-color: #1B1464 !important;
}

.flatpickr-day:hover {
    background: #FFD925 !important;
    border-color: #FFD925 !important;
    color: #1B1464 !important;
}

.flatpickr-day.today {
    border-color: #1B1464 !important;
    color: #1B1464 !important;
}

.flatpickr-day.today:hover {
    background: #FFD925 !important;
    color: #1B1464 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
    color: #1B1464 !important;
}

.flatpickr-weekday {
    color: #1B1464 !important;
    font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #1B1464 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #FFD925 !important;
}
}

/* Buttons */
.mjb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}

.mjb-btn-next,
.mjb-btn-primary {
    background: #FFD925;
    color: #1B1464;
}

.mjb-btn-next:hover,
.mjb-btn-primary:hover {
    background: #f5c800;
    transform: translateY(-2px);
}

.mjb-btn-pay {
    min-width: 160px;
}

.mjb-btn-pay:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.mjb-btn-pay .btn-loading {
    display: none;
}

.mjb-btn-pay.loading .btn-text {
    display: none;
}

.mjb-btn-pay.loading .btn-loading {
    display: inline;
}

.mjb-btn-prev {
    background: #e0e0e0;
    color: #666;
    margin-right: 10px;
}

.mjb-btn-prev:hover {
    background: #d0d0d0;
}

.mjb-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Confirmation */
.mjb-confirmation {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.mjb-confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.mjb-confirmation-table th,
.mjb-confirmation-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mjb-confirmation-table th {
    font-weight: 600;
    color: #1B1464;
    width: 30%;
}

.mjb-total-amount {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #FFD925;
    border-radius: 10px;
}

.mjb-total-amount h4 {
    margin: 0;
    color: #1B1464;
    font-size: 24px;
}

/* Payment Step */
.mjb-payment-summary {
    margin-bottom: 30px;
}

.mjb-booking-summary-card {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.mjb-booking-summary-card h4 {
    color: #1B1464;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

#payment-booking-summary {
    font-size: 14px;
    line-height: 1.8;
}

.mjb-payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-weight: 600;
}

.mjb-amount {
    font-size: 24px;
    color: #1B1464;
}

/* Stripe Elements */
#payment-form {
    margin-top: 0;
}

#payment-form h4 {
    color: #1B1464;
    font-size: 20px;
    margin-bottom: 20px;
}

.mjb-card-fields {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #f0f0f0;
}

.mjb-secure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 14px;
    color: #2e7d32;
}

.mjb-secure-notice i {
    font-size: 16px;
}

.mjb-stripe-element {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    transition: border-color 0.3s ease;
    min-height: 45px;
}

.mjb-stripe-element.StripeElement--focus {
    border-color: #1B1464;
}

.mjb-stripe-element.StripeElement--invalid {
    border-color: #e74c3c;
}

.mjb-form-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.mjb-form-group-half {
    flex: 1;
}

#card-errors {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Loading */
#mjb-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mjb-loading-content {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mjb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1B1464;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#mjb-loading p {
    font-size: 18px;
    color: #1B1464;
    margin: 0;
    font-weight: 600;
}

/* Booking Complete */
.mjb-booking-complete {
    text-align: center;
    padding: 20px 0;
}

.mjb-booking-complete h3 {
    font-size: 28px;
    color: #1B1464;
    margin-bottom: 20px;
}

.mjb-success-message {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: #2e7d32;
    font-weight: 600;
}

.mjb-booking-details {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.mjb-booking-details h4 {
    color: #1B1464;
    margin: 0 0 15px;
    text-align: center;
    font-size: 18px;
}

.mjb-next-steps {
    background: #fff3cd;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.mjb-next-steps h4 {
    color: #856404;
    margin: 0 0 15px;
    text-align: center;
    font-size: 18px;
}

.mjb-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.mjb-next-steps li {
    margin-bottom: 8px;
    color: #856404;
}

.mjb-contact-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    color: #1565c0;
}

.mjb-booking-table {
    width: 100%;
    border-collapse: collapse;
}

.mjb-booking-table th,
.mjb-booking-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mjb-booking-table th {
    font-weight: 600;
    color: #1B1464;
    width: 35%;
    background: #f8f9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mjb-booking-wrapper {
        padding: 10px;
    }
    
    .mjb-form {
        padding: 20px;
    }
    
    .mjb-step h3 {
        font-size: 20px;
    }
    
    .mjb-activity-label {
        padding: 15px;
    }
    
    .mjb-activity-info h4 {
        font-size: 18px;
    }
    
    .mjb-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .mjb-btn {
        width: 100%;
        text-align: center;
    }
    
    .mjb-btn-prev {
        margin-right: 0;
        order: 2;
    }
    
    .mjb-btn-next,
    .mjb-btn-primary {
        order: 1;
    }
    
    .mjb-confirmation-table th {
        width: 35%;
    }
    
    /* Card fields on mobile */
    .mjb-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .mjb-card-fields {
        padding: 20px 15px;
    }
    
    .mjb-stripe-element {
        min-height: 50px;
    }
    
    /* Form field widths on mobile */
    .mjb-form-group input,
    .mjb-form-group select,
    .mjb-form-group textarea {
        max-width: 100%;
    }
    
    .mjb-booking-wrapper {
        max-width: 100%;
        padding: 15px;
    }
    
    /* Time slots on mobile */
    .mjb-time-slot-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mjb-step {
    animation: fadeIn 0.5s ease;
}

/* Success/Error Messages */
.mjb-message {
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.mjb-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mjb-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}