/**
 * FourBlock Events Calendar - Public Styles
 */

/* Calendar Wrapper */
.fourblock-calendar-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.fourblock-calendar {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Event badges */
.virtual-event {
    border-left: 4px solid #007bff !important;
}

/* Modal */
.fourblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* When modal is open, prevent body scroll */
body.fourblock-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.fourblock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.fourblock-modal-content {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 3rem auto;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fourblock-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.fourblock-modal-close:hover {
    color: #333;
}

/* Event Details */
.event-details h2 {
    margin-top: 0;
    color: #333;
}

.event-description {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.event-registration {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.event-registration h3 {
    margin-top: 0;
}

/* Registration Forms */
.fourblock-registration-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.form-note {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.btn-submit {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover:not(:disabled) {
    background: #0056b3;
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .fourblock-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }

    .fourblock-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
}
