/* Loader spinner */
.seb-loader {
  text-align: center;
  margin: 15px 0;
}
.seb-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa; /* WordPress blue */
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Messages */
.seb-message {
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}
.seb-message.success {
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}
.seb-message.error {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}


/* Overlay covers the form */
.sebOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* allow clicks only when loader is shown */
}

/* Loader box */
.seb-loader {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: auto;
}

/* Spinner animation */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error message box */
.seb-message {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 20px 30px;
    font-size: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: auto;
}

/* Message Box */
.seb-message {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease-in-out;
}

/* Success Icon/Image */
.seb-message-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* Title */
.seb-message h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #28a745; /* green success */
}

/* Text */
.seb-message p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Confirm checkbox inline styling */
 .confirm-field {
	display: flex;
	align-items: center;
	margin: 5px 0;
	font-size: 14px;
}
.confirm-class {
    background-color: transparent;
}

.confirm-field input[type="checkbox"] {
	margin-right: 45px;
	transform: scale(2); /* slightly larger checkbox */
}


.popup-button {
    cursor: pointer;
}
/* -------------------- Popup Overlay -------------------- */


.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

/* -------------------- Popup Content -------------------- */
 .popup-content {
    background: #fff;
    padding: 15px 25px;
    max-width: 500px;
    margin: 5% auto;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.3s ease-in-out;
}


/* -------------------- Close Button -------------------- */
.popup-overlay .close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 20px;
    background: #fff;
    color: #111;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.popup-overlay .close-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* -------------------- Form Header -------------------- */
.seb-form-head {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    text-align: center;
}
.seb-form-head h4 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* -------------------- Form Layout -------------------- */
.seb-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

p.seb-note {
    margin: 0;
}

.seb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.seb-field input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #dfe3f8;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
.seb-field input:focus {
    border-color: #a8b4ff;
    box-shadow: 0 0 6px rgba(168,180,255,0.3);
}



/* -------------------- Submit Button -------------------- */
.button.popup-button-box { padding: 12px 0; border-radius: 12px; border: 1px solid #d8d8f6; font-weight: 600; cursor: pointer; transition: all 0.2s ease-in-out; }
.button.popup-button-box:hover {
    transform: translateY(-2px);
   
}


/* -------------------- Messages -------------------- */
.seb-message {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #111;
}
.seb-closed {
    padding: 14px;
    border: 1px solid #ffe2e2;
    background: #fff6f6;
    border-radius: 14px;
    color: #ff4d4f;
    font-weight: 600;
}

/* -------------------- Event Card Grid -------------------- */
.seb-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.seb-event-card {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f7f8ff, #eef6ff);
    border: 1px solid #e6ecff;
    transition: all 0.2s ease-in-out;
}
.seb-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.seb-event-card h3 {
    margin: 0 0 6px;
}
.seb-event-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.9;
}
.seb-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #e9e9f7;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}
.seb-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d8d8f6;
    text-decoration: none;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
    #bookingPopup .popup-content {
        width: 95%;
        padding: 25px 20px;
        margin: 10% auto;
    }
}

/* -------------------- Animation -------------------- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
