#registration-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 20%;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ce-progress-step-bg, #e0e0e0);
    color: var(--ce-progress-step-text, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--ce-color-primary, #007bff);
    color: var(--ce-color-white, white);
}

.progress-step.completed {
    background-color: var(--ce-color-success, #28a745);
    color: var(--ce-color-white, white);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background-color: var(--ce-progress-step-bg, #e0e0e0);
    z-index: -1;
}

.progress-step.completed:not(:last-child)::after {
    background-color: var(--ce-color-success, #28a745);
}

.step {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step h2 {
    color: var(--ce-text-heading, #333);
    margin-bottom: 20px;
    font-size: 24px;
}

.step h3 {
    color: var(--ce-text-subheading, #555);
    margin-bottom: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

.step .red {
    color: var(--ce-color-danger, #d9534f);
}

.step .required-sign {
    color: var(--ce-color-danger, #d9534f);
}

.input-validation-error {
    border-color: var(--ce-color-danger, #d9534f) !important;
    background-color: var(--ce-bg-error, #fff5f5) !important;
}

.validation-message {
    color: var(--ce-color-danger, #d9534f);
    font-size: 12px;
    display: inline-block;
    margin-left: 5px;
}

.button-group {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.standard-btn {
    padding: 10px 30px;
    background-color: var(--ce-color-primary, #007bff);
    color: var(--ce-color-white, white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.standard-btn:hover {
    background-color: var(--ce-color-primary-hover, #0056b3);
}

.standard-btn:disabled {
    background-color: var(--ce-border-default, #ccc);
    cursor: not-allowed;
}

.btn-prev {
    background-color: var(--ce-color-secondary, #6c757d);
}

.btn-prev:hover {
    background-color: var(--ce-color-secondary-hover, #545b62);
}

#persons-table {
    margin-top: 20px;
}

#persons-table th {
    background-color: var(--ce-bg-light, #f8f9fa);
    font-weight: 600;
    padding: 12px 8px;
}

#persons-table td {
    padding: 8px;
    vertical-align: middle;
}

#persons-table input[type="text"],
#persons-table input[type="email"] {
    width: 100%;
}

.btn-remove-person {
    padding: 5px 10px;
}

.attendance-checkboxes label {
    display: block;
    white-space: nowrap;
    margin-bottom: 2px;
}

.attendance-checkboxes label input[type="checkbox"] {
    margin-right: 5px;
}

#add-person {
    margin-top: 10px;
    background-color: var(--ce-color-success, #28a745);
}

#add-person:hover {
    background-color: var(--ce-color-success-hover, #218838);
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ce-bg-overlay, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid rgba(255, 255, 255, 0.3);
    border-right-color: #fff;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.childCenter {
    text-align: center;
    padding: 20px 0;
}

.radio-inline {
    margin-right: 20px;
}

.boolean-options {
    display: inline-block;
    margin-left: 15px;
    white-space: nowrap;
}

#summary-content {
    background: var(--ce-bg-light, #f8f9fa);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

#confirmation-message {
    margin-top: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: var(--ce-alert-success-text, #155724);
    background-color: var(--ce-alert-success-bg, #d4edda);
    border-color: var(--ce-alert-success-border, #c3e6cb);
}

.alert-success h3 {
    margin-top: 0;
    color: var(--ce-alert-success-text, #155724);
}

@media (max-width: 768px) {
    .progress-indicator {
        padding: 0 5%;
    }

    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .standard-btn {
        width: 100%;
    }

    #persons-table {
        font-size: 12px;
    }

    #persons-table input {
        font-size: 12px;
        padding: 5px;
    }
}

.overview-section h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--ce-text-heading, #333);
    border-bottom: 2px solid var(--ce-color-primary, #007bff);
    padding-bottom: 5px;
}

.overview-section .dl-horizontal dt {
    width: 150px;
    font-weight: bold;
    text-align: left;
}

.overview-section .dl-horizontal dd {
    margin-left: 170px;
}

/* Custom question labels are free text and can be long. Bootstrap's floated dl-horizontal
   truncates them with an ellipsis at a fixed width, so lay the pairs out on a grid instead:
   the label wraps and uses the space, and the gap keeps it clear of the answer. */
#overview-custom-questions-content .dl-horizontal {
    display: grid;
    /* The answer column sizes to its content but never drops below 25%, so a short answer
       ("nop", "true") lets the question take the remaining 75%, while a long answer is
       still given the room it needs. */
    grid-template-columns: minmax(0, 1fr) minmax(25%, max-content);
    column-gap: 40px;
    row-gap: 10px;
    align-items: start;
}

#overview-custom-questions-content .dl-horizontal dt,
#overview-custom-questions-content .dl-horizontal dd {
    float: none;
    width: auto;
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

@media (max-width: 767px) {
    /* Stack label above answer rather than squeezing two columns onto a phone. */
    #overview-custom-questions-content .dl-horizontal {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}

.overview-section table {
    margin-top: 15px;
}

.overview-section p {
    margin: 10px 0;
}
