/* SCT Event Manager Public Styles */

.sct-em-events-list {
    margin: 20px 0;
}

.sct-em-event-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sct-em-event-item h3 {
    margin-top: 0;
}

.sct-em-event-date {
    color: #666;
    font-size: 14px;
}

.sct-em-event-location {
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.sct-em-event-meta {
    margin: 10px 0;
}

.sct-em-event-description {
    margin: 15px 0;
}

.sct-em-event-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sct-em-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.sct-em-badge-open {
    background: #d4edda;
    color: #155724;
}

.sct-em-badge-full {
    background: #f8d7da;
    color: #721c24;
}

.sct-em-badge-past {
    background: #e2e3e5;
    color: #383d41;
}

.sct-em-badge-draft {
    background: #fff3cd;
    color: #856404;
}

.sct-em-badge-waiting {
    background: #cce5ff;
    color: #004085;
}

.sct-em-badge-limited {
    background: #fff3cd;
    color: #856404;
}

/* Registration Form */
.sct-em-registration-form {
    max-width: 600px;
    margin: 20px 0;
}

.sct-em-registration-form h2 {
    margin-top: 0;
}

.sct-em-event-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.sct-em-event-details p {
    margin: 5px 0;
}

#sct-em-registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

#sct-em-registration-form input[type="text"],
#sct-em-registration-form input[type="email"],
#sct-em-registration-form input[type="tel"],
#sct-em-registration-form input[type="number"],
#sct-em-registration-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

#sct-em-registration-form input[type="number"] {
    width: 100px;
}

#sct-em-registration-form .regular-text,
#sct-em-registration-form .large-text {
    max-width: 100%;
}

#sct-em-registration-form p {
    margin-bottom: 15px;
}

.sct-em-spinner {
    margin-left: 10px;
    color: #666;
}

#sct-em-registration-messages {
    margin-bottom: 20px;
}

#sct-em-registration-messages .notice {
    padding: 10px;
    border-left: 4px solid;
    margin-bottom: 15px;
}

#sct-em-registration-messages .notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

#sct-em-registration-messages .notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Validation Styles */
.sct-em-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545 !important;
}

.sct-em-error-message {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
    font-weight: 600;
}

/* Pricing Options */
.sct-em-pricing-section,
.sct-em-goods-section,
.sct-em-payment-section,
.sct-em-custom-fields-section,
.sct-em-total-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.sct-em-pricing-section h3,
.sct-em-goods-section h3,
.sct-em-payment-section h3,
.sct-em-custom-fields-section h3,
.sct-em-total-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.sct-em-pricing-section .description,
.sct-em-goods-section .description,
.sct-em-payment-section .description {
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

.sct-em-pricing-option,
.sct-em-goods-item,
.sct-em-payment-method {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s;
}

.sct-em-pricing-option:hover,
.sct-em-goods-item:hover,
.sct-em-payment-method:hover {
    border-color: #0073aa;
}

.sct-em-pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sct-em-pricing-option label {
    flex: 1;
    display: block;
    cursor: default;
    font-weight: normal;
    margin: 0;
}

.sct-em-pricing-quantity {
    width: 80px !important;
    flex-shrink: 0;
}

.sct-em-goods-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sct-em-goods-item label {
    flex: 1;
    display: block;
    cursor: default;
    font-weight: normal;
    margin: 0;
}

.sct-em-goods-quantity {
    width: 80px !important;
    flex-shrink: 0;
}

.sct-em-payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.sct-em-payment-method input[type="radio"] {
    flex-shrink: 0;
}

.pricing-name,
.goods-name,
.payment-type {
    flex: 1;
    font-weight: 600;
}

.pricing-price,
.goods-price {
    font-weight: 600;
    color: #0073aa;
}

.pricing-description,
.goods-description,
.goods-limit {
    display: block;
    margin-top: 5px;
    margin-left: 30px;
    font-size: 13px;
    color: #666;
}



.payment-description {
    margin-top: 8px;
    margin-left: 30px;
    font-size: 14px;
    color: #666;
}

.payment-link {
    margin-top: 8px;
    margin-left: 30px;
}

.payment-link a {
    color: #0073aa;
    text-decoration: none;
}

.payment-link a:hover {
    text-decoration: underline;
}

.payment-details {
    margin-top: 8px;
    margin-left: 30px;
}

.payment-details summary {
    cursor: pointer;
    color: #0073aa;
    font-weight: 600;
}

.payment-details pre {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
}

/* Custom Fields */
.sct-em-custom-field {
    margin-bottom: 15px;
}

.sct-em-custom-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.sct-em-custom-field .required {
    color: #dc3545;
}

.sct-em-custom-field input[type="text"],
.sct-em-custom-field input[type="email"],
.sct-em-custom-field input[type="tel"],
.sct-em-custom-field input[type="number"],
.sct-em-custom-field input[type="date"],
.sct-em-custom-field textarea,
.sct-em-custom-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.sct-em-custom-field .radio-group {
    margin-top: 8px;
}

.sct-em-custom-field .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 8px;
}

.sct-em-custom-field input[type="checkbox"]+label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

/* Total Price */
.sct-em-total-section {
    background: #e8f4f8;
    border: 2px solid #0073aa;
}

.price-breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.price-breakdown-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.price-breakdown-list li:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
}

.item-price {
    font-weight: 600;
}

.sct-em-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #0073aa;
    font-size: 18px;
}

.sct-em-total-price strong {
    font-size: 20px;
}

#sct-em-total-amount {
    font-weight: 700;
    color: #0073aa;
    font-size: 24px;
}

.sct-em-total-price .currency {
    margin-left: 5px;
    font-weight: 600;
}

/* Manage Reservation */
.sct-em-manage-reservation {
    max-width: 600px;
    margin: 20px 0;
}

.sct-em-reservation-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

#sct-em-update-reservation-form .sct-em-pricing-section,
#sct-em-update-reservation-form .sct-em-goods-section,
#sct-em-update-reservation-form .sct-em-total-section {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#sct-em-update-reservation-form .sct-em-pricing-option,
#sct-em-update-reservation-form .sct-em-goods-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

#sct-em-update-reservation-form .sct-em-pricing-quantity,
#sct-em-update-reservation-form .sct-em-goods-quantity {
    width: 80px !important;
    flex-shrink: 0;
}

#sct-em-update-messages {
    margin-bottom: 15px;
}

#sct-em-update-messages .notice {
    padding: 10px;
    border-left: 4px solid;
    margin-bottom: 10px;
    border-radius: 3px;
}

#sct-em-update-messages .notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

#sct-em-update-messages .notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Buttons */
.sct-em-button-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #0073aa;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sct-em-button-primary:hover,
.sct-em-button-primary:focus {
    background-color: #005177;
    border-color: #005177;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Hide reCAPTCHA Badge */
/* Note: You must include the Google reCAPTCHA Terms of Service and Privacy Policy links visibly on your site if you hide the badge. */
body .grecaptcha-badge,
body .rc-anchor,
body .rc-anchor-invisible,
body .rc-anchor-light,
body .rc-anchor-invisible-hover {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}