:root {
    --blue: #075bc8;
    --navy: #07346f;
    --pale: #f2f8ff;
    --line: #ccdaeb;
    --green: #04944f;
    --red: #d72d2d;
    --text: #243550;
    --muted: #65748b;
    --shadow: 0 3px 14px rgba(20, 66, 120, .08)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f7fbff;
    color: var(--text);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px
}

.hero {
    height: 154px;
    background: #fff;
    display: grid;
    grid-template-columns: 270px 1fr 600px;
    align-items: center;
    border-bottom: 1px solid #dce8f5;
    overflow: hidden
}

.hero-logo {
    height: 145px;
    display: flex;
    align-items: center;
    padding-left: 15px
}

.hero-logo img {
    width: 240px;
    height: 80px;
    object-fit: cover
}

.hero-title {
    padding: 0 28px;
    z-index: 2
}

.hero h1 {
    margin: 0;
    color: #072e6b;
    font-size: 25px;
    line-height: 1.35;
}

.hero p {
    margin: 10px 0 0;
    font-size: 17px;
    color: #536782
}

.hero p span {
    padding: 0 8px
}

.hero-photo {
    height: 100%;
    background: linear-gradient(90deg, #fff0 0%, #ffffff18 20%), url('../images/cabecera-mayores-edit.jpg') center/cover no-repeat
}

.page-shell {
    max-width: 1450px;
    margin: auto;
    padding: 12px 23px 22px
}

.steps {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #66738a;
    white-space: nowrap
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f7f8fa;
    border: 1px solid #d7dee8;
    font-size: 16px
}

.step-line {
    width: 245px;
    height: 2px;
    background: #b7c4d5
}

.step.active {
    color: var(--blue)
}

.step.active .step-dot {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px #dcecff
}

.step.done {
    color: #40516a
}

.step.done .step-dot {
    background: #eaf8f0;
    color: var(--green);
    border-color: var(--green)
}

.step.done .step-dot {
    font-size: 0
}

.step.done .step-dot:after {
    content: '\2713';
    font-size: 18px
}

.screen {
    display: none
}

.active-screen {
    display: block
}

.notice {
    min-height: 42px;
    border: 1px solid #a8c8ee;
    border-radius: 10px;
    background: #eef6ff;
    color: #124f9b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    margin: 8px 0 14px
}

.notice i {
    font-size: 21px
}

.notice.success {
    border-color: #88cba8;
    background: #f1fbf6;
    color: #157547
}

.notice.big {
    justify-content: flex-start;
    min-height: 100px;
    padding: 20px 30px
}

.notice.big>i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #dff4e9;
    font-size: 28px
}

.notice.big span {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.notice.big strong {
    font-size: 20px
}

.notice.big small {
    font-size: 14px;
    color: #506279
}

.panel {
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 12px
}

.panel h2 {
    color: #0755b2;
    font-size: 18px;
    margin: 0 0 14px
}

.panel h2 i {
    margin-right: 8px;
    font-weight: 400
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.panel-heading>span {
    font-size: 12px
}

.panel b,
label b,
.upload-card b {
    color: var(--red)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 54px;
    row-gap: 11px
}

.form-grid>label,
.choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    border: 0;
    padding: 0;
    font-weight: 600
}

.form-grid input[type=text],
.form-grid input[type=number],
.form-grid input[type=email],
.form-grid input[type=tel] {
    height: 38px;
    border: 1px solid #cdd6e2;
    border-radius: 5px;
    padding: 0 12px;
    font: inherit;
    outline: 0
}

.form-grid input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px #dcecff
}

.choice {
    display: block
}

.choice legend {
    font-weight: 600;
    margin-bottom: 9px
}

.choice label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 24px;
    font-weight: 400
}

.choice small {
    display: block;
    margin: 7px 0 0 28px;
    color: var(--muted)
}

input[type=radio],
input[type=checkbox] {
    accent-color: var(--blue);
    width: 17px;
    height: 17px
}

.field-error {
    display: none;
    color: var(--red);
    font-weight: 400
}

.invalid input {
    border-color: var(--red) !important
}

.invalid .field-error {
    display: block
}

.documents h2,
.consent-panel h2 {
    margin-bottom: 12px
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.upload-card {
    min-height: 140px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto 1fr auto auto;
    gap: 4px 8px
}

.upload-card>i {
    font-size: 25px;
    color: var(--blue);
    grid-row: 1/3
}

.upload-card strong {
    font-size: 12px
}

.upload-card span {
    font-size: 10px;
    color: var(--muted)
}

.upload-card a {
    color: var(--blue)
}

.upload-btn {
    grid-column: 1/3;
    height: 31px;
    border: 1px solid var(--blue);
    color: var(--blue);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff
}

.upload-btn input {
    display: none
}

.upload-card small {
    grid-column: 1/3;
    color: #7a899d;
    text-align: center;
    font-size: 9px
}

.upload-card.has-file {
    border-color: var(--green);
    background: #f5fcf8
}

.upload-card.has-file .upload-btn {
    border-color: var(--green);
    color: var(--green)
}

.doc-note {
    font-size: 11px;
    color: #65758b;
    margin: 8px 4px 0
}

.doc-note i {
    color: var(--blue)
}

.consent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.consent-grid>div>label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 10px;
    font-size: 11px
}

.consent-grid details {
    border: 1px solid #d5e0ed;
    border-radius: 8px;
    padding: 10px
}

.consent-grid summary {
    color: #0755b2;
    font-weight: 600;
    cursor: pointer
}

.consent-grid details p {
    font-size: 10px;
    margin: 8px 0
}

.action-bar {
    min-height: 68px;
    border: 1px solid #d9e7f5;
    border-radius: 11px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    gap: 22px
}

.help {
    display: flex;
    align-items: center;
    gap: 12px
}

.help>i {
    color: var(--blue);
    font-size: 25px
}

.help span {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.help small {
    color: #65758b
}

.email-help {
    color: #0755b2;
    font-size: 12px
}

.primary-btn,
.secondary-btn {
    border-radius: 9px;
    min-height: 47px;
    padding: 0 34px;
    font: 600 15px Montserrat;
    color: #fff;
    border: 0;
    cursor: pointer;
    white-space: nowrap
}

.primary-btn {
    background: linear-gradient(180deg, #1477ec, #0053c5);
    box-shadow: 0 4px 10px #0a62c833
}

.primary-btn i,
.secondary-btn i {
    margin-right: 10px;
    font-size: 20px
}

.primary-btn:disabled {
    opacity: .45;
    cursor: not-allowed
}

.secondary-btn {
    background: #fff;
    border: 1px solid var(--blue);
    color: var(--blue)
}

.workshop-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px
}

.rules {
    display: flex;
    gap: 15px;
    background: #f2f7fc;
    border: 1px solid #cadaeb;
    border-radius: 7px;
    padding: 10px;
    color: #123d79;
    font-size: 14px
}

.rules>i {
    font-size: 22px
}

.rules ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.55
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px
}

.workshop-card {
    position: relative;
    min-height: 178px;
    border: 1px solid #dce2ea;
    border-radius: 9px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.workshop-card.selected {
    border-color: #40a46d;
    background: #f8fdf9
}

.workshop-icon {
    font-size: 30px;
    color: var(--card-color);
    margin: 0 0 4px
}

.workshop-card h3 {
    color: var(--card-color);
    font-size: 14px;
    margin: 2px
}

.workshop-card>p {
    font-size: 11px;
    line-height: 1.5;
    margin: 4px 0 8px
}

.select-toggle {
    margin-top: auto;
    border: 1px solid #9daec0;
    border-radius: 5px;
    background: #fff;
    color: #52677e;
    padding: 4px 14px;
    font: 500 10px Montserrat;
    cursor: pointer
}

.selected .select-toggle {
    border-color: #3aa068;
    color: #16814a
}

.check-mark {
    display: none;
    position: absolute;
    right: 9px;
    top: 9px;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    place-items: center
}

.selected .check-mark {
    display: grid
}

.session {
    display: none;
    text-align: left;
    border: 1px solid #5fb382;
    border-radius: 6px;
    padding: 7px;
    width: 100%;
    font-size: 10px;
    line-height: 1.45
}

.selected .session {
    display: block
}

.warning {
    margin-top: 12px;
    background: #fffdf1;
    border: 1px solid #f1e3aa;
    border-radius: 6px;
    padding: 9px;
    color: #987014;
    font-size: 11px
}

.warning i {
    font-size: 18px;
    margin-right: 8px
}

.summary-panel h3 {
    border-top: 1px solid #dce6ef;
    text-align: right;
    padding-top: 11px;
    font-size: 12px;
    color: #0755b2
}

.saved {
    display: grid;
    grid-template-columns: 26px 1fr;
    color: #0755b2
}

.saved i {
    grid-row: 1/3;
    color: var(--green);
    font-size: 19px
}

.saved span {
    grid-column: 2;
    color: var(--green);
    font-size: 11px
}

.summary-item {
    border: 1px solid #cfe2da;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    font-size: 11px;
    display: grid;
    grid-template-columns: 26px 1fr
}

.summary-number {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700
}

.summary-item h4 {
    margin: 1px 0 5px;
    color: #1264ba
}

.summary-item dl {
    display: grid;
    grid-template-columns: 85px 1fr;
    margin: 0;
    line-height: 1.45
}

.summary-item dt {
    font-weight: 500
}

.summary-item dd {
    margin: 0
}

.compact {
    justify-content: flex-start;
    font-size: 11px;
    margin-top: 15px
}

.success-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 26px
}

.final-card {
    text-align: left;
    padding: 38px 35px
}

.success-seal {
    float: left;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #dff5e9;
    color: #30b575;
    display: grid;
    place-items: center;
    font-size: 37px;
    margin: 0 55px 15px 0
}

.final-card>h2 {
    color: #06904c;
    font-size: 21px;
    margin-top: 20px
}

.request-number {
    display: inline-block;
    border: 1px solid #d4e6dc;
    background: #f7fcf9;
    border-radius: 8px;
    padding: 13px 32px;
    color: #2c7355
}

.request-number strong {
    color: #098d4d;
    font-size: 18px
}

.final-card>h3 {
    clear: both;
    color: #0755b2;
    margin-top: 30px
}

.next-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.next-list li {
    display: flex;
    gap: 24px;
    margin: 18px 0
}

.next-list i {
    color: #1871d5;
    font-size: 21px;
    width: 24px;
    text-align: center
}

.next-list span {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.next-list small {
    color: #718095
}

.receipt {
    padding: 26px 30px
}

.receipt>#personal-summary {
    display: grid;
    grid-template-columns: 44% 56%;
    border: 1px solid #d7e1ec;
    border-radius: 7px;
    overflow: hidden
}

.receipt>#personal-summary>dt,
.receipt>#personal-summary>dd {
    margin: 0;
    padding: 8px;
    border-bottom: 1px solid #d7e1ec;
    font-size: 11px
}

.receipt>#personal-summary>dt {
    border-right: 1px solid #d7e1ec;
    font-weight: 500
}

.receipt h3 {
    color: #0755b2
}

.final-workshop {
    display: grid;
    grid-template-columns: 26px 34px 1fr 1.4fr;
    border: 1px solid #dbe4ed;
    border-radius: 7px;
    padding: 9px;
    margin: 8px 0;
    align-items: center;
    font-size: 10px
}

.final-workshop .workshop-icon {
    font-size: 22px;
    margin: 0
}

.final-workshop strong {
    color: #1264ba
}

.final-actions {
    margin-top: 2px
}

.final-actions .primary-btn {
    min-width: 31%
}

.final-actions .secondary-btn {
    min-width: 23%
}

@media(max-width:1350px) {
    .hero {
        grid-template-columns: 230px 1fr 360px
    }

    .hero-logo img {
        width: 230px
    }

    .hero h1 {
        font-size: 19px
    }

    .document-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .workshop-layout,
    .success-layout {
        grid-template-columns: 1fr
    }

    .summary-panel {
        order: 2
    }

    .action-bar {
        flex-wrap: wrap
    }

    .email-help {
        display: none
    }
}

@media(max-width:700px) {
    body {
        font-size: 13px
    }

    .hero {
        height: auto;
        grid-template-columns: 120px 1fr
    }

    .hero-logo {
        height: 95px;
        padding: 0
    }

    .hero-logo img {
        width: 120px;
        height: 90px
    }

    .hero-title {
        padding: 10px
    }

    .hero h1 {
        font-size: 14px
    }

    .hero p {
        font-size: 12px
    }

    .hero-photo {
        display: none
    }

    .page-shell {
        padding: 8px
    }

    .steps {
        gap: 5px;
        justify-content: space-between
    }

    .step {
        gap: 5px
    }

    .step strong {
        font-size: 10px
    }

    .step-line {
        width: 25px
    }

    .final-line,
    .final-step {
        display: none
    }

    .form-grid,
    .consent-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .panel {
        padding: 14px 12px
    }

    .panel-heading {
        align-items: flex-start
    }

    .panel-heading>span {
        display: none
    }

    .document-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .workshop-grid {
        grid-template-columns: 1fr 1fr
    }

    .action-bar {
        justify-content: center
    }

    .help {
        display: none
    }

    .primary-btn,
    .secondary-btn {
        width: 100%
    }

    .success-seal {
        float: none;
        margin: 0 auto 15px
    }

    .final-card {
        text-align: center;
        padding: 25px 16px
    }

    .next-list {
        text-align: left
    }

    .final-workshop {
        grid-template-columns: 24px 30px 1fr
    }

    .final-workshop span:last-child {
        grid-column: 3
    }

    .notice {
        align-items: flex-start
    }

    .notice.big {
        padding: 15px
    }

    .notice.big strong {
        font-size: 16px
    }
}

@media print {
    .hero {
        height: 110px
    }

    .steps,
    .notice.big,
    .final-card,
    .final-actions {
        display: none !important
    }

    .screen {
        display: none !important
    }

    #screen-success {
        display: block !important
    }

    .success-layout {
        display: block
    }

    .receipt {
        box-shadow: none
    }

    .page-shell {
        padding: 0
    }
}


[hidden] {
    display: none !important
}

.upload-btn {
    position: relative
}

.upload-btn input {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer
}

.upload-btn:focus-within {
    outline: 3px solid #07346f;
    outline-offset: 3px
}

.file-name {
    overflow-wrap: anywhere;
    grid-column: 1/-1
}

#form-errors {
    display: block
}

.request-number strong,
.receipt dd {
    overflow-wrap: anywhere
}

@media(max-width:420px) {

    .document-grid,
    .workshop-grid {
        grid-template-columns: 1fr
    }
}

/* Validation feedback for the whole personal-data step. */
.form-grid .field-error {
    font-size: 12px;
    line-height: 1.4
}

.choice.invalid {
    border: 1px solid var(--red);
    border-radius: 6px;
    padding: 8px;
    background: #fff8f8
}

.choice.invalid legend {
    color: inherit
}

.choice.invalid .field-error {
    margin: 6px 0 0;
    color: var(--red)
}

.upload-card.invalid {
    border-color: var(--red);
    background: #fff8f8
}

.upload-card.invalid .upload-btn {
    border-color: var(--red);
    color: var(--red)
}

.upload-card .field-error {
    grid-column: 1/-1;
    color: var(--red);
    font-size: 12px;
    text-align: left
}

.consent-field {
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px
}

.consent-field>label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px
}

.consent-field input {
    flex-shrink: 0
}

.consent-field.invalid {
    border-color: var(--red);
    background: #fff8f8
}

.consent-field .field-error {
    margin-top: 6px;
    font-size: 12px
}

/* Keep the source photograph's left-edge lettering outside the header. */
.hero-photo {
    background-position: center, right center;
    background-size: 100% 100%, cover
}

#form-errors {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 18px
}

#form-errors>strong {
    font-size: 16px
}

#form-errors ul:empty {
    display: none
}

.consent-grid summary {
    font-size: 14px;
    line-height: 1.5
}

.consent-grid details p {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0
}

.consent-field>label {
    margin: 0;
    line-height: 1.5
}

.consent-field input[type=checkbox] {
    flex: 0 0 17px;
    margin: 0;
    margin-top: 1px
}

.consent-field>label>span {
    flex: 1;
    min-width: 0
}

/* Workshop notices span the available catalogue width. */
.workshop-panel>.warning {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px
}

#workshop-grid>[role=status] {
    grid-column: 1/-1;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
    overflow-wrap: break-word
}

/* Readable workshop selection and consent controls. */
.doc-note {
    font-size: 14px;
    line-height: 1.6
}

.consent-field>label {
    font-size: 14px;
    line-height: 1.6;
    min-height: 44px;
    cursor: pointer
}

.consent-field input[type=checkbox] {
    margin-top: 3px
}

.rules {
    align-items: center;
    font-size: 14px;
    line-height: 1.6
}

.rules>i {
    flex-shrink: 0
}

#form-errors.workshop-feedback {
    text-align: center;
    font-size: 14px
}

#form-errors.workshop-feedback>strong {
    font-size: inherit
}

#form-errors.workshop-feedback ul {
    text-align: left
}

.workshop-card {
    padding: 16px 12px;
    min-width: 0;
    gap: 8px
}

.workshop-card h3 {
    font-size: 16px;
    line-height: 1.4
}

.workshop-card>p {
    font-size: 14px;
    line-height: 1.6
}

.workshop-icon {
    font-size: 34px;
    margin: 0 0 4px
}

.select-toggle {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4
}

.select-toggle:focus-visible,
summary:focus-visible,
input[type=checkbox]:focus-visible {
    outline: 3px solid #07346f;
    outline-offset: 3px
}

.session {
    font-size: 14px;
    line-height: 1.6;
    padding: 10px
}

.session dl {
    margin: 0
}

.session dt {
    font-weight: 600
}

.session dd {
    margin: 0 0 6px;
    overflow-wrap: anywhere
}

.summary-panel h3,
.saved span,
.summary-panel .compact {
    font-size: 14px;
    line-height: 1.6
}

.summary-item {
    font-size: 14px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 12px
}

.summary-item h4 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px
}

.summary-item dl {
    grid-template-columns: minmax(95px, auto) minmax(0, 1fr);
    gap: 4px 10px;
    line-height: 1.6
}

.summary-item dd {
    overflow-wrap: anywhere
}

.summary-number {
    width: 24px;
    height: 24px
}

.workshop-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr))
}

@media(min-width:1351px) {
    .workshop-layout {
        grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr)
    }
}

@media(max-width:420px) {
    .summary-item dl {
        grid-template-columns: 1fr;
        gap: 2px
    }

    .summary-item dd {
        margin-bottom: 6px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

/* Fine spacing and consistent alignment across each row of workshops. */
.consent-field>label,
.consent-grid details p {
    font-size: 13px
}

.choice small {
    margin-left: 0
}

.panel-heading {
    align-items: center;
    gap: 16px;
    margin-bottom: 14px
}

.panel-heading h2 {
    margin-bottom: 0
}

.panel-heading>span {
    font-size: 13px;
    line-height: 1.5
}

.panel-heading>span b {
    color: var(--red)
}

.consent-panel h2 .fas {
    font-weight: 900
}

#form-errors,
#form-errors.workshop-feedback {
    font-size: inherit;
    text-align: center
}

#form-errors>strong,
#form-errors.workshop-feedback>strong {
    font-size: inherit
}

#form-errors ul {
    text-align: left
}

.workshop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.workshop-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-items: start;
    justify-items: center;
    row-gap: 10px
}

.workshop-card>.workshop-icon {
    grid-row: 1
}

.workshop-card>h3 {
    grid-row: 2
}

.workshop-card>p {
    grid-row: 3;
    margin: 0
}

.workshop-card>.select-toggle {
    grid-row: 4;
    min-height: 36px;
    padding: 6px 12px;
    margin-top: 0
}

.workshop-card>.session {
    grid-row: 5;
    align-self: stretch
}

.summary-item dl {
    font-size: 13px
}

@media(max-width:700px) {
    .workshop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:420px) {
    .workshop-grid {
        grid-template-columns: 1fr
    }
}

.consent-grid details p b {
    color: #111
}

.consent-grid details a {
    color: #0755b2;
    text-decoration: underline;
    overflow-wrap: anywhere
}

.workshop-card>p,
.workshop-card>.session {
    font-size: 13px
}

/* Header image fades behind the title without consuming a third grid column. */
.hero {
    position: relative;
    grid-template-columns: 230px minmax(0, 1fr)
}

.hero-logo {
    position: relative;
    z-index: 2
}

.hero-logo img {
    width: 230px
}

.hero-title {
    position: relative;
    min-width: 0;
    padding: 0 20px
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 46%;
    background-image: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .94) 18%, rgba(255, 255, 255, .5) 43%, transparent 70%), url('../images/cabecera-mayores-edit.jpg')
}

.hero h1 {
    font-size: clamp(16px, 1.55vw, 25px);
    line-height: 1.35
}

.hero-heading-line {
    white-space: nowrap
}

.panel h2 i.fas {
    font-weight: 900
}

.final-card>.notice {
    font-size: 14px;
    line-height: 1.6
}

#final-workshops .summary-item dl {
    border: 0;
    border-radius: 0;
    overflow: visible
}

#final-workshops .summary-item dt,
#final-workshops .summary-item dd {
    padding: 0;
    border: 0;
    font-size: 13px;
    color: var(--text)
}

@media(max-width:1100px) {
    .hero-heading-line {
        white-space: normal
    }

    .hero-photo {
        width: 40%
    }
}

@media(max-width:700px) {
    .hero {
        grid-template-columns: 120px minmax(0, 1fr)
    }

    .hero-logo img {
        width: 120px
    }

    .hero-title {
        padding: 10px
    }

    .hero h1 {
        font-size: 14px
    }
}

/* Emphasize the request number and give the detailed receipt more space. */
.final-card {
    padding: 26px 24px;
    min-width: 0
}

.final-card>.request-number {
    display: block;
    margin: 0 0 24px;
    padding: 20px 16px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center
}

.final-card>.request-number strong {
    display: block;
    font-size: 24px;
    line-height: 1.4;
    margin-top: 4px
}

.receipt {
    min-width: 0
}

.receipt>#personal-summary>dt,
.receipt>#personal-summary>dd {
    font-size: 14px;
    line-height: 1.6;
    padding: 10px 12px
}

@media(min-width:1351px) {
    .success-layout {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr)
    }
}

@media(max-width:700px) {
    .final-card {
        padding: 22px 16px
    }

    .final-card>.request-number strong {
        font-size: 22px
    }
}

/* Final receipt: numbered horizontal rows matching the supplied final design. */
#final-workshops .final-workshop {
    grid-template-columns: 24px 34px minmax(115px, 1fr) minmax(0, 1.8fr);
    gap: 10px;
    padding: 12px;
    margin: 8px 0;
    background: #fff;
    font-size: 13px;
    line-height: 1.6;
    break-inside: avoid
}

#final-workshops .workshop-icon {
    font-size: 27px;
    color: var(--card-color)
}

#final-workshops .final-workshop>strong {
    color: var(--card-color);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere
}

.final-workshop-details {
    min-width: 0;
    color: var(--text)
}

.final-workshop-details p {
    margin: 0;
    overflow-wrap: anywhere
}

@media(max-width:700px) {
    #final-workshops .final-workshop {
        grid-template-columns: 24px 30px minmax(0, 1fr)
    }

    .final-workshop-details {
        grid-column: 3
    }
}

/* Right-hand confirmation panel follows the reference's six-row table and compact workshop list. */
.receipt {
    padding: 26px 30px
}

.receipt>h2 {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 14px
}

.receipt>h3 {
    font-size: 14px;
    line-height: 1.5;
    margin: 18px 4px 10px
}

.receipt>#personal-summary {
    display: grid;
    grid-template-columns: 49% 51%;
    margin: 0;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    overflow: hidden
}

.receipt>#personal-summary>dt,
.receipt>#personal-summary>dd {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #e9edf2;
    background: #fff;
    min-width: 0
}

.receipt>#personal-summary>dt {
    font-weight: 600;
    border-right: 1px solid #e9edf2
}

.receipt>#personal-summary>dt:last-of-type,
.receipt>#personal-summary>dd:last-of-type {
    border-bottom: 0
}

.receipt-count {
    color: #0755b2;
    font-weight: 600
}

#final-workshops .final-workshop {
    grid-template-columns: 20px 34px minmax(0, 1fr) minmax(0, 1.85fr);
    gap: 10px;
    min-height: 58px;
    padding: 9px 12px;
    margin: 5px 0;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    align-items: center;
    line-height: 1.5
}

#final-workshops .summary-number {
    width: 20px;
    height: 20px;
    font-size: 12px;
    align-self: start;
    margin-top: 1px
}

#final-workshops .final-workshop>strong {
    font-size: 13px
}

#final-workshops .workshop-icon {
    font-size: 27px;
    text-align: center
}

.final-workshop-details {
    font-size: 13px;
    line-height: 1.5
}

.receipt-slot {
    display: grid;
    grid-template-columns: auto 12px minmax(0, 1fr);
    gap: 6px
}

.receipt-separator {
    text-align: center;
    color: #243550;
    font-weight: 700
}

.receipt-schedule {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 12px
}

.receipt-time {
    white-space: nowrap;
    color: #243550
}

.receipt-dates {
    flex-basis: 100%
}

@media(max-width:700px) {
    .receipt {
        padding: 20px 14px
    }

    #final-workshops .final-workshop {
        grid-template-columns: 20px 30px minmax(0, 1fr)
    }

    .final-workshop-details {
        grid-column: 3
    }

    .receipt>#personal-summary>dt,
    .receipt>#personal-summary>dd {
        padding: 7px;
        font-size: 13px
    }
}

.final-actions>a.primary-btn,
.final-actions>a.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 24px
}

.workshop-card {
    grid-row: span 6
}

.workshop-card>.shift-picker {
    grid-row: 4;
    display: block;
    width: 100%;
    text-align: left;
    font-size: 13px;
    font-weight: 600
}

.shift-picker select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #a8bbd1;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: var(--text)
}

.workshop-card>.select-toggle {
    grid-row: 5
}

.workshop-card>.session {
    grid-row: 6;
    display: block
}

.shift-picker select:focus-visible {
    outline: 3px solid #07346f;
    outline-offset: 2px
}

.workshop-card.unavailable {
    background: #f5f6f8;
}

.workshop-card select:disabled,
.workshop-card button:disabled {
    cursor: not-allowed;
    color: #545b65;
    background: #e9edf1;
}

.workshop-card .selection-status {
    font-size: 14px;
    color: #545b65;
    margin: 8px 0 0;
}

.workshop-card .selection-status:empty {
    display: none;
}

.workshop-card .selection-status {
    color: #b42318;
}

