/**
 * Shared styles for Finvero registration / demo-request landing pages.
 *
 * Used by:
 *   /registro-lenders/index.html
 *   /registro-merchants/index.html
 *   (any future audience-specific demo-request page)
 *
 * Class naming: `.reg-*` for generic structural classes shared across audiences.
 * Audience-specific copy/imagery is in the page HTML, not in CSS modifiers.
 */

/* =========================================================================
   Page wrapper + breadcrumb
   ========================================================================= */

.reg-page {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #F2F8FE 0%, #FFFFFF 70%);
    min-height: calc(100vh - 80px);
    padding: 84px 24px 80px;
    color: #1C1D21;
}

.reg-breadcrumb {
    max-width: 1200px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.reg-breadcrumb__home {
    display: inline-flex;
    line-height: 0;
}
.reg-breadcrumb__home img {
    width: 18px;
    height: 18px;
}
.reg-breadcrumb__sep {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}
.reg-breadcrumb__active {
    color: #6B819E;
    font-weight: 500;
    text-decoration: none;
}

.reg-hero {
    max-width: 1200px;
    margin: 0 auto;
}

.reg-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

/* =========================================================================
   Left column — value-prop pitch
   ========================================================================= */

.reg-pitch__title {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    color: #0A2D5D;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.reg-pitch__title span {
    color: #1A55DF;
}

.reg-pitch__subtitle {
    font-size: clamp(15px, 1.4vw, 18px);
    color: #0A2D5D;
    font-weight: 600;
    margin: 0 0 32px;
    line-height: 1.5;
}

.reg-pitch__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.reg-pitch__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    line-height: 1.55;
    color: #1C1D21;
}
.reg-pitch__list strong {
    color: #0A2D5D;
    font-weight: 600;
}

.reg-pitch__check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #DAF1FF;
    color: #1A55DF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-top: 1px;
}

.reg-pitch__footer {
    font-size: 14px;
    color: #6B819E;
    margin: 24px 0 0;
}
.reg-pitch__footer a {
    color: #1A55DF;
    font-weight: 600;
    text-decoration: none;
}
.reg-pitch__footer a:hover { text-decoration: underline; }

/* =========================================================================
   Testimonial — sits inside .reg-pitch on desktop, bottom of stack on mobile
   ========================================================================= */

.reg-testimonial {
    margin: 32px 0 0;
    padding: 20px 22px;
    background: #FFFFFF;
    border: 1px solid #E6EAEF;
    border-left: 4px solid #1A55DF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(10, 45, 93, 0.04);
}

.reg-testimonial__quote {
    font-size: 16px;
    line-height: 1.6;
    color: #0A2D5D !important;
    font-weight: 600 !important;
    font-style: italic;
    margin: 0 0 16px;
    quotes: "\201C" "\201D" "\2018" "\2019";
    opacity: 1;
}
.reg-testimonial__quote::before { content: open-quote; margin-right: 1px; }
.reg-testimonial__quote::after { content: close-quote; margin-left: 1px; }

.reg-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reg-testimonial__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(10, 45, 93, 0.15);
}
.reg-testimonial__author-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.reg-testimonial__logo {
    flex-shrink: 0;
    width: 56px;
    height: 28px;
    object-fit: contain;
    object-position: right center;
    opacity: 0.85;
}
.reg-testimonial__name {
    font-size: 13px;
    font-weight: 700;
    color: #0A2D5D;
    line-height: 1.3;
    margin: 0;
}
.reg-testimonial__role {
    font-size: 12px;
    color: #6B819E;
    line-height: 1.3;
    margin: 2px 0 0;
}

/* =========================================================================
   Right column — form card
   ========================================================================= */

.reg-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(10, 45, 93, 0.08), 0 2px 8px rgba(10, 45, 93, 0.04);
    border: 1px solid #E6EAEF;
}

.reg-card__header {
    margin-bottom: 24px;
}

.reg-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #0A2D5D;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.01em;
}

.reg-card__subtitle {
    font-size: 14px;
    color: #6B819E;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.5;
}

.reg-card__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reg-card__step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E6EAEF;
    color: #6B819E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: background-color .18s ease, color .18s ease;
}
.reg-card__step.is-active {
    background: #1A55DF;
    color: #FFFFFF;
}

.reg-card__step-line {
    width: 32px;
    height: 2px;
    background: #E6EAEF;
}

/* =========================================================================
   Form
   ========================================================================= */

.reg-form {
    position: relative;
}
.reg-form__step {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 16px;
}
.reg-form__step.is-active {
    display: flex;
}

.reg-form__group {
    display: flex;
    flex-direction: column;
}

.reg-form__group label {
    font-size: 14px;
    font-weight: 500;
    color: #0A2D5D;
    margin-bottom: 6px;
}
.reg-form__group label span {
    color: #F44336;
    margin-left: 2px;
}

.reg-form__group input[type="text"],
.reg-form__group input[type="email"],
.reg-form__group input[type="tel"],
.reg-form__group select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #1C1D21;
    background: #FFFFFF;
    border: 1.5px solid #CED5DF;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.reg-form__group input::placeholder {
    color: #9DABBE;
}
.reg-form__group input:focus,
.reg-form__group select:focus {
    outline: none;
    border-color: #1A55DF;
    box-shadow: 0 0 0 3px rgba(26, 85, 223, 0.15);
}
.reg-form__group input.is-invalid,
.reg-form__group select.is-invalid {
    border-color: #F44336;
}
.reg-form__group input.is-invalid:focus,
.reg-form__group select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.reg-form__group select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230A2D5D' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.reg-form__error {
    display: block;
    font-size: 12px;
    color: #F44336;
    margin-top: 6px;
}
.reg-form__error:empty { display: none; }

.reg-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* Product multi-select */
.reg-form__products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reg-form__products legend {
    font-size: 14px;
    font-weight: 500;
    color: #0A2D5D;
    margin-bottom: 6px;
    padding: 0;
}
.reg-form__products-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #CED5DF;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    user-select: none;
}
.reg-form__products-item:hover {
    border-color: #9DABBE;
    background: #FAFBFD;
}
.reg-form__products-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1A55DF;
    cursor: pointer;
    margin: 0;
}
.reg-form__products-item input[type="checkbox"]:checked + .reg-form__products-label,
.reg-form__products-item:has(input:checked) {
    border-color: #1A55DF;
    background: #F2F8FE;
}
.reg-form__products-label {
    font-size: 14px;
    font-weight: 500;
    color: #1C1D21;
    line-height: 1.35;
}

/* Buttons */
.reg-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.reg-form__btn--primary {
    background: #1A55DF;
    color: #FFFFFF;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(26, 85, 223, 0.25);
}
.reg-form__btn--primary:hover {
    background: #1547BC;
    box-shadow: 0 6px 18px rgba(26, 85, 223, 0.35);
}
.reg-form__btn--primary:active {
    transform: translateY(1px);
}
.reg-form__btn--primary:disabled {
    background: #9DABBE;
    cursor: not-allowed;
    box-shadow: none;
}
.reg-form__btn--ghost {
    background: transparent;
    color: #1A55DF;
    font-weight: 600;
    padding: 14px 16px;
}
.reg-form__btn--ghost:hover {
    background: #F2F4F7;
}

.reg-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.reg-form__actions .reg-form__btn--ghost {
    flex: 0 0 auto;
}
.reg-form__actions .reg-form__btn--primary {
    flex: 1 1 auto;
    margin-top: 0;
    width: auto;
}

.reg-form__legal {
    font-size: 12px;
    color: #6B819E;
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}
.reg-form__legal a {
    color: #1A55DF;
    text-decoration: underline;
}

.reg-form__status {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}
.reg-form__status:empty { display: none; }
.reg-form__status[data-kind="error"] {
    padding: 12px 16px;
    background: #FEECEB;
    color: #922820;
    border: 1px solid #FBB4AF;
    border-radius: 10px;
}
.reg-form__status[data-kind="loading"] {
    color: #1A55DF;
    font-weight: 500;
}
.reg-form__status[data-kind="success"] {
    padding: 12px 16px;
    background: #EDF7ED;
    color: #2E6930;
    border: 1px solid #B7DFB9;
    border-radius: 10px;
}

/* =========================================================================
   Trusted-by logo strip (below the hero grid, full width)
   ========================================================================= */

.reg-trustbar {
    max-width: 1200px;
    margin: 56px auto 0;
    text-align: center;
}
.reg-trustbar__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B819E;
    font-weight: 600;
    margin: 0 0 18px;
}
.reg-trustbar__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 48px;
}
.reg-trustbar__logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity .15s ease;
    filter: grayscale(20%);
}
.reg-trustbar__logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 991px) {
    .reg-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .reg-pitch {
        order: 1;
    }
    .reg-card {
        order: 2;
    }
    /* On mobile, push the testimonial below the form so the form stays high */
    .reg-testimonial {
        order: 3;
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    .reg-page {
        padding: 24px 16px 64px;
    }
    .reg-card {
        padding: 28px 22px;
    }
    .reg-pitch__title {
        font-size: 28px;
    }
    .reg-pitch__list li {
        font-size: 15px;
    }
    .reg-form__actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .reg-form__actions .reg-form__btn--primary,
    .reg-form__actions .reg-form__btn--ghost {
        width: 100%;
    }
    .reg-trustbar__logos {
        gap: 20px 24px;
    }
    .reg-trustbar__logos img {
        height: 22px;
    }
}
