/* HomeItaly Webinar Booking - Public Styles */

.hwb-webinar-calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Webinar Header */
.hwb-webinar-header {
    margin-bottom: 40px;
}

.hwb-webinar-image {
    margin-bottom: 20px;
}

.hwb-webinar-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hwb-webinar-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.hwb-webinar-excerpt {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.hwb-webinar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.hwb-info-item {
    flex: 1;
    min-width: 200px;
}

.hwb-info-item strong {
    display: block;
    color: #2271b1;
    margin-bottom: 5px;
}

/* Dates Section */
.hwb-dates-section {
    margin-top: 40px;
}

.hwb-dates-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

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

/* Date Card */
.hwb-date-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hwb-date-card.available {
    border-color: #00a32a;
}

.hwb-date-card.available:hover {
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.2);
    transform: translateY(-2px);
}

.hwb-date-card.unavailable {
    opacity: 0.6;
    background: #f5f5f5;
}

.hwb-date-day {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hwb-date-number {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.hwb-date-time {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 15px;
}

.hwb-date-availability {
    margin-bottom: 15px;
    min-height: 24px;
}

.hwb-spots {
    color: #00a32a;
    font-weight: 600;
}

.hwb-full {
    color: #d63638;
    font-weight: 600;
}

.hwb-past {
    color: #999;
}

/* Book Button */
.hwb-book-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.hwb-book-btn:hover {
    background: #135e96;
}

/* Modal */
.hwb-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hwb-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.hwb-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hwb-modal-close:hover {
    color: #000;
}

.hwb-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

#hwb-modal-webinar-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#hwb-modal-webinar-info p {
    margin: 5px 0;
}

.hwb-modal-date {
    color: #2271b1;
    font-weight: 600;
}

.hwb-modal-time {
    color: #2271b1;
    font-weight: 600;
}

.hwb-modal-spots {
    color: #00a32a;
    font-size: 14px;
}

/* Form */
.hwb-form-group {
    margin-bottom: 20px;
}

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

.hwb-form-group input,
.hwb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.hwb-form-group input:focus,
.hwb-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.hwb-total-price {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

#hwb-total-amount {
    color: #2271b1;
    font-size: 24px;
    font-weight: bold;
}

.hwb-error {
    background: #ffc7ce;
    color: #9c0006;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.hwb-submit-btn {
    background: #00a32a;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.hwb-submit-btn:hover {
    background: #008a24;
}

.hwb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#hwb-form-loading {
    text-align: center;
    padding: 20px;
}

#hwb-form-loading p {
    font-size: 18px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hwb-webinar-calendar {
        padding: 15px;
    }

    .hwb-webinar-header h2 {
        font-size: 24px;
    }

    .hwb-dates-grid {
        grid-template-columns: 1fr;
    }

    .hwb-webinar-info {
        flex-direction: column;
        gap: 15px;
    }

    .hwb-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}
