/**
 * FlinkCRM Events Frontend Styles
 */

.flinkcrm-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.flinkcrm-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.flinkcrm-event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.flinkcrm-event-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.flinkcrm-event-card.unavailable {
    opacity: 0.6;
}

.flinkcrm-event-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.flinkcrm-event-title {
    margin: 0 0 5px 0;
    font-size: 1.25em;
    color: #333;
}

.flinkcrm-event-code {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}

.flinkcrm-event-details {
    margin-bottom: 15px;
}

.flinkcrm-event-details > div {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.flinkcrm-event-details strong {
    display: inline-block;
    min-width: 120px;
    color: #555;
}

.flinkcrm-event-time {
    color: #666;
    margin-left: 5px;
}

.flinkcrm-event-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.flinkcrm-book-button {
    width: 100%;
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.3s ease;
}

.flinkcrm-book-button:hover:not(:disabled) {
    background: #005a87;
}

.flinkcrm-book-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.flinkcrm-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Modal Styles */
.flinkcrm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.flinkcrm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.flinkcrm-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.flinkcrm-modal-close:hover,
.flinkcrm-modal-close:focus {
    color: #000;
}

/* Booking Form Styles */
.flinkcrm-booking-form {
    padding: 20px 0;
}

.flinkcrm-form-group {
    margin-bottom: 20px;
}

.flinkcrm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.flinkcrm-form-group .required {
    color: #dc3232;
}

.flinkcrm-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.flinkcrm-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.flinkcrm-form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.flinkcrm-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.flinkcrm-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.flinkcrm-radio-label input[type="radio"] {
    margin-right: 8px;
}

.flinkcrm-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.flinkcrm-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
}

.flinkcrm-booking-price {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: center;
}

.flinkcrm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.flinkcrm-submit-booking,
.flinkcrm-cancel-booking {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flinkcrm-submit-booking {
    background: #0073aa;
    color: #fff;
}

.flinkcrm-submit-booking:hover:not(:disabled) {
    background: #005a87;
}

.flinkcrm-submit-booking:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.flinkcrm-cancel-booking {
    background: #f5f5f5;
    color: #333;
}

.flinkcrm-cancel-booking:hover {
    background: #e5e5e5;
}

.flinkcrm-form-messages {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.flinkcrm-form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flinkcrm-form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .flinkcrm-events-grid {
        grid-template-columns: 1fr;
    }
    
    .flinkcrm-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .flinkcrm-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .flinkcrm-form-actions {
        flex-direction: column;
    }
}

