/* Styles for Public Events Feature */

/* General Container */
.cpcpz-public-events-container,
.event-details-container,
.event-registration-container,
.event-thank-you-container,
.pay-registration-container {
    font-family: Arial, sans-serif;
    color: #00091D;
    margin: 20px auto;
    max-width: 1100px;
}

/* Buttons */
.button, .cpcpz-public-events-container .view-toggle-button {
    background-color: #fa6c00;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s;
}

.button:hover, .cpcpz-public-events-container .view-toggle-button:hover {
    background-color: #e05a00;
}

/* Header with Toggles and New Event Button */
.cpcpz-public-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cpcpz-public-events-header .view-toggles {
    display: flex;
    gap: 10px;
}

.cpcpz-public-events-container .view-toggle-button {
    background-color: #f0f0f0;
    color: #333;
    font-weight: normal;
}

.cpcpz-public-events-container .view-toggle-button.active {
    background-color: #fa6c00;
    color: #ffffff;
    font-weight: bold;
}

.button.txt-white, .button.register-now-button {
    color: #ffffff !important;
}

/* Events List View */
#events-list-view .event-list-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    gap: 20px;
    align-items: center;
}

#events-list-view .event-details-left {
    flex-grow: 1;
}

#events-list-view .event-title {
    margin: 0 0 10px 0;
    font-size: 24px;
}

#events-list-view .event-meta p {
    margin: 5px 0;
}

#events-list-view .event-actions {
    margin-top: 15px;
}

#events-list-view .event-actions .button {
    margin-right: 10px;
}

#events-list-view .event-poster-right {
    flex-shrink: 0;
}

#events-list-view .event-poster {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

/* Calendar View */
#calendar-view {
    display: none; /* Hidden by default */
}
.fc-event {
    cursor: pointer;
}

/* Event Details Page */
.event-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.event-details-content {
    display: flex;
    gap: 30px;
}

.event-details-left {
    flex: 2;
}

.event-details-right {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.event-details-container .event-poster {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.event-details-right .event-meta p {
    margin: 8px 0;
}

.event-details-right .event-fees {
    margin-top: 20px;
}
.event-details-right .event-fees ul {
    list-style: none;
    padding: 0;
}
.event-details-right .event-fees li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.event-details-right .register-now-button {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
}

.event-map {
    margin-top: 30px;
}
.event-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}


/* Event Registration Form Page */
.event-registration-container {
    display: flex;
    gap: 30px;
}

.registration-form-column {
    flex: 2;
}

.event-poster-column {
    flex: 1;
}

.event-poster-column img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.registration-form-column .form-group {
    margin-bottom: 15px;
}

.registration-form-column label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.registration-form-column .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.registration-fees-section .fee-item, .ticket-selection .ticket-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.registration-fees-section .quantity-input, .ticket-selection .quantity-input {
    display: flex;
    align-items: center;
}

.registration-fees-section .quantity-input button, .ticket-selection .quantity-input button {
    background-color: #fa6c00;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.registration-fees-section .quantity-input input, .ticket-selection .quantity-input input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    height: 30px;
}

/* Hide spin buttons for number inputs */
.quantity-input input[type=number]::-webkit-outer-spin-button,
.quantity-input input[type=number]::-webkit-inner-spin-button {
    /* For Chrome, Safari, Edge, Opera */
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input input[type=number] {
    /* For Firefox */
    -moz-appearance: textfield;
}

.registration-fees-section .fee-item label {
	min-width: 146px;
	max-width: 100%;
}

.registration-fees-section .grand-total, .ticket-selection .grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-top: 20px;
}

#event-registration-form .button.button-primary {
	float: right;
	margin-top: 54px;
	padding: 16px 38px;
	border-radius: 6px;
}

/* Thank You Page */
.event-thank-you-container {
    text-align: center;
}

.thank-you-card {
	background: #fff;
	padding: 40px;
	border-radius: 10px;
	max-width: 700px;
	margin: 0 auto;
	border-left: 5px solid #339b24;
}

.thank-you-card h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.thank-you-card .event-summary {
    margin: 30px 0;
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.thank-you-card .event-summary h2 {
    margin-top: 0;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}


/* Pay Registration Page */
.pay-registration-container {
    display: flex;
    gap: 30px;
}

.registration-details-column {
    flex: 1;
}
.payment-summary-column {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}
.payment-summary-column hr {
    border-top: 1px solid #ddd;
}
.error {
    color: red;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 15px;
}
