/* REDECOMSA-PUBLIC-FORMS-1.0.0 */

.rdc-forms-page,
.rdc-forms-page * {
    box-sizing: border-box;
}

.rdc-forms-section {
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3rem)
        clamp(2rem, 5vw, 4rem);
}

.rdc-forms-grid {
    display: grid;
    grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.55fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.rdc-forms-information {
    position: sticky;
    top: 1.5rem;
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--redecomsa-ink, #20252b);
    background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 48, 112, 0.12);
    border-radius: 1rem;
}

.rdc-forms-information h2 {
    margin: 0 0 0.8rem;
    color: #003070;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    line-height: 1.2;
}

.rdc-forms-information p {
    margin: 0 0 1rem;
}

.rdc-forms-contact-card {
    display: grid;
    gap: 0.35rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 48, 112, 0.12);
    border-left: 0.3rem solid var(--redecomsa-orange, #f04000);
    border-radius: 0.75rem;
}

.rdc-forms-contact-card strong {
    color: #003070;
}

.rdc-forms-contact-card span,
.rdc-forms-contact-card a {
    overflow-wrap: anywhere;
}

.rdc-forms-small {
    color: var(--redecomsa-muted, #667085);
    font-size: 0.88rem;
}

.rdc-form-card {
    min-width: 0;
    padding: clamp(1.15rem, 3vw, 2rem);
    background: var(--redecomsa-surface, #ffffff);
    border: 1px solid rgba(0, 48, 112, 0.12);
    border-radius: 1rem;
    box-shadow: 0 0.8rem 2rem rgba(0, 48, 112, 0.08);
}

.rdc-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    min-width: 0;
}

.rdc-form-field {
    min-width: 0;
}

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

.rdc-form-field label {
    display: block;
    margin-bottom: 0.42rem;
    color: #26384a;
    font-size: 0.92rem;
    font-weight: 750;
}

.rdc-form-field label span,
.rdc-form-check strong {
    color: var(--redecomsa-orange, #f04000);
}

.rdc-form-field input,
.rdc-form-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.78rem 0.86rem;
    color: var(--redecomsa-ink, #20252b);
    font: inherit;
    line-height: 1.45;
    background: #ffffff;
    border: 1px solid #cfd8e1;
    border-radius: 0.65rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rdc-form-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.rdc-form-field input:focus,
.rdc-form-field textarea:focus {
    border-color: var(--redecomsa-orange, #f04000);
    box-shadow: 0 0 0 0.22rem rgba(240, 64, 0, 0.14);
}

.rdc-form-privacy {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.35rem;
    padding: 1rem;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.rdc-form-privacy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
}

.rdc-form-check {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    color: #344054;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rdc-form-check input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.2rem 0 0;
    accent-color: var(--redecomsa-orange, #f04000);
}

.rdc-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e5e7eb;
}

.rdc-form-actions button {
    border: 0;
    cursor: pointer;
}

.rdc-form-actions span {
    max-width: 25rem;
    color: var(--redecomsa-muted, #667085);
    font-size: 0.82rem;
    line-height: 1.45;
}

.rdc-form-errors,
.rdc-form-success {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
}

.rdc-form-errors {
    color: #7a271a;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.rdc-form-errors strong {
    display: block;
    margin-bottom: 0.45rem;
}

.rdc-form-errors ul {
    margin: 0 0 0 1.15rem;
    padding: 0;
}

.rdc-form-errors li + li {
    margin-top: 0.25rem;
}

.rdc-form-success {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    color: #05603a;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.rdc-form-success > .fa {
    margin-top: 0.15rem;
    font-size: 1.45rem;
}

.rdc-form-success h2 {
    margin: 0 0 0.25rem;
    color: #05603a;
    font-size: 1.25rem;
}

.rdc-form-success p {
    margin: 0;
}

.rdc-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rdc-privacy-content h2 {
    margin: 1.3rem 0 0.3rem;
    color: #003070;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

.rdc-privacy-content h2:first-child {
    margin-top: 0;
}

.rdc-privacy-content h3 {
    margin: 0.8rem 0 0.2rem;
    color: #26384a;
    font-size: 1.08rem;
}

.rdc-privacy-content p,
.rdc-privacy-content ul,
.rdc-privacy-content ol {
    max-width: 75ch;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.rdc-privacy-content li + li {
    margin-top: 0.35rem;
}

.rdc-privacy-content a {
    overflow-wrap: anywhere;
}

.rdc-privacy-note {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 0.3rem solid var(--redecomsa-orange, #f04000);
    border-radius: 0.7rem;
}

@media (max-width: 52rem) {
    .rdc-forms-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdc-forms-information {
        position: static;
    }
}

@media (max-width: 40rem) {
    .rdc-forms-section {
        padding: 1rem 0.8rem 2rem;
    }

    .rdc-form-card,
    .rdc-forms-information {
        padding: 1rem;
        border-radius: 0.8rem;
        box-shadow: none;
    }

    .rdc-form-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdc-form-field--full {
        grid-column: auto;
    }

    .rdc-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rdc-form-actions .rdc-button {
        width: 100%;
    }

    .rdc-form-actions span {
        text-align: center;
    }
}

/* REDECOMSA-FORMS-HERO-GAP-1.0.0 START */

/*
 * Separación homologada entre navegación y hero.
 *
 * Escritorio: 35 px.
 * Móvil: 21.6 px.
 */
body.itemid-110 #g-main .rdc-forms-article,
body.itemid-111 #g-main .rdc-forms-article {
    padding-top: 35px !important;
}

@media (max-width: 47.99rem) {
    body.itemid-110 #g-main .rdc-forms-article,
    body.itemid-111 #g-main .rdc-forms-article {
        padding-top: 1.35rem !important;
    }
}

/* REDECOMSA-FORMS-HERO-GAP-1.0.0 END */

/* REDECOMSA-PRIVACY-MODAL-CSS-1.0.0 START */

.rdc-form-privacy--simplified {
    gap: 0.95rem;
}

.rdc-privacy-summary {
    display: grid;
    gap: 0.65rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.rdc-privacy-summary p,
.rdc-transfer-note {
    margin: 0;
}

.rdc-privacy-read-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.rdc-privacy-open {
    appearance: none;
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    color: #005ea8;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.rdc-privacy-open:hover,
.rdc-privacy-open:focus-visible {
    color: #003070;
}

.rdc-transfer-note {
    padding-left: 1.7rem;
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.5;
}

.rdc-privacy-dialog {
    width: min(48rem, calc(100vw - 2rem));
    max-width: 48rem;
    max-height: min(88vh, 52rem);
    margin: auto;
    padding: 0;
    color: #20252b;
    background: #ffffff;
    border: 0;
    border-radius: 1rem;
    box-shadow:
        0 1.5rem 4rem
        rgba(0, 23, 53, 0.28);
    overflow: hidden;
}

.rdc-privacy-dialog::backdrop {
    background:
        rgba(0, 23, 53, 0.68);
    backdrop-filter: blur(2px);
}

.rdc-privacy-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(88vh, 52rem);
}

.rdc-privacy-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #002b63 0%,
            #0067ad 100%
        );
    border-bottom:
        0.28rem solid
        #f04000;
}

.rdc-privacy-dialog-eyebrow {
    margin: 0 0 0.25rem;
    color: #ffb000;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rdc-privacy-dialog-header h2 {
    margin: 0;
    color: #ffffff;
    font-size:
        clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.18;
}

.rdc-privacy-dialog-close {
    appearance: none;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font: inherit;
    font-size: 1.85rem;
    line-height: 1;
    background:
        rgba(255, 255, 255, 0.13);
    border:
        1px solid
        rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    cursor: pointer;
}

.rdc-privacy-dialog-close:hover,
.rdc-privacy-dialog-close:focus-visible {
    background:
        rgba(255, 255, 255, 0.23);
}

.rdc-privacy-dialog-body {
    display: grid;
    gap: 1.15rem;
    padding: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rdc-privacy-dialog-section {
    scroll-margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left:
        0.3rem solid
        #f04000;
    border-radius: 0.75rem;
    outline: none;
}

.rdc-privacy-dialog-section:focus-visible {
    box-shadow:
        0 0 0 0.22rem
        rgba(0, 103, 173, 0.16);
}

.rdc-privacy-dialog-section h3 {
    margin: 0 0 0.65rem;
    color: #003070;
    font-size: 1.18rem;
}

.rdc-privacy-dialog-section p,
.rdc-privacy-dialog-section ul {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.rdc-privacy-dialog-section p:last-child,
.rdc-privacy-dialog-section ul:last-child {
    margin-bottom: 0;
}

.rdc-privacy-dialog-section li + li {
    margin-top: 0.3rem;
}

.rdc-privacy-dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

body.rdc-privacy-dialog-open {
    overflow: hidden;
}

.rdc-privacy-dialog--fallback {
    position: fixed;
    inset: 1rem;
    z-index: 99999;
}

@media (max-width: 40rem) {
    .rdc-privacy-read-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .rdc-transfer-note {
        padding-left: 0;
    }

    .rdc-privacy-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 0.8rem;
    }

    .rdc-privacy-dialog-shell {
        max-height: calc(100vh - 1rem);
    }

    .rdc-privacy-dialog-header,
    .rdc-privacy-dialog-body,
    .rdc-privacy-dialog-footer {
        padding: 1rem;
    }

    .rdc-privacy-dialog-footer .rdc-button {
        width: 100%;
    }
}

/* REDECOMSA-PRIVACY-MODAL-CSS-1.0.0 END */

