/* Course registration. Builds on the course flyer styles in service-pages.css. */

.superior-reg {
    color: #4c5a67;
    max-width: 1040px;
}

.superior-reg-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(41, 63, 94, 0.97), rgba(22, 152, 178, 0.9));
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 32px 40px;
}

.superior-reg-hero h1 {
    color: #fff;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 10px;
}

.superior-reg-hero p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.superior-reg-hero .superior-flyer-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.superior-reg-back,
.superior-reg-back:visited {
    color: rgba(255, 255, 255, 0.85);
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 14px;
    text-decoration: none;
}

.superior-reg-back:hover,
.superior-reg-back:focus {
    color: #fff;
    text-decoration: underline;
}

.superior-reg-hero-price {
    background: #fff;
    border-radius: 14px;
    color: #293f5e;
    display: flex;
    flex-direction: column;
    padding: 16px 22px;
    text-align: center;
}

.superior-reg-hero-price strong {
    color: #1698b2;
    font-size: 2rem;
    line-height: 1.1;
}

.superior-reg-hero-price span {
    font-weight: 700;
}

.superior-reg-hero-price em {
    font-size: 0.85rem;
    font-style: normal;
}

/* Steps */

.superior-reg-steps {
    border-bottom: 1px solid rgba(41, 63, 94, 0.08);
    counter-reset: none;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 18px 40px;
}

.superior-reg-step {
    align-items: center;
    color: #8a96a3;
    display: flex;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.superior-reg-step-dot {
    align-items: center;
    background: #eef3f6;
    border-radius: 50%;
    color: #8a96a3;
    display: inline-flex;
    flex: 0 0 30px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.superior-reg-step.is-current {
    color: #293f5e;
}

.superior-reg-step.is-current .superior-reg-step-dot {
    background: #1bb0ce;
    color: #fff;
}

.superior-reg-step.is-done {
    color: #1698b2;
}

.superior-reg-step.is-done .superior-reg-step-dot {
    background: rgba(27, 176, 206, 0.15);
    color: #1698b2;
}

/* Layout */

.superior-reg-body {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    padding: 32px 40px 40px;
}

.superior-reg-panel h2,
.superior-reg-summary h2 {
    color: #293f5e;
    font-size: 1.45rem;
    margin: 0 0 8px;
}

.superior-reg-lead {
    line-height: 1.6;
    margin: 0 0 24px;
}

.superior-reg-summary {
    align-self: start;
    background: #f8fafb;
    border: 1px solid rgba(41, 63, 94, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.superior-reg-summary h2 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.superior-reg-summary h3 {
    color: #293f5e;
    font-size: 1rem;
    margin: 22px 0 8px;
}

/* Form */

.superior-reg-form {
    margin: 0;
}

.superior-reg-field {
    margin: 0 0 18px;
    position: relative;
}

#top .superior-reg-field label,
#top .superior-reg-participant legend {
    color: #293f5e;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
}

#top .superior-reg .superior-reg-field input[type="text"],
#top .superior-reg .superior-reg-field input[type="email"],
#top .superior-reg .superior-reg-field input[type="tel"] {
    background: #fff;
    border: 1px solid #c9d4dc;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    color: #293f5e;
    font-size: 1rem;
    height: auto;
    line-height: 1.4;
    margin: 0;
    padding: 12px 14px;
    width: 100%;
}

#top .superior-reg .superior-reg-field input:focus {
    border-color: #1bb0ce;
    box-shadow: 0 0 0 3px rgba(27, 176, 206, 0.2);
    outline: none;
}

#top .superior-reg .superior-reg-field input[aria-invalid="true"] {
    border-color: #c0392b;
}

#top .superior-reg .superior-reg-field input.superior-reg-code {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    max-width: 240px;
    text-align: center;
}

.superior-reg-row {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.superior-reg-row-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
}

#top .superior-reg-participant {
    border: 1px solid rgba(41, 63, 94, 0.1);
    border-radius: 12px;
    margin: 0 0 14px;
    padding: 14px 16px 0;
}

#top .superior-reg-participant legend {
    padding: 0 6px;
}

#top .superior-reg-participant legend span {
    color: #8a96a3;
    font-weight: 400;
}

#top .superior-reg-participant .superior-reg-field label {
    font-size: 0.85rem;
    font-weight: 600;
}

#top .superior-reg-participant .superior-reg-field-error {
    margin: -8px 0 14px;
}

.superior-reg-field-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin: 6px 0 0;
}

.superior-reg-hint {
    color: #7a8794;
    font-size: 0.88rem;
    margin: 6px 0 0;
}

.superior-reg-hint.is-confirmed {
    color: #1698b2;
    font-weight: 600;
}

.superior-reg-verified {
    color: #1698b2;
    font-weight: 600;
    margin: 0;
}

.superior-reg-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* Address suggestions */

#top .superior-reg-suggestions {
    background: #fff;
    border: 1px solid #c9d4dc;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(41, 63, 94, 0.16);
    left: 0;
    list-style: none;
    margin: 4px 0 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    z-index: 50;
}

#top .superior-reg-suggestions[hidden] {
    display: none;
}

#top .superior-reg-suggestions li {
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.35;
    margin: 0;
    padding: 9px 10px;
}

#top .superior-reg-suggestions li strong {
    color: #293f5e;
    display: block;
}

#top .superior-reg-suggestions li span {
    color: #7a8794;
    font-size: 0.88rem;
}

#top .superior-reg-suggestions li[aria-selected="true"],
#top .superior-reg-suggestions li:hover {
    background: rgba(27, 176, 206, 0.1);
}

/* Buttons and messages */

#top .superior-reg .superior-reg-button,
#top .superior-reg .superior-reg-button:visited {
    background: #1bb0ce;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 15px 30px;
    text-decoration: none;
}

#top .superior-reg .superior-reg-button:hover,
#top .superior-reg .superior-reg-button:focus {
    background: #293f5e;
    color: #fff;
}

#top .superior-reg .superior-reg-button[disabled] {
    cursor: progress;
    opacity: 0.7;
}

.superior-reg-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
}

.superior-reg-secondary-actions form {
    margin: 0;
}

#top .superior-reg .superior-reg-link {
    background: none;
    border: 0;
    color: #1698b2;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.superior-reg-notice,
.superior-reg-alert {
    border-radius: 10px;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 12px 16px;
}

.superior-reg-notice {
    background: rgba(27, 176, 206, 0.1);
    border-left: 4px solid #1bb0ce;
    color: #293f5e;
}

.superior-reg-alert {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    color: #7b241c;
}

.superior-reg-fineprint {
    color: #7a8794;
    font-size: 0.85rem;
    margin: 12px 0 0;
}

/* Completed registration */

.superior-reg-complete {
    margin-bottom: 8px;
}

.superior-reg-complete-icon {
    align-items: center;
    background: rgba(27, 176, 206, 0.15);
    border-radius: 50%;
    color: #1698b2;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    margin-bottom: 14px;
    width: 52px;
}

#top .superior-reg-panel .superior-reg-subhead {
    color: #293f5e;
    font-size: 1.05rem;
    margin: 22px 0 10px;
}

#top .superior-reg-panel .superior-reg-link-inline {
    color: #1698b2;
    font-weight: 700;
}

/* Summary */

#top .superior-reg-total {
    background: none;
    border: 0;
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

#top .superior-reg-total th,
#top .superior-reg-total td {
    border: 0;
    border-bottom: 1px solid rgba(41, 63, 94, 0.08);
    background: none;
    color: #4c5a67;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: normal;
    padding: 9px 0;
    text-align: left;
    text-transform: none;
    vertical-align: top;
}

#top .superior-reg-total td {
    text-align: right;
    white-space: nowrap;
}

#top .superior-reg-total .is-total th,
#top .superior-reg-total .is-total td {
    border-bottom: 0;
    color: #293f5e;
    font-size: 1.1rem;
    font-weight: 700;
}

#top .superior-reg-facts {
    margin: 0;
}

#top .superior-reg-facts dt {
    color: #8a96a3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 10px;
    text-transform: uppercase;
}

#top .superior-reg-facts dd {
    color: #293f5e;
    margin: 2px 0 0;
}

#top .superior-reg-next,
#top .superior-reg-list {
    line-height: 1.5;
    margin: 0;
    padding-left: 20px;
}

#top .superior-reg-next li,
#top .superior-reg-list li {
    margin: 0 0 6px;
}

.superior-reg-help {
    border-top: 1px solid rgba(41, 63, 94, 0.1);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 18px 0 0;
    padding-top: 14px;
}

.superior-reg-help a,
.superior-reg-panel a:not(.superior-reg-button) {
    color: #1698b2;
}

@media screen and (max-width: 860px) {
    .superior-reg-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .superior-reg-hero,
    .superior-reg-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .superior-reg-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .superior-reg-hero h1 {
        font-size: 1.6rem;
    }

    .superior-reg-hero-price {
        align-items: baseline;
        flex-flow: row wrap;
        gap: 4px 8px;
        justify-self: start;
        padding: 10px 16px;
    }

    .superior-reg-hero-price strong {
        font-size: 1.5rem;
    }

    .superior-reg-steps {
        display: flex;
        padding: 14px 20px;
    }

    .superior-reg-step.is-current {
        flex: 1;
    }

    .superior-reg-step-label {
        display: none;
    }

    .superior-reg-step.is-current .superior-reg-step-label {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .superior-reg-row,
    .superior-reg-row-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    #top .superior-reg .superior-reg-button {
        text-align: center;
        width: 100%;
    }
}
