.expo-page {
    background: #E7F1F8;
    min-height: calc(100vh - 70px);
    padding: 100px 16px 48px;
}

.expo-page-header {
    max-width: 960px;
    margin: 0 auto 1.25rem;
}

.expo-page-header h1 {
    color: #1069AB;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
    position: relative;
}

/* Kill global main.css h1:before black rule-line (it floats mid-form) */
.expo-page h1:before,
.expo-page-header h1:before {
    content: none !important;
    display: none !important;
}

.expo-page-header h1:after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: #1069AB;
    margin-top: 0.65rem;
    border-radius: 2px;
}

.expo-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0.5rem 2rem rgba(16, 105, 171, 0.12);
    padding: 1.5rem 1.75rem 2rem;
}

.expo-section {
    margin-bottom: 1.75rem;
}

.expo-section-title {
    color: #1069AB;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid #E7F1F8;
}

.expo-field label {
    display: block;
    color: #1069AB;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.expo-field .form-control {
    border: 1px solid #c5d9ea;
    border-radius: 8px;
    min-height: 42px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.expo-field .form-control:focus {
    border-color: #1069AB;
    box-shadow: 0 0 0 0.15rem rgba(16, 105, 171, 0.2);
    outline: none;
}

.expo-field textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

/* Compact selects + custom chevron (hide OS default arrow) */
.expo-field select.expo-select {
    max-width: 100%;
    width: 100%;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231069AB' d='M1.4 0.6L6 5.2 10.6 0.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 7px;
}

.expo-field select.expo-select::-ms-expand {
    display: none;
}

.expo-field select.expo-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b4f82' d='M1.4 0.6L6 5.2 10.6 0.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
}

#tbl-expo-participants {
    margin-bottom: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
}

#tbl-expo-participants thead th {
    background: #E7F1F8;
    color: #1069AB;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 0;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

#tbl-expo-participants thead th:first-child {
    border-radius: 8px 0 0 0;
}

#tbl-expo-participants thead th:last-child {
    border-radius: 0 8px 0 0;
}

#tbl-expo-participants td {
    border-top: 0;
    border-bottom: 1px solid #E7F1F8;
    padding: 0.55rem 0.4rem;
    vertical-align: middle;
}

#tbl-expo-participants .form-control {
    min-width: 100px;
    border: 1px solid #c5d9ea;
    border-radius: 8px;
    font-size: 13px;
    min-height: 38px;
}

#tbl-expo-participants .form-control:focus {
    border-color: #1069AB;
    box-shadow: 0 0 0 0.12rem rgba(16, 105, 171, 0.2);
}

.expo-add-row {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1069AB;
    color: #fff;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 105, 171, 0.3);
}

.expo-add-row:hover {
    background: #0b4f82;
}

.expo-del-btn {
    background: transparent;
    border: 0;
    color: #c0392b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.expo-del-btn:hover {
    color: #922b21;
}

#expo_submit_btn {
    background: #1069AB;
    border-color: #1069AB;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.65rem 2.5rem;
    min-width: 160px;
}

#expo_submit_btn:hover,
#expo_submit_btn:focus {
    background: #0b4f82;
    border-color: #0b4f82;
}

.expo-page .alert {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 10px;
}

#processing {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#processing #loading {
    text-align: center;
}

@media (max-width: 767px) {
    .expo-page {
        padding-top: 90px;
    }

    .expo-card {
        padding: 1.15rem 1rem 1.5rem;
    }

    .expo-page-header h1 {
        font-size: 1.35rem;
    }

    /* Stack participant rows as cards — no sideways scroll */
    .expo-section .table-responsive {
        overflow: visible;
    }

    #tbl-expo-participants,
    #tbl-expo-participants thead,
    #tbl-expo-participants tbody,
    #tbl-expo-participants tr,
    #tbl-expo-participants th,
    #tbl-expo-participants td {
        display: block;
        width: 100%;
    }

    #tbl-expo-participants thead {
        display: none;
    }

    #tbl-expo-participants {
        border-spacing: 0;
    }

    #tbl-expo-participants tbody tr.participant-row {
        background: #fff;
        border: 1px solid #c5d9ea;
        border-radius: 10px;
        margin-bottom: 0.85rem;
        padding: 0.75rem 0.85rem 0.35rem;
        box-shadow: 0 2px 8px rgba(16, 105, 171, 0.08);
    }

    #tbl-expo-participants td {
        border: 0;
        border-bottom: none;
        padding: 0 0 0.7rem;
    }

    #tbl-expo-participants td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        color: #1069AB;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    #tbl-expo-participants .form-control {
        min-width: 0;
        width: 100%;
    }

    #tbl-expo-participants td.expo-row-actions {
        padding: 0.15rem 0 0.5rem;
        text-align: right;
    }

    #tbl-expo-participants td.expo-row-actions:empty {
        display: none;
    }

    .expo-del-btn {
        font-size: 26px;
        padding: 4px 10px;
    }

    #expo_submit_btn {
        width: 100%;
        min-width: 0;
    }
}
