
:root {
    --brand-color: rgb(255, 84, 0);
    --brand-border-color: #CD6500;
    --brand-color-accent: rgb(255, 84, 0);;
    --brand-color-light: #d6c6bc;
    --brand-color-light-with-opacity: rgba(255, 84, 0, 0.6);
    --brand-color-beige: #f3efed;
    --rz-input-focus-border: 1px solid var(--brand-color-light) !important;
    --rz-input-focus-shadow: 0 0 0 1px var(--brand-color) !important;
    --rz-primary: var(--brand-color-accent) !important;
    --rz-steps-title-selected-color: #757575 !important;
    --bs-primary: var(--brand-color);
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f7f8fb;
}

/* Making page read only */
.readonly-wrap.is-readonly {
    pointer-events: none;
    opacity: .65;
}

/* Page Settings */

.di-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
}

.di-shell {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-inline: clamp(8px, 4vw, 24px);
    padding-block: clamp(16px, 3vw, 48px);
    min-width: 0;
}

.di-header {
    padding: 0.75rem 0.25rem;
}

.di-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.di-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.di-logo svg {
    width: 100%;
    height: 100%;
}

.di-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.di-subtitle {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.di-main {
    flex: 1 1 auto;
}

.di-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.di-footer a {
    color: inherit;
    text-decoration: none;
}

.di-footer a:hover {
    text-decoration: underline;
}

.di-sep {
    padding: 0 0.5rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .di-shell {
        min-width: 0;
    }

    .di-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Disclosure Policy Styles START */

.policy-content {
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 1rem;
}

.policy-content h1, .policy-content h2, .policy-content h3 {
    margin-top: 1.0rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    margin-bottom: 0.75rem;
}

.policy-content ul, .policy-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.policy-content code {
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
    background: rgba(0,0,0,0.04);
}

/* Disclosure Policy Styles END */


/* RIBBON STYLE START */

.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    overflow: hidden;
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.ribbon-large {
    position: absolute;
    top: 60px;
    right: -65px;
    width: 300px;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.7rem 0;
    transform: rotate(45deg);
    box-shadow: 0 6px 10px rgba(0,0,0,0.28), inset 0 -2px 4px rgba(0,0,0,0.18);
}

.boosted-program-bg {
    background-color: rgb(216, 187, 13);
}

/* RIBBON STYLE END */

/* Special Submit button */

#submitBtn {
    position: absolute;
    margin-top: 19px;
    right: 25px;
    padding: 0.4rem 1.1rem;
    display: none;
    border-radius: 0.5rem;
    z-index: 999;
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

/* WIZARD PAGE START */

.di-wizard-center {
    min-height: auto !important;
    display: flex;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.di-wizard-card {
    width: 1200px !important;
    min-width: 1200px !important;
    max-width: 1200px !important;

    @media (max-width: 1250px) {
        width: 100% !important;
        min-width: 100% !important;
    }
}

.di-wizard {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.di-wizard-rail {
    flex: 0 0 320px;
    max-width: 250px;
    align-self: stretch;
    border-right: 1px solid rgba(0,0,0,.10);
    padding-right: 1.25rem;
}

.di-step {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: .6rem;
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
}

.di-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    background: rgba(0,0,0,.08);
    color: rgba(0,0,0,.65);
}

.di-step-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9rem;
    color: rgba(0,0,0,.85);
}

.di-step.is-active {
    border-color: rgba(0,0,0,.08);
}

.di-step.is-active .di-step-num {
    background: var(--brand-color);
    color: #fff;
}

@media (max-width: 992px) {
    .di-wizard {
        flex-direction: column;
    }

    .di-wizard-rail {
        flex: 0 0 auto;
        max-width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.10);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .di-step-text {
        white-space: normal;
    }
}

.di-wizard-body {
    flex: 1 1 auto;
    min-width: 0;
}

.di-wizard-body > div {
    min-width: 0;
}

/* WIZARD END */

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:disabled {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-border-color) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:visited,
.btn-secondary:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-secondary:hover {
    filter: brightness(0.95);
}

.terms-text a {
    color: var(--brand-color);
    font-weight: 500;
    text-decoration: underline;
}

.terms-text a:hover {
    color: var(--brand-color);
    text-decoration: none;
}

.securitytxt-box {
    background: rgb(246, 246, 246);
    color: black;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-x: auto;
    border: 1px solid #1e293b;
}

.securitytxt-box pre {
    margin: 0;
    white-space: pre-wrap;
}

.datagrid-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    min-width: 0;
}

.valid.modified:not([type="checkbox"]) {
    outline: none !important;
}

/* Markdown Editor styles */

.EasyMDEContainer .CodeMirror {
    font-weight: normal !important;
    font-size: 14px !important;
    height: auto !important;
    overflow: hidden !important;
}

.EasyMDEContainer .CodeMirror-scroll {
    max-height: 400px;
    overflow-y: auto !important;
    padding-right: 8px;
}

.EasyMDEContainer {
    .editor-toolbar {
        background-color: #F8F9FA;
    }
}

.EasyMDEContainer .editor-toolbar button.table {
    width: auto;
}

.cm-header, .cm-strong {
    font-weight: normal;
}

.cm-em {
    font-style: normal;
}

.cm-s-easymde .cm-header-1, .cm-s-easymde .cm-header-2, .cm-s-easymde .cm-header-3, .cm-s-easymde .cm-header-4, .cm-s-easymde .cm-header-5  {
    font-size: inherit;
}

.cm-s-easymde .cm-link, .cm-s-easymde .cm-url {
    text-decoration: none;
    color: inherit;
}

.cm-s-easymde .cm-comment {
    background: none;
}

.cm-quote {
    color: inherit !important;
    font-style: normal;
}

.cm-tag {
    color: inherit !important;
}

.mde-wrap { position: relative; }
.mde-disabled {
    opacity: .6;
    pointer-events: none;
    filter: grayscale(100%);
}

.mde-disabled :is(textarea, button, a, [tabindex]) {
    pointer-events: none;
}

.dns-value-cell {
    white-space: normal !important;
    word-break: break-all !important;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 5px 0;
}

.editor-hidden {
    visibility: hidden;
    position: absolute;
    z-index: -1000;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.editor-visible {
    visibility: visible;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    height: auto;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
