.ethics-hero {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #003b74;
}

.ethics-hero > img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
}

.ethics-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 48px 20px;
    color: white;
    background: linear-gradient(90deg, rgba(0, 45, 88, 0.88) 0%, rgba(0, 79, 155, 0.55) 45%, rgba(0, 79, 155, 0.04) 78%);
}

.ethics-hero-overlay > div {
    width: 100%;
}

.ethics-hero-overlay span,
.ethics-kicker,
.ethics-form-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #0de9ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ethics-hero-overlay h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.ethics-section {
    background: #f5faff;
}

.ethics-page-switcher {
    padding: 24px 20px 0;
    background: #f5faff;
}

.ethics-page-switcher-inner {
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #d8e9f9;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 18px rgba(0, 79, 155, 0.08);
}

.ethics-page-switcher a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    color: #004f9b;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
}

.ethics-page-switcher a:hover {
    background: #ecf4fc;
}

.ethics-page-switcher a.active {
    color: white;
    background: #004f9b;
    box-shadow: 0 4px 10px rgba(0, 79, 155, 0.22);
}

.ethics-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr);
    gap: 42px;
    align-items: start;
}

.ethics-intro {
    position: sticky;
    top: 165px;
    padding: 18px 4px;
}

.ethics-intro h2,
.ethics-form-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 1.75rem;
    line-height: 1.2;
}

.ethics-title-line {
    width: 72px;
    height: 4px;
    margin: 18px 0 26px;
    border-radius: 4px;
    background: #004f9b;
}

.ethics-intro > p {
    color: #475467;
    font-size: 0.93rem;
    line-height: 1.75;
}

.ethics-assurance {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d8e9f9;
}

.ethics-assurance-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #d8e9f9;
}

.ethics-assurance-icon svg,
.ethics-file svg {
    width: 23px;
    fill: none;
    stroke: #004f9b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ethics-assurance strong {
    color: #004f9b;
    font-size: 0.9rem;
}

.ethics-assurance p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.55;
}

.ethics-form-card {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: white;
}

.ethics-form-heading {
    padding: 30px 34px;
    color: white;
    background: linear-gradient(120deg, #003d78, #0064bd);
}

.ethics-form-heading h2,
.ethics-form-heading p {
    color: white;
}

.ethics-form-heading p {
    margin: 9px 0 0;
    font-size: 0.8rem;
}

.ethics-form-heading b,
.ethics-field b {
    color: #e24444;
}

#ethics-report-form {
    padding: 0 34px 34px;
}

.ethics-form-section {
    min-width: 0;
    margin: 0;
    padding: 30px 0;
    border: 0;
    border-bottom: 1px solid #e4e7ec;
}

.ethics-form-section legend {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    padding: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 700;
}

.ethics-form-section legend > span {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #004f9b;
    font-size: 0.83rem;
}

.ethics-form-section legend small {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 20px;
    color: #004f9b;
    background: #ecf4fc;
    font-size: 0.68rem;
    font-weight: 500;
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ethics-field-full {
    grid-column: 1 / -1;
}

.ethics-field label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 600;
}

.ethics-field input:not([type="file"]),
.ethics-field select,
.ethics-field textarea,
.related-person input {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid #98a2b3;
    border-radius: 7px;
    outline: none;
    color: #101828;
    background: white;
    font: 400 0.83rem 'Montserrat', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ethics-field textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.ethics-field input:focus,
.ethics-field select:focus,
.ethics-field textarea:focus,
.related-person input:focus {
    border-color: #004f9b;
    box-shadow: 0 0 0 3px rgba(0, 79, 155, 0.1);
}

.ethics-help {
    margin: -11px 0 13px;
    color: #667085;
    font-size: 0.73rem;
    line-height: 1.55;
}

#report-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ethics-file {
    display: flex !important;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    margin: 0 !important;
    padding: 14px 16px;
    border: 1px dashed #98a2b3;
    border-radius: 8px;
    cursor: pointer;
    background: #f9fafb;
}

.ethics-file:hover {
    border-color: #004f9b;
    background: #f5faff;
}

.ethics-file span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ethics-file strong {
    color: #004f9b;
    font-size: 0.8rem;
}

.ethics-file small {
    color: #667085;
    font-size: 0.7rem;
    font-weight: 400;
}

.related-people {
    display: grid;
    gap: 12px;
}

.related-person {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr auto;
    gap: 9px;
    align-items: end;
    padding: 14px;
    border: 1px solid #d8e9f9;
    border-radius: 9px;
    background: #f9fcff;
}

.related-person label {
    display: block;
    margin-bottom: 6px;
    color: #475467;
    font-size: 0.66rem;
    font-weight: 600;
}

.related-person input {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.73rem;
}

.remove-related-person {
    width: 40px;
    height: 40px;
    border: 1px solid #f0b4b4;
    border-radius: 7px;
    color: #b42318;
    background: #fff5f4;
    cursor: pointer;
    font-size: 1.15rem;
}

.remove-related-person:hover {
    color: white;
    background: #b42318;
}

.ethics-secondary-button {
    margin-top: 13px;
    padding: 10px 15px;
    border: 1px solid #004f9b;
    border-radius: 7px;
    color: #004f9b;
    background: white;
    cursor: pointer;
    font: 600 0.76rem 'Montserrat', sans-serif;
}

.ethics-secondary-button:hover {
    color: white;
    background: #004f9b;
}

.ethics-secondary-button span {
    margin-right: 5px;
    font-size: 1rem;
}

.ethics-additional-info {
    margin-top: 24px;
}

.ethics-anonymous-note {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 4px solid #004f9b;
    border-radius: 0 7px 7px 0;
    color: #344054;
    background: #ecf4fc;
    font-size: 0.76rem;
    line-height: 1.6;
}

.ethics-privacy {
    padding: 25px 0 0;
    color: #475467;
    font-size: 0.73rem;
    line-height: 1.65;
}

.ethics-privacy p {
    margin-top: 0;
}

.ethics-privacy a {
    font-weight: 600;
    text-decoration: underline;
}

.ethics-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.ethics-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: #004f9b;
}

.ethics-form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 25px;
}

.ethics-form-actions #ethics-form-status {
    display: none;
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #b2ddff;
    border-radius: 7px;
    color: #004f9b;
    background: #eff8ff;
    font-size: 0.76rem;
}

.ethics-form-actions #ethics-form-status.estado-exito {
    border-color: #a6d8b4;
    color: #176b35;
    background: #edf9f0;
}

.ethics-form-actions #ethics-form-status.estado-error {
    border-color: #f0b4b4;
    color: #b42318;
    background: #fff5f4;
}

.ethics-submit {
    min-width: 190px;
}

.ethics-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.ethics-form-actions small {
    margin-top: 10px;
    color: #98a2b3;
    font-size: 0.66rem;
}

@media only screen and (max-width: 900px) {
    .ethics-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ethics-intro {
        position: static;
    }

    .ethics-assurance {
        display: inline-flex;
        width: calc(50% - 10px);
        vertical-align: top;
        margin-right: 15px;
    }
}

@media only screen and (max-width: 700px) {
    .ethics-hero {
        min-height: 215px;
    }

    .ethics-hero > img {
        height: 240px;
    }

    .ethics-hero-overlay {
        padding: 32px 18px;
    }

    .ethics-section {
        padding-top: 28px;
    }

    .ethics-page-switcher {
        padding: 16px 12px 0;
    }

    .ethics-page-switcher-inner {
        grid-template-columns: 1fr;
    }

    .ethics-layout {
        padding: 0 14px;
    }

    .ethics-assurance {
        display: flex;
        width: 100%;
        margin-right: 0;
    }

    .ethics-form-card {
        border-radius: 10px;
    }

    .ethics-form-heading,
    #ethics-report-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ethics-grid,
    .related-person {
        grid-template-columns: 1fr;
    }

    .ethics-field-full {
        grid-column: auto;
    }

    .related-person {
        position: relative;
        padding-top: 50px;
    }

    .remove-related-person {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .ethics-form-section legend {
        align-items: flex-start;
        line-height: 1.35;
    }

    .ethics-form-section legend small {
        white-space: nowrap;
    }

    .ethics-submit {
        width: 100%;
    }
}
