/* ce-modern.css
   Shared styling for the legacy Institute CE Accreditation Web Forms pages.
   Scoped to .ce-app so it does not interfere with head.aspx or other legacy pages.
*/

.ce-page {
    margin: 0;
    background: #ffffff;
    color: #4b4b4b;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.ce-app {
    --ce-green: #087f3f;
    --ce-green-dark: #056732;
    --ce-green-soft: #edf7f1;
    --ce-text: #4b4b4b;
    --ce-heading: #087f3f;
    --ce-border: #dfe5e1;
    --ce-muted: #767676;
    --ce-error: #b42318;
    --ce-warning-bg: #fff8df;
    --ce-warning-border: #e0b93d;
    --ce-max-width: 1120px;

    color: var(--ce-text);
}

.ce-app,
.ce-app * {
    box-sizing: border-box;
}

.ce-container {
    width: min(calc(100% - 40px), var(--ce-max-width));
    margin: 0 auto;
}

.ce-message {
    display: block;
    width: min(calc(100% - 40px), var(--ce-max-width));
    margin: 14px auto 0;
}

.ce-page-error {
    display: block;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 4px solid var(--ce-error);
    background: #fff2f0;
    color: var(--ce-error);
    font-weight: 600;
}

/* Progress steps */
.ce-steps-wrap {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #e1e1e1;
    background: #ffffff;
}

.ce-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: min(calc(100% - 40px), 900px);
    margin: 0 auto;
    padding: 22px 0;
    list-style: none;
    counter-reset: ce-step;
}

.ce-step {
    position: relative;
    text-align: center;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 600;
}

.ce-step::before {
    counter-increment: ce-step;
    content: counter(ce-step);
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 7px;
    border: 2px solid #c9d1cc;
    border-radius: 50%;
    background: #ffffff;
    color: #8a8a8a;
}

.ce-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 14px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
    height: 2px;
    background: #d9dfdb;
}

.ce-step.is-active {
    color: var(--ce-green);
}

.ce-step.is-active::before {
    border-color: var(--ce-green);
    background: var(--ce-green);
    color: #ffffff;
}

.ce-step.is-complete {
    color: var(--ce-green);
}

.ce-step.is-complete::before {
    content: "";
    border-color: var(--ce-green);
    background: var(--ce-green);
    color: #ffffff;
}

.ce-step.is-complete::after {
    background: var(--ce-green);
}

/* Main form shell */
.ce-main {
    padding: 52px 0 70px;
}

.ce-intro {
    margin: 0 0 30px;
    text-align: left;
}

.ce-eyebrow {
    margin: 0 0 8px;
    color: var(--ce-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ce-title {
    margin: 0 0 14px;
    color: var(--ce-heading);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
}

.ce-lead {
    max-width: 880px;
    margin: 0;
    color: #555555;
    font-size: 16px;
}

.ce-app a {
    color: var(--ce-green);
    font-weight: 600;
    text-decoration: none;
}

.ce-app a:hover,
.ce-app a:focus {
    text-decoration: underline;
}

/* Alert */
.ce-alert {
    margin: 0 0 24px;
    padding: 20px 22px;
    border-left: 4px solid var(--ce-warning-border);
    background: var(--ce-warning-bg);
}

.ce-alert h2 {
    margin: 0 0 6px;
    color: #3f3f3f;
    font-size: 17px;
    line-height: 1.35;
}

.ce-alert p {
    margin: 0;
}

.ce-alert p + p {
    margin-top: 10px;
}

.ce-supporting-link {
    margin: 0 0 38px;
}

/* Long-form instructions and accountability content */
.ce-prose {
    max-width: 940px;
}

.ce-prose > :first-child {
    margin-top: 0;
}

.ce-prose > :last-child {
    margin-bottom: 0;
}

.ce-alpha-list {
    margin: 20px 0 28px;
    padding-left: 28px;
    list-style-type: lower-alpha;
}

.ce-alpha-list li + li {
    margin-top: 10px;
}

.ce-choice-card {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--ce-border);
    border-left: 4px solid var(--ce-green);
    background: #f8faf9;
}

.ce-choice-card__question {
    margin: 0 0 12px;
    color: #393939;
    font-weight: 700;
}

.ce-choice-list {
    border-collapse: collapse;
}

.ce-choice-list td {
    padding: 0 24px 0 0;
}

.ce-choice-list input {
    margin: 0 7px 0 0;
    accent-color: var(--ce-green);
}

.ce-choice-list label {
    cursor: pointer;
}

.ce-inline-message {
    display: block;
    margin-top: 10px;
}

/* Expandable guidance panels */
.ce-disclosure-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #393939;
    font-weight: 700;
}

.ce-disclosure-icon {
    display: none;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.ce-info-panel {
    display: block;
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #cfe0d6;
    border-left: 4px solid var(--ce-green);
    background: var(--ce-green-soft);
}

.ce-info-panel h3 {
    margin: 0 0 8px;
    color: var(--ce-heading);
    font-size: 18px;
    font-weight: 600;
}

.ce-info-panel p {
    margin: 0 0 12px;
}

.ce-info-panel__inset {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #d8e4dd;
    background: #ffffff;
}

.ce-material-list {
    margin: 12px 0 0;
    padding-left: 22px;
}

.ce-material-list li + li {
    margin-top: 7px;
}

/* Checkbox groups */
.ce-check-list {
    display: grid;
    gap: 10px;
    max-width: 620px;
}

.ce-check-option {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--ce-border);
    background: #ffffff;
}

.ce-check-option input[type="checkbox"] {
    margin: 0 9px 0 0;
    accent-color: var(--ce-green);
}

.ce-check-option label {
    cursor: pointer;
}

.ce-note--important,
.ce-action-warning {
    color: var(--ce-error);
    font-weight: 700;
}

/* Supporting-material uploads */
.ce-upload-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.ce-upload-row {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(260px, 1.3fr) minmax(120px, .6fr) minmax(120px, .6fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--ce-border);
    background: #ffffff;
}

.ce-upload-label {
    color: #393939;
    font-weight: 600;
}

.ce-file-input {
    display: block;
    width: 100%;
    min-width: 0;
    color: #444444;
    font: inherit;
}

.ce-file-input::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid var(--ce-green);
    border-radius: 2px;
    background: #ffffff;
    color: var(--ce-green);
    cursor: pointer;
    font-weight: 700;
}

.ce-file-name {
    overflow-wrap: anywhere;
    color: var(--ce-muted);
    font-size: 13px;
}

.ce-upload-status {
    color: var(--ce-error);
    font-size: 13px;
    font-weight: 700;
}

.ce-upload-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0 10px;
}

.ce-upload-actions p {
    max-width: 620px;
    margin: 0;
    color: var(--ce-muted);
    font-size: 13px;
}

.ce-upload-button {
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid var(--ce-green);
    border-radius: 2px;
    background: var(--ce-green);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ce-upload-button:hover,
.ce-upload-button:focus {
    background: var(--ce-green-dark);
}

.ce-action-warning {
    margin: 32px 0 -20px;
    text-align: right;
}

/* Existing upload-progress JavaScript creates .modal and reveals .loading. */
.modal {
    position: fixed;
    z-index: 900;
    inset: 0;
    min-height: 100%;
    background: #000000;
    opacity: .72;
    filter: alpha(opacity=72);
}

.loading {
    position: fixed;
    z-index: 999;
    display: none;
    width: min(calc(100% - 32px), 420px);
    padding: 26px;
    border-top: 4px solid #087f3f;
    background: #ffffff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .28);
    color: #333333;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-align: center;
}

.loading strong,
.loading span,
.loading img {
    display: block;
}

.loading strong {
    margin-bottom: 12px;
    color: #087f3f;
    font-size: 18px;
}

.loading img {
    max-width: 100%;
    margin: 0 auto 14px;
}

.loading span {
    color: #b42318;
    font-size: 13px;
}

/* Fee and payment components */
.ce-section-meta {
    margin-left: 8px;
    font-weight: 700;
}

.ce-table-wrap {
    overflow-x: auto;
}

.ce-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.ce-data-table th,
.ce-data-table td {
    padding: 13px 15px;
    border: 1px solid var(--ce-border);
    text-align: left;
    vertical-align: top;
}

.ce-data-table thead th {
    background: #f1f6f3;
    color: #393939;
}

.ce-alert--compact {
    margin-top: 20px;
    margin-bottom: 0;
}

.ce-fee-summary {
    width: min(100%, 620px);
    margin: 28px 0 0 auto;
    border: 1px solid var(--ce-border);
    background: #f8faf9;
}

.ce-fee-summary__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
    gap: 20px;
    padding: 11px 15px;
    border-bottom: 1px solid var(--ce-border);
    text-align: right;
}

.ce-fee-summary__row:last-child {
    border-bottom: 0;
}

.ce-fee-summary__row--total {
    background: var(--ce-green);
    color: #ffffff;
    font-size: 16px;
}

.ce-choice-list--stacked {
    width: 100%;
}

.ce-choice-list--stacked td {
    display: block;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid var(--ce-border);
    background: #ffffff;
}

.ce-payment-panel {
    display: block;
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-green);
    background: #f8faf9;
}

.ce-payment-panel h3 {
    margin: 0 0 20px;
    color: var(--ce-heading);
    font-size: 20px;
    font-weight: 600;
}

.ce-control--compact {
    width: min(100%, 190px);
}

.ce-card-type-row,
.ce-expiry-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ce-card-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.ce-expiry-row .ce-control {
    flex: 0 1 150px;
}

.ce-security-panel {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 34px 0;
    padding: 22px;
    border: 1px solid var(--ce-border);
    background: #f8faf9;
}

.ce-security-panel__logo {
    flex: 0 0 auto;
    max-width: 90px;
    height: auto;
}

.ce-security-panel h2 {
    margin: 0 0 5px;
    color: #393939;
    font-size: 17px;
}

.ce-security-panel p,
.ce-acknowledgement {
    margin: 0;
}

/* Submission confirmation */
.ce-success-panel {
    padding: 34px;
    border: 1px solid var(--ce-border);
    border-top: 5px solid var(--ce-green);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.ce-success-panel h1 {
    margin: 0 0 18px;
    color: var(--ce-heading);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.25;
}

.ce-reference-number {
    margin: 24px 0;
    padding: 16px;
    border-left: 4px solid var(--ce-green);
    background: var(--ce-green-soft);
}

.ce-reference-number strong {
    color: var(--ce-green-dark);
}

.ce-success-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.ce-success-links > a,
.ce-print-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--ce-green);
    border-radius: 2px;
    background: #ffffff;
    color: var(--ce-green);
    font-weight: 700;
}

.ce-success-links > a:hover,
.ce-success-links > a:focus,
.ce-print-link:hover,
.ce-print-link:focus {
    background: var(--ce-green-soft);
    text-decoration: none;
}

.ce-print-link img {
    display: none;
}

.ce-print-link::before {
    content: "Print application";
}

/* Accreditation information (Step 3) */
.ce-field-hint {
    display: block;
    margin-top: 5px;
    color: var(--ce-muted);
    font-size: 12px;
}

.ce-control[disabled],
.ce-field input[disabled] {
    background: #eef1ef;
    color: #666666;
    cursor: not-allowed;
}

.ce-advisory {
    margin: 26px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--ce-warning-border);
    background: var(--ce-warning-bg);
}

.ce-advisory--warning {
    color: #4a4330;
}

.ce-option-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid #cfe0d6;
    background: var(--ce-green-soft);
}

.ce-option-panel h3,
.ce-format-detail h3 {
    margin: 0 0 6px;
    color: var(--ce-heading);
    font-size: 17px;
    font-weight: 600;
}

.ce-option-panel p {
    margin: 0;
}

.ce-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ce-guidance-list {
    margin: 0;
    padding-left: 22px;
}

.ce-guidance-list li + li {
    margin-top: 9px;
}

.ce-format-grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
    gap: 26px;
    align-items: start;
}

.ce-format-primary,
.ce-format-detail {
    min-width: 0;
}

.ce-format-detail {
    display: block;
    padding: 18px;
    border: 1px solid var(--ce-border);
    border-left: 4px solid var(--ce-green);
    background: #f8faf9;
}

.ce-format-detail + .ce-format-detail {
    margin-top: 12px;
}

.ce-control--textarea {
    min-height: 110px;
    resize: vertical;
}

.ce-credit-card {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr);
    gap: 24px;
    align-items: center;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid var(--ce-border);
    background: #f8faf9;
}

.ce-credit-card > div:first-child {
    color: #393939;
    font-weight: 700;
}

.ce-disclosure-heading--fees {
    margin-top: 30px;
}

/* Sections */
.ce-section {
    margin-top: 34px;
    border-top: 1px solid var(--ce-border);
}

.ce-section-title {
    display: inline-block;
    margin: -1px 0 0;
    padding: 15px 24px;
    background: var(--ce-green);
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.ce-subsection {
    padding: 30px 0 8px;
}

.ce-subsection + .ce-subsection {
    margin-top: 18px;
    border-top: 1px solid var(--ce-border);
}

.ce-subsection-title {
    margin: 0 0 6px;
    color: var(--ce-heading);
    font-size: 22px;
    font-weight: 500;
}

.ce-note {
    margin: 0 0 24px;
    color: var(--ce-muted);
    font-size: 14px;
}

/* Fields */
.ce-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 34px;
}

.ce-field {
    min-width: 0;
}

.ce-field--full {
    grid-column: 1 / -1;
}

.ce-field-label {
    display: block;
    margin-bottom: 7px;
    color: #393939;
    font-size: 14px;
    font-weight: 600;
}

.ce-control,
.ce-field input[type="text"],
.ce-field input[type="password"],
.ce-field select,
.ce-field textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bfc9c3;
    border-radius: 2px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    line-height: 1.35;
}

.ce-field select {
    cursor: pointer;
}

.ce-field input:focus,
.ce-field select:focus,
.ce-field textarea:focus {
    border-color: var(--ce-green);
    outline: 2px solid rgba(8, 127, 63, .15);
    outline-offset: 1px;
}

.ce-input-prefix {
    display: flex;
    align-items: stretch;
}

.ce-input-prefix-text {
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #bfc9c3;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: #f4f6f5;
    color: #666666;
    white-space: nowrap;
}

.ce-input-prefix input {
    border-radius: 0 2px 2px 0 !important;
}

.ce-field-error {
    display: block;
    margin-top: 5px;
    color: var(--ce-error);
    font-size: 13px;
    font-weight: 600;
}

/* Actions
   The ASP:ImageButton controls remain intact and functional.
   Their legacy GIFs are made transparent and stretched over the CSS button.
*/
.ce-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--ce-border);
}

.ce-action {
    position: relative;
    display: inline-flex;
    min-width: 118px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.ce-action--primary {
    background: var(--ce-green);
    color: #ffffff;
}

.ce-action--primary:hover {
    background: var(--ce-green-dark);
}

.ce-action--secondary {
    border-color: var(--ce-green);
    background: #ffffff;
    color: var(--ce-green);
}

.ce-action--secondary:hover {
    background: var(--ce-green-soft);
}

.ce-action-input {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    cursor: pointer;
}

/* Standalone CE search and lookup pages */
.ce-main--utility {
    padding-top: 46px;
}

.ce-page-error:empty,
.ce-inline-message:empty,
.ce-results-summary:empty {
    display: none;
}

.ce-card {
    padding: 28px;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-green);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.ce-card--narrow {
    max-width: 760px;
}

.ce-card-title {
    margin: 0 0 8px;
    color: var(--ce-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}

.ce-card-intro {
    margin: 0 0 22px;
    color: var(--ce-muted);
}

.ce-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.ce-search-row--single {
    grid-template-columns: minmax(240px, 520px);
}

.ce-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.ce-filter-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--ce-border);
    background: #f8faf9;
}

.ce-filter-card h2 {
    margin: 0 0 16px;
    color: var(--ce-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ce-check-list--compact {
    gap: 8px;
}

.ce-check-list--compact .ce-check-option {
    padding: 9px 11px;
}

.ce-results {
    margin-top: 34px;
}

.ce-results-summary {
    display: block;
    margin-bottom: 14px;
    color: var(--ce-green-dark);
    font-weight: 700;
}

.ce-results-scroll {
    overflow-x: auto;
}

.ce-results-table {
    width: 100%;
    min-width: 680px;
    border: 1px solid var(--ce-border);
    border-collapse: collapse;
    background: #ffffff;
}

.ce-results-table th,
.ce-results-table td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--ce-border);
    text-align: left;
    vertical-align: top;
}

.ce-results-table th,
.ce-results-table .dgHeader {
    background: #f1f6f3;
    color: #303a34;
    font-size: 13px;
    font-weight: 700;
}

.ce-results-table tr:nth-child(even) td {
    background: #fbfcfb;
}

.ce-results-table tr:last-child td {
    border-bottom: 0;
}

.ce-results-table .pageLinks {
    background: #ffffff;
    text-align: right;
}

.ce-detail-list {
    margin: 0;
    border: 1px solid var(--ce-border);
}

.ce-detail-row {
    display: grid;
    grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
    border-bottom: 1px solid var(--ce-border);
}

.ce-detail-row:last-child {
    border-bottom: 0;
}

.ce-detail-term,
.ce-detail-value {
    margin: 0;
    padding: 13px 16px;
}

.ce-detail-term {
    background: #f4f7f5;
    color: #393939;
    font-weight: 700;
}

.ce-detail-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ce-status-value {
    color: var(--ce-error);
    font-weight: 700;
}

.ce-actions--left {
    justify-content: flex-start;
}

.ce-actions--compact {
    margin-top: 24px;
    padding-top: 20px;
}

.ce-help-list {
    margin: 28px 0 0;
    padding: 18px 22px 18px 42px;
    border-left: 4px solid var(--ce-warning-border);
    background: var(--ce-warning-bg);
}

.ce-help-list li + li {
    margin-top: 8px;
}

.legacy-footer {
    width: 100%;
}

/* Responsive */
@media (max-width: 760px) {
    .ce-container,
    .ce-message {
        width: min(calc(100% - 28px), var(--ce-max-width));
    }

    .ce-main {
        padding: 34px 0 50px;
    }

    .ce-steps {
        width: calc(100% - 20px);
        padding: 16px 0;
    }

    .ce-step {
        font-size: 11px;
    }

    .ce-step::before {
        width: 26px;
        height: 26px;
    }

    .ce-step:not(:last-child)::after {
        top: 12px;
        left: calc(50% + 13px);
        width: calc(100% - 26px);
    }

    .ce-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ce-field--full {
        grid-column: auto;
    }

    .ce-section-title {
        display: block;
        padding: 13px 16px;
    }

    .ce-actions {
        flex-direction: column-reverse;
    }

    .ce-action {
        width: 100%;
    }

    .ce-upload-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ce-upload-actions {
        display: block;
    }

    .ce-upload-button {
        width: 100%;
    }

    .ce-upload-actions p {
        margin-top: 10px;
    }

    .ce-action-warning {
        margin-bottom: -16px;
        text-align: left;
    }

    .ce-payment-panel,
    .ce-success-panel {
        padding: 20px;
    }

    .ce-card-type-row,
    .ce-expiry-row,
    .ce-security-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .ce-expiry-row .ce-control {
        flex-basis: auto;
        width: 100%;
    }

    .ce-success-links {
        display: grid;
    }

    .ce-option-panel,
    .ce-format-grid,
    .ce-credit-card,
    .ce-checkbox-grid,
    .ce-filter-grid,
    .ce-search-row,
    .ce-search-row--single,
    .ce-detail-row {
        grid-template-columns: 1fr;
    }

    .ce-card {
        padding: 20px;
    }

    .ce-detail-term {
        padding-bottom: 4px;
    }

    .ce-detail-value {
        padding-top: 4px;
    }
}
/* ============================================================
   Modern Institute header
   Replaces the legacy table-based head.aspx presentation.
   No Elementor/WordPress CSS or JavaScript is required.
   ============================================================ */

.iafe-header {
    --iafe-green: #087f3f;
    --iafe-green-dark: #066b35;
    --iafe-text: #333333;
    --iafe-border: #e5e8e6;
    --iafe-max-width: 1120px;

    position: relative;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    color: var(--iafe-text);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.iafe-header *,
.iafe-header *::before,
.iafe-header *::after {
    box-sizing: border-box;
}

.iafe-header a {
    color: inherit;
    text-decoration: none;
}

.iafe-header a:hover,
.iafe-header a:focus {
    text-decoration: none;
}

.iafe-header__container {
    width: min(calc(100% - 40px), var(--iafe-max-width));
    margin: 0 auto;
}

/* Top green contact strip */
.iafe-header__top {
    background: var(--iafe-green);
    color: #ffffff;
    font-size: 12px;
}

.iafe-header__top-inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.iafe-header__top-left,
.iafe-header__top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iafe-header__top a {
    color: #ffffff;
    font-weight: 400;
}

.iafe-header__top a:hover,
.iafe-header__top a:focus {
    text-decoration: underline;
}

.iafe-header__complaint::before {
    content: "";
    display: inline-block;
    margin-right: 5px;
    font-size: 9px;
    transform: translateY(-1px);
}

/* Logo/search row */
.iafe-header__brand-row {
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.iafe-header__brand-inner {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.iafe-header__logo-link {
    display: inline-block;
    flex: 0 0 auto;
}

.iafe-header__logo {
    display: block;
    width: 293px;
    max-width: 100%;
    height: auto;
}

/*
  IMPORTANT:
  The legacy ASPX page already contains the main ASP.NET <form>.
  Therefore this search area intentionally does NOT create another <form>.
*/
.iafe-header__search {
    display: flex;
    width: 240px;
    max-width: 100%;
    align-items: center;
    border-bottom: 1px solid #cfcfcf;
}

.iafe-header__search-input {
    width: 100%;
    height: 36px;
    padding: 5px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #444444;
    font: inherit;
    font-size: 13px;
}

.iafe-header__search-input::placeholder {
    color: #999999;
}

.iafe-header__search-button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    cursor: pointer;
    font-size: 17px;
    line-height: 34px;
    text-align: center;
}

.iafe-header__search-button:hover,
.iafe-header__search-button:focus {
    color: var(--iafe-green);
    outline: 0;
}

/* Main navigation */
.iafe-header__nav-row {
    border-bottom: 1px solid var(--iafe-border);
    background: #ffffff;
}

.iafe-header__nav-inner {
    position: relative;
}

.iafe-header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333333;
    cursor: pointer;
}

.iafe-header__menu-toggle-bars,
.iafe-header__menu-toggle-bars::before,
.iafe-header__menu-toggle-bars::after {
    position: absolute;
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    content: "";
}

.iafe-header__menu-toggle-bars {
    position: relative;
    margin: 0 auto;
}

.iafe-header__menu-toggle-bars::before {
    top: -7px;
}

.iafe-header__menu-toggle-bars::after {
    top: 7px;
}

.iafe-header__nav {
    display: block;
}

.iafe-header__menu,
.iafe-header__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iafe-header__menu {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 3px;
}

.iafe-header__menu-item {
    position: relative;
}

.iafe-header__menu-link {
    position: relative;
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    text-transform: uppercase;
}

.iafe-header__menu-link::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 14px;
    left: 10px;
    height: 2px;
    background: var(--iafe-green);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity .15s ease, transform .15s ease;
}

.iafe-header__menu-item:hover > .iafe-header__menu-link,
.iafe-header__menu-item:focus-within > .iafe-header__menu-link,
.iafe-header__menu-link:hover,
.iafe-header__menu-link:focus {
    color: var(--iafe-green);
    outline: 0;
}

.iafe-header__menu-item:hover > .iafe-header__menu-link::after,
.iafe-header__menu-item:focus-within > .iafe-header__menu-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.iafe-header__chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

/* Dropdowns */
.iafe-header__submenu {
    position: absolute;
    z-index: 200;
    top: 100%;
    left: 0;
    display: none;
    min-width: 245px;
    padding: 8px 0;
    border: 1px solid #e1e5e2;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

.iafe-header__menu-item:hover > .iafe-header__submenu,
.iafe-header__menu-item:focus-within > .iafe-header__submenu {
    display: block;
}

.iafe-header__submenu-item {
    position: relative;
}

.iafe-header__submenu-link {
    display: block;
    padding: 10px 16px;
    color: #444444;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    white-space: normal;
}

.iafe-header__submenu-link:hover,
.iafe-header__submenu-link:focus {
    background: #f3f8f5;
    color: var(--iafe-green);
    outline: 0;
}

/* Third-level submenu */
.iafe-header__submenu .iafe-header__submenu {
    top: -9px;
    left: 100%;
}

.iafe-header__submenu-item:hover > .iafe-header__submenu,
.iafe-header__submenu-item:focus-within > .iafe-header__submenu {
    display: block;
}

/* Mobile/tablet */
@media (max-width: 980px) {
    .iafe-header__container {
        width: min(calc(100% - 28px), var(--iafe-max-width));
    }

    .iafe-header__brand-inner {
        min-height: 105px;
    }

    .iafe-header__logo {
        width: 250px;
    }

    .iafe-header__menu-toggle {
        position: relative;
        display: block;
    }

    .iafe-header__nav-inner {
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    .iafe-header__nav {
        position: absolute;
        z-index: 300;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        border-top: 1px solid var(--iafe-border);
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    }

    .iafe-header.is-menu-open .iafe-header__nav {
        display: block;
    }

    .iafe-header__menu {
        display: block;
        padding: 8px 0;
    }

    .iafe-header__menu-link {
        min-height: 44px;
        padding: 0 16px;
    }

    .iafe-header__menu-link::after {
        display: none;
    }

    .iafe-header__submenu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 4px 18px;
        border: 0;
        box-shadow: none;
    }

    .iafe-header__menu-item:hover > .iafe-header__submenu,
    .iafe-header__menu-item:focus-within > .iafe-header__submenu,
    .iafe-header__submenu-item:hover > .iafe-header__submenu,
    .iafe-header__submenu-item:focus-within > .iafe-header__submenu {
        display: block;
    }

    .iafe-header__submenu .iafe-header__submenu {
        position: static;
    }

    .iafe-header__submenu-link {
        padding: 8px 16px;
    }
}

@media (max-width: 640px) {
    .iafe-header__top-inner {
        display: block;
        padding: 8px 0;
        text-align: center;
    }

    .iafe-header__top-left,
    .iafe-header__top-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    .iafe-header__top-right {
        margin-top: 4px;
    }

    .iafe-header__brand-inner {
        display: block;
        min-height: 0;
        padding: 22px 0 18px;
        text-align: center;
    }

    .iafe-header__logo-link {
        display: inline-block;
    }

    .iafe-header__search {
        width: 100%;
        margin: 18px auto 0;
    }
}
