/* PayPal Event Button Styles */
.paypal-event-button {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.paypal-event-button *,
.paypal-event-button *:before,
.paypal-event-button *:after {
    box-sizing: inherit;
}

.paypal-event-button h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 24px;
}

.event-date,
.event-description,
.event-options {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-date h4,
.event-description h4,
.event-options h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.event-date p {
    margin-top: 0;
    margin-bottom: 0;
}

.event-description p {
    line-height: 1.6;
}

/* Event Venue Styles */
.event-venue {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-venue h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.event-venue p {
    margin: 5px 0;
}

/* Event Hotels Styles */
.event-hotels {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-hotels h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.event-hotels .hotel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-hotels .hotel-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.event-hotels .hotel-list li:last-child {
    border-bottom: none;
}

.event-hotels .hotel-list a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.event-hotels .hotel-list a:hover {
    color: #005f8b;
    text-decoration: underline;
}

.event-hotels .hotel-list a:after {
    content: " ↗";
    font-size: 0.85em;
}

.fee-option {
    margin: 10px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.fee-option:hover {
    background: #f5f5f5;
}

.fee-option label {
    display: block;
    cursor: pointer;
    line-height: 1.4;
}

.fee-option input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.fee-name {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.fee-amount {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
}

.total {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0070ba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}

.button:hover {
    background: #005ea6;
}

.button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .paypal-event-button {
        padding: 15px;
    }
    
    .fee-option {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .paypal-event-button {
        padding: 10px;
    }
    
    .fee-option {
        padding: 8px;
    }
    
    .fee-name, .fee-amount {
        display: block;
        margin-left: 25px; /* Space for checkbox */
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
}

/* Check Payment Styles */
.check-payment-instructions {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.check-payment-instructions h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.fee-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fee-list ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.fee-list ul li:last-child {
    border-bottom: none;
}

/* Print button styles with !important to override theme styles */
.print-event-button {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: #0070ba !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 16px !important;
    margin-top: 20px !important;
    transition: background-color 0.2s !important;
    text-align: center !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
}

.print-event-button:hover {
    background: #005ea6 !important;
    text-decoration: none !important;
    color: white !important;
}

.print-event-button:before {
    content: "🖨️";
    margin-right: 8px;
}

/* Responsive styles for print button */
@media screen and (max-width: 480px) {
    .print-event-button {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Hide print button when printing directly from the page */
@media print {
    .print-event-button {
        display: none !important;
    }
}

/* Payment Method Tabs */
.payment-method-tabs {
    margin-bottom: 20px;
}

.payment-method-tabs ul.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.payment-method-tabs .tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f7f7f7;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.payment-method-tabs .tab.active {
    background: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
    margin-bottom: -1px;
    font-weight: bold;
}

.payment-method-tabs .tab:hover:not(.active) {
    background: #efefef;
}

/* Payment Sections */
.payment-section {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 4px 4px;
}

/* Registration Form Styles */
.event-registration-form {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

.event-registration-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e3e3;
}

.form-field {
    margin-bottom: 15px;
}

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

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    margin-top: 20px;
}

.reserve-spot-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.reserve-spot-button:hover {
    background-color: #005f8b;
}

.reserve-spot-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.reservation-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
}
.required-fee {
    background: #fef9e7;
    border-left: 3px solid #f39c12;
}

.required-marker {
    color: #e74c3c;
    font-size: 0.9em;
    font-style: italic;
    margin-left: 5px;
}

/* Late Fee Styles */
.late-fee-option {
    background: #fdeaea;
    border-left: 3px solid #e74c3c;
}

.late-fee-marker {
    color: #c0392b;
    font-size: 0.9em;
    font-style: italic;
    margin-left: 5px;
}

/* Payment Notice Styles */
.payment-notice {
    margin: 15px 0;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* PDF Download Button */
.event-pdf-download {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-download-pdf-button:hover {
    background-color: #005a87 !important;
    color: #fff !important;
    text-decoration: none !important;
}