/* Override MUI Container for compare pages only */
.compare-page-wrapper .MuiContainer-root.MuiContainer-maxWidthLg {
    max-width: 2400px !important;
    padding-top: 0 !important;
}

.compare-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.compare-heading {
    text-align: center;
}

.compare-heading h1 {
    font-weight: 400;
    margin-bottom: 8px;
}

.compare-heading p {
    color: rgba(124, 143, 172, 1);
}

.compare-card {
    width: 100%;
    box-shadow: 0 12px 24px -4px rgba(145, 158, 171, 0.12);
    border: 1px solid rgba(145, 158, 171, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.compare-tabs {
    border-bottom: 1px solid rgba(145, 158, 171, 0.2);
}

.compare-content {
    padding: 24px;
}

.compare-arrow {
    color: rgba(124, 143, 172, 1);
}

/* ---- Comparison slots (Original / Modified) — refreshed ---- */
.compare-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.compare-slot-caption {
    font-size: 12.5px;
    font-weight: 700;
    color: #5A6A85;
}

/* Empty slot — dashed box, muted fill, centred upload tile + browse prompt. */
.compare-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px 14px;
    min-height: 150px;
    border: 1.5px dashed #DFE5EF;
    border-radius: 8px;
    background-color: #F2F6FA;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.compare-slot-empty:hover,
.compare-slot-empty.drag-over {
    border-color: #5D87FF;
    background-color: rgba(93, 135, 255, 0.06);
}

.compare-slot-empty.has-error {
    border-color: #FA896B;
}

.compare-slot-uploadtile {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #5D87FF;
    box-shadow: 0 2px 4px -1px rgba(145, 158, 171, 0.18);
}

.compare-slot-prompt {
    font-size: 13.5px;
    font-weight: 600;
    color: #2A3547;
}

.compare-slot-browse {
    color: #5D87FF;
    text-decoration: underline;
}

.compare-slot-hint {
    font-size: 11.5px;
    color: #7C8FAC;
}

/* Filled slot — solid-primary outline on a tinted fill, file tile + meta + ✕. */
.compare-slot-filled {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    min-height: 150px;
    box-sizing: border-box;
    border: 1px solid #5D87FF;
    border-radius: 8px;
    background-color: #ECF2FF;
}

.compare-slot-filled.has-error {
    border-color: #FA896B;
}

.compare-slot-fileicon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #5D87FF;
    flex-shrink: 0;
}

.compare-slot-filemeta {
    flex: 1;
    min-width: 0;
}

.compare-slot-filename {
    font-size: 13.5px;
    font-weight: 700;
    color: #2A3547;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-slot-filesize {
    font-size: 12px;
    color: #7C8FAC;
}

.compare-slot-remove {
    flex-shrink: 0;
    color: #7C8FAC !important;
}

.compare-slot-error {
    color: #FA896B;
    font-size: 12px;
}

.compare-submit {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.compare-submit button {
    min-width: 200px;
    font-weight: 600;
}

.compare-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(124, 143, 172, 1);
    font-size: 14px;
}

.compare-usage {
    text-align: center;
    margin-bottom: 16px;
    color: rgba(124, 143, 172, 1);
    font-size: 14px;
}

/* Text comparison tab */
.compare-text-area {
    width: 100%;
}

.compare-text-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(42, 53, 71, 1);
}

/* Compare Result Page - matching DocumentAnalysisPage pattern */
.compare-result-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.compare-result-wrapper .MuiContainer-root {
    max-width: 2400px !important;
    padding-top: 0 !important;
}

.compare-result-content {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 16px;
    max-width: 2400px;
    margin: 0 auto;
    min-height: 0;
    overflow: hidden;
}

/* Public comparison route (without /user/) needs padding */
.compare-result-wrapper.public-route {
    padding: 16px;
    box-sizing: border-box;
}

/* Mobile responsiveness for compare forms */
@media (max-width: 600px) {
    .compare-content {
        padding: 16px;
    }

    .compare-submit button {
        min-width: 160px;
        width: 100%;
    }
}

.full-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.entry-title {
    font-size: 56px;
    margin-bottom: 70px;
    line-height: 4rem; 
    margin-left: 24px;
}

.beta {
    background: #4570EA;
    color: white;
    font-size: 0.3em;
    position: absolute;
    border-radius: 50px;
    padding: 0 10px;
    margin-left: 5px;
    margin-top: -10px;
    white-space: nowrap;
}

.content {
    background-color: #ecf2ff;
    text-align: left;
    line-height: 1.5;
    letter-spacing: normal;
    font-size: 21px;
    padding-top: 50px;
}

.intro {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #333;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    background: #ecf2ff;
    position: relative;
    z-index: 2;
    text-align: left;
}


/* Styles matching original form */
.sub-header {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
}


.span1 {
    background: #b2c5ff;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.span2 {
    background: #f7ac9d;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.span3 {
    background: #e8f7ff;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.span4 {
    background: #d5e1ff;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.perpliance-form {
    background-color: #fff!important;
    margin: 24px auto 0px;
    padding: 32px;
    border-radius: 7px;
    border-bottom: 1px #eef0f1 solid;
    box-shadow: var(--Paper-shadow);
    --Paper-shadow: rgb(145 158 171 / 30%) 0px 0px 2px 0px, rgb(145 158 171 / 12%) 0px 12px 24px -4px;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    font-size: 13px;
    position: relative;
    text-align: left;
}

.failed-analysis-message {
    /*    todo */
}

.perpliance-form h3 {
    margin: 0 auto 0;
    font-size: 20px;
}

.perpliance-form .Mui-checked {
    color: #4570EA !important;
}

.perpliance-form .MuiButton-outlined.MuiButtonGroup-firstButton {
    border-right: none;
    border: 1px solid #aec4ff;
}

.perpliance-form .MuiButton-contained.MuiButtonGroup-firstButton:not(:disabled):not(.Mui-disabled) {
    border-right: none;
    border: 1px solid #5d87ff;
  }

.perpliance-form .MuiButton-contained.MuiButtonGroup-firstButton:disabled,
.perpliance-form .MuiButton-contained.MuiButtonGroup-firstButton.Mui-disabled {
  border: none;
}

.perpliance-form .MuiButton-outlined.MuiButtonGroup-firstButton:disabled,
.perpliance-form .MuiButton-outlined.MuiButtonGroup-firstButton.Mui-disabled {
    border: 1px solid rgba(73,82,88,0.12)
}


.perpliance-form .analysis-form-btn-grp {
    box-shadow: none;
}

.perpliance-form .analysis-form-btn {
    padding: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 10px 10px 20px 0;
}

.perpliance-form .analysis-form-btn:not(:last-of-type), .perpliance-form .analysis-form-btn:last-of-type {
    border-radius: 7px !important;
    padding: 5px 20px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Mobile responsiveness for form */
@media (max-width: 480px) {
    .perpliance-form {
        padding: 20px 16px;
        margin: 16px auto 0;
    }

    .perpliance-form .analysis-form-btn:not(:last-of-type),
    .perpliance-form .analysis-form-btn:last-of-type {
        padding: 8px 16px;
    }
}

.perpliance-form .MuiButtonGroup-middleButton {
    border-color: #aec2ff;
}

.perpliance-form .MuiButtonGroup-middleButton.Mui-disabled {
    border-color: rgba(73, 82, 88, 0.12)!important;
}

.perpliance-form .form-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.form-consent {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-left: 5px !important;
    margin-top: -10px !important;
}

.form-consent-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8em;
    position: absolute;
    margin-top: -11px;
}

.analysis-form-submit {
    width: 100% !important;
    margin-top: 0 !important;
    text-transform: none !important;
    font-weight: 600!important;
}

.analysis-form-submit.Mui-disabled {
    background-color: #ecf2ff !important;
    color: #81858c !important;
    cursor: not-allowed !important;
}

.permalink {
    font-size: 12px;
}
.risk-box {
    border: 1px solid #dddddd;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.risk-box.red {
    border-left: 5px solid #ef6f6c;
}

.risk-box.orange {
    border-left: 5px solid orange;
}

.risk-box.yellow {
    border-left: 5px solid #f7ec1b;
}

.traffic-light {
    /*position: absolute;*/
    width: 100px;
    margin-left: auto;
    text-align: center;
    color: #333;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 400;
    margin-bottom: -10px;
}

.traffic-light.red {
    background: #ef6f6c;
}

.traffic-light.orange {
    background: orange;
}

.traffic-light.yellow {
    background: #f7ec1b;
}

.quote p, .risk-summary p, .advice p {
    display: flex;
    align-content: center;
    align-items: center;
    font-weight:400;
    font-style: normal;
}

.compliance {
    margin-top: 10px;
    font-size: 14px;
}

.output-disclaimer {
    font-size: 0.8em !important;
    color: rgb(83, 83, 83) !important;
    padding: 0px 10px !important;
    margin: 20px 10px 10px !important;
}
/* StateSelector.css */
.selected-states-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-states-text {
    font-size: 16px !important;
    margin-top: 12px !important;
    word-break: break-word;
}

.states-list {
    padding: 8px 0 0 8px;
}

.states-list label {
    display: block;
}

/* Mobile responsiveness for state selector */
@media (max-width: 400px) {
    .selected-states-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .selected-states-text {
        margin-top: 8px !important;
    }
}


.selected-file-area {
    display: flex;
    justify-content: center;
    word-break: break-word;
    text-align: center;
}

.file-upload-button {
    margin-top: 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 5px 20px !important;
    font-size: 16px !important;
    text-transform: none !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .file-upload-button {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .selected-file-area {
        flex-direction: column;
        align-items: center;
    }
}

