/* ============================================
   PARTICIPANT FORMS STYLING
   ============================================ */

/* Participants Table Container */
.mb-participants-table-container {
    background: transparent;
    margin-bottom: 25px;
}

/* White background wrapper for tbody */
.mb-participants-table tbody {
    background: transparent !important;
}

.mb-participants-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    table-layout: fixed;
}

/* Column widths - must match exactly for alignment */
.mb-participants-table th:nth-child(1),
.mb-participants-table td:nth-child(1) {
    width: 20%;
}

.mb-participants-table th:nth-child(2),
.mb-participants-table td:nth-child(2) {
    width: 20%;
}

.mb-participants-table th:nth-child(3),
.mb-participants-table td:nth-child(3) {
    width: 25%;
}

.mb-participants-table th:nth-child(4),
.mb-participants-table td:nth-child(4) {
    width: 18%;
}

.mb-participants-table th:nth-child(5),
.mb-participants-table td:nth-child(5) {
    width: 17%;
}

/* Detached rounded header */
.mb-participants-table thead tr {
    background: #0099c5;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 153, 197, 0.25);
}

.mb-participants-table thead th {
    color: white;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    padding: 20px 24px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #0099c5;
    border: none;
    position: relative;
}

.mb-participants-table thead th:first-child {
    border-radius: 50px 0 0 50px;
}

.mb-participants-table thead th:last-child {
    border-radius: 0 50px 50px 0;
}

/* Add subtle spacing between header columns without visible lines */
.mb-participants-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Each row is its own bubble, visually narrower via transform */
.mb-participants-table tbody tr {
    background-color: #ffffff !important;
    background: #ffffff !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transform: scaleX(0.97);
    transform-origin: center;
}

/* Force all rows to be stark white */
.mb-participants-table tbody tr,
.mb-participants-table tbody tr:nth-child(odd),
.mb-participants-table tbody tr:nth-child(even),
.mb-participants-table tbody tr:nth-of-type(odd),
.mb-participants-table tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.mb-participants-table tbody tr:not(.mb-empty-state):hover {
    background-color: #f8f9fa !important;
    background: #f8f9fa !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* First and last cell styling */
.mb-participants-table tbody td:first-child {
    font-weight: 600;
    border-radius: 16px 0 0 16px;
    text-align: center;
}

.mb-participants-table tbody td:last-child {
    text-align: center;
    border-radius: 0 16px 16px 0;
}

/* Table cell styling - force white background and center text */
.mb-participants-table tbody td {
    padding: 22px 24px;
    color: #495057;
    font-size: 16px;
    vertical-align: middle;
    text-align: center;
    background-color: transparent !important;
    background: transparent !important;
    position: relative;
}

/* Add divider lines between cells - shorter and more subtle */
.mb-participants-table tbody td:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 35%;
    height: 30%;
    width: 1px;
    background: rgba(73, 80, 87, 0.15);
}

/* Override any nth-child cell styling */
.mb-participants-table tbody tr:nth-child(odd) td,
.mb-participants-table tbody tr:nth-child(even) td,
.mb-participants-table tbody tr:nth-of-type(odd) td,
.mb-participants-table tbody tr:nth-of-type(even) td {
    background-color: transparent !important;
    background: transparent !important;
}

/* Empty state styling */
.mb-participants-table tbody tr.mb-empty-state td {
    border-radius: 16px;
}

/* Activities column - smaller font */
.mb-participants-table tbody td:nth-child(3) {
    font-size: 14px !important;
    line-height: 1.6;
}

/* Price column - bold and colored */
.mb-participants-table tbody td:nth-child(4) {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #0099c5 !important;
}

/* Participant Actions */
.mb-participant-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.mb-add-participant-btn {
    background: #0099c5;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 10px rgba(0, 153, 197, 0.2);
}

.mb-add-participant-btn:hover {
    background: #007a9e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 153, 197, 0.35);
}

.mb-participant-note {
    font-size: 15px;
    color: #6c757d;
    flex: 1;
    text-align: right;
    line-height: 1.5;
}

.mb-participant-note strong {
    color: #495057;
    font-weight: 600;
}

/* Action Buttons in Table - Bubble rectangles */
.mb-participant-action-btn {
    background: white;
    border: 2px solid currentColor;
    width: 56px;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mb-participant-action-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.mb-participant-edit-btn {
    color: #0099c5;
    border-color: #0099c5;
}

.mb-participant-edit-btn:hover {
    background: #0099c5;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 153, 197, 0.3);
}

.mb-participant-delete-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.mb-participant-delete-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

/* Participant Card */
.mb-participant-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mb-participant-card:hover {
    border-color: #0099c5;
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.15);
}

.mb-participant-header {
    background: linear-gradient(135deg, #0099c5 0%, #00b8e6 100%);
    padding: 20px 30px;
}

.mb-participant-header h3 {
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.mb-participant-form {
    padding: 30px;
}

/* Form Rows */
.mb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mb-form-row:last-child {
    margin-bottom: 0;
}

.mb-form-field {
    display: flex;
    flex-direction: column;
}

.mb-form-field label {
    font-size: 0.95em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.mb-form-field input,
.mb-form-field select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.mb-form-field input:focus,
.mb-form-field select:focus {
    outline: none;
    border-color: #0099c5;
    box-shadow: 0 0 0 3px rgba(0, 153, 197, 0.1);
}

.mb-form-field input:invalid:not(:placeholder-shown),
.mb-form-field select:invalid:not([value=""]) {
    border-color: #dc3545;
}

.mb-form-field input:valid,
.mb-form-field select:valid:not([value=""]) {
    border-color: #28a745;
}

/* ============================================
   PARTICIPANT MODAL STYLING
   ============================================ */

/* Modal Overlay */
.mb-participant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.mb-participant-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mb-participant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

/* Modal Content */
.mb-participant-modal-content {
    position: relative;
    background: white;
    max-width: 1100px;
    width: 94%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    animation: slideInModal 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.mb-participant-modal-header {
    background: #0099c5;
    padding: 20px 32px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mb-participant-modal-header h3 {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.mb-participant-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: Arial, sans-serif;
}

.mb-participant-modal-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.mb-participant-modal-close:active {
    opacity: 0.5;
    transform: scale(0.95);
}

.mb-participant-modal-close span {
    display: block;
    line-height: 1;
}

/* Modal Body Wrapper - Contains Sidebar and Content */
.mb-participant-modal-body-wrapper {
    display: flex;
    flex: 1;
    min-height: 500px;
}

/* Left Sidebar with Steps */
.mb-participant-modal-sidebar {
    background: #0099c5;
    width: 280px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mb-participant-step {
    display: flex;
    gap: 15px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mb-participant-step:hover {
    opacity: 0.8;
}

.mb-participant-step.completed {
    cursor: pointer;
}

.mb-participant-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mb-participant-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mb-participant-step.active .mb-participant-step-circle {
    background: white;
    border-color: white;
}

.mb-participant-step.completed .mb-participant-step-circle {
    background: #ff9800;
    border-color: #ff9800;
}

.mb-participant-step-number {
    color: white;
    font-weight: 700;
    font-size: 1.2em;
    display: block;
    transition: color 0.3s ease;
}

.mb-participant-step.active .mb-participant-step-number {
    color: #0099c5;
}

.mb-participant-step.completed .mb-participant-step-number {
    display: none;
}

.mb-participant-step-check {
    display: none;
    width: 24px;
    height: 24px;
    color: white;
}

.mb-participant-step.completed .mb-participant-step-check {
    display: block;
    animation: checkPopIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mb-participant-step-line {
    width: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}

.mb-participant-step:last-child .mb-participant-step-line {
    display: none;
}

.mb-participant-step-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95em;
    padding-top: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.mb-participant-step.active .mb-participant-step-label {
    color: white;
}

.mb-participant-step.completed .mb-participant-step-label {
    color: white;
}

/* Content Area */
.mb-participant-modal-content-area {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
    transition: padding 0.3s ease;
}

.mb-participant-modal-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mb-participant-modal-step.active {
    display: block;
    animation: slideInStep 0.4s ease forwards;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mb-participant-modal-step.exiting {
    animation: slideOutStep 0.3s ease forwards;
}

@keyframes slideOutStep {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Step 0: Participant Type Selection */
.mb-participant-type-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 40px;
}

.mb-participant-selection-title {
    color: #6c757d;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.4;
}

.mb-participant-type-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.mb-participant-type-btn {
    background: white;
    color: #0099c5;
    border: 3px solid #0099c5;
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 240px;
}

.mb-participant-type-btn:hover {
    background: #0099c5;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 153, 197, 0.35);
}

.mb-participant-type-btn-primary {
    /* No different styling - both buttons look the same */
}

/* Form Styling */
.mb-participant-form-row {
    margin-bottom: 30px;
}

.mb-participant-form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.mb-participant-form-group {
    display: flex;
    flex-direction: column;
}

.mb-participant-form-group label {
    font-size: 1em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.mb-required {
    color: #dc3545;
}

.mb-participant-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mb-participant-name-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mb-participant-field-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 500;
}

.mb-participant-input {
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.mb-participant-input:focus {
    outline: none;
    border-color: #0099c5;
    box-shadow: 0 0 0 4px rgba(0, 153, 197, 0.1);
}

/* Modal Footer */
.mb-participant-modal-footer {
    padding: 20px 32px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid #e9ecef;
    transition: opacity 0.2s ease;
}

.mb-participant-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mb-participant-btn-cancel {
    background: white;
    color: #0099c5;
    border: 2px solid #0099c5;
}

.mb-participant-btn-cancel:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.2);
}

.mb-participant-btn-continue,
.mb-participant-btn-submit {
    background: #0099c5;
    color: white;
}

.mb-participant-btn-continue:hover,
.mb-participant-btn-submit:hover {
    background: #007a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
}

.mb-participant-btn-continue:disabled,
.mb-participant-btn-submit:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 968px) {
    .mb-participant-modal-body-wrapper {
        flex-direction: column;
    }
    
    .mb-participant-modal-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 20px 30px;
        justify-content: center;
        gap: 30px;
    }
    
    .mb-participant-step {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .mb-participant-step-line {
        display: none !important;
    }
    
    .mb-participant-step-label {
        text-align: center;
        padding-top: 0;
        font-size: 0.85em;
    }
    
    .mb-participant-modal-content-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .mb-participant-modal-content {
        width: 98%;
        margin: 10px auto;
    }
    
    .mb-participant-modal-header {
        padding: 16px 20px;
    }
    
    .mb-participant-modal-header h3 {
        font-size: 1.1em;
    }
    
    .mb-participant-modal-sidebar {
        padding: 15px 20px;
        gap: 20px;
    }
    
    .mb-participant-step-circle {
        width: 40px;
        height: 40px;
    }
    
    .mb-participant-step-number {
        font-size: 1em;
    }
    
    .mb-participant-modal-content-area {
        padding: 24px;
    }
    
    .mb-participant-modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }
    
    .mb-participant-btn {
        width: 100%;
    }
    
    .mb-participant-form-row-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mb-participant-name-row {
        grid-template-columns: 1fr;
    }
    
    /* Step 0 responsive */
    .mb-participant-type-selection {
        min-height: 300px;
        padding: 20px;
    }
    
    .mb-participant-selection-title {
        font-size: 1.3em;
        margin-bottom: 40px;
    }
    
    .mb-participant-type-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .mb-participant-type-btn {
        min-width: auto;
        width: 100%;
        padding: 16px 30px;
    }
    
    .mb-participant-controls,
    .mb-participant-form {
        padding: 20px;
    }
    
    .mb-participant-header {
        padding: 15px 20px;
    }
    
    .mb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mb-counter-controls {
        gap: 15px;
    }
    
    .mb-counter-value {
        font-size: 1.8em;
        min-width: 50px;
    }
    
    .mb-counter-btn {
        width: 44px;
        height: 44px;
    }
    
    .mb-participant-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mb-participant-note {
        text-align: left;
    }
}

/* ============================================
   PRICING SUMMARY BOX
   ============================================ */

.mb-pricing-summary-container {
    display: flex;
    justify-content: flex-end;
    margin: 30px 0 20px 0;
    padding: 0 5px;
}

.mb-pricing-summary {
    background: linear-gradient(135deg, #0099c5 0%, #007a9e 100%);
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 240px;
}

.mb-pricing-label {
    color: white;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mb-pricing-amount {
    color: white;
    font-weight: 800;
    font-size: 1.5em;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mb-pricing-summary-container {
        justify-content: center;
        margin: 20px 0;
    }
    
    .mb-pricing-summary {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: 18px 30px;
        justify-content: space-between;
    }
    
    .mb-pricing-amount {
        font-size: 1.8em;
    }
}

/* ============================================
   ACTIVITY SELECTION (Card-Based)
   ============================================ */

.mb-activity-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.mb-activity-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mb-activity-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.mb-activity-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #0099c5 0%, #007a9e 100%);
}

.mb-activity-card-header {
    background: linear-gradient(135deg, #0099c5 0%, #007a9e 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.mb-activity-card-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.mb-activity-card-body {
    padding: 20px;
}

.mb-activity-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-activity-btn {
    background: white;
    color: #0099c5;
    border: 2px solid #0099c5;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mb-activity-btn:hover {
    background: #0099c5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
}

.mb-activity-btn.active {
    background: #0099c5;
    color: white;
    border-color: #0099c5;
}

/* Responsive */
@media (max-width: 768px) {
    .mb-activity-cards-container {
        grid-template-columns: 1fr;
    }
}

