/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5F3F1;
    color: #111;
}

 /*Layout */
/* The card is centred, with room above it for the logo and the language switch on short screens */
.onboarding-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
}

.onboarding-container {
    display: flex;
    width: auto;
    height: auto;
    border-radius: 20px;
    overflow: visible;
}

/* Left */
.onboarding-left {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
}

.onboarding-right {
    display: flex;
    position: relative;
    width: auto;
    height: auto;
    align-items: center;
    border-radius: 20px;
    overflow: visible;
    background: #FFFFFF66;
    backdrop-filter: blur(40px);
    box-shadow:
            0 1px 1px rgba(255, 255, 255, 0.25),
            0 -1px 1px rgba(255, 255, 255, 0.05),
            0 8px 6px rgba(0, 0, 0, 0.05);
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}
/* Typography */
h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -2px;
}

p {
    color: #00000080;
    font-size: 16px;
    font-weight: 400;
}
.title-content h1{
    margin-bottom: 12px;
}
/* Form */
.form-group {
    margin-bottom: 16px;
}
.form-group p{
    margin-bottom: 4px;
}
.form-group input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #00000033;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #00000080;
    transition: 0.2s;
    padding: 18px 16px 18px 16px;
    background: #FFFFFF66;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 54px;
    outline: none;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 16px 40px 16px 16px;
    border-radius: 10px;
    border: 1px solid #00000033;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    cursor: pointer;
    background-color: #FFFFFF66;
    transition: border 0.2s;
}

/* Button */
.btn-primary {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.2s;
    height: 54px;
    width: 246px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background: #00000033;
    cursor: not-allowed;
    opacity: 1;
}
input:valid {
    color: #000;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.custom-select-header {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 16px;
    border: 1px solid #00000033;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF66;
    color: #00000080;
    transition: border 0.2s, color 0.2s;
}

.custom-select-header.selected {
    color: #000;
}

.custom-select-header .arrow {
    transition: transform 0.2s ease;
}

.custom-select-wrapper.active .arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #00000033;
    border-radius: 10px;
    margin-top: 4px;
    list-style: none;
    padding: 0;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    pointer-events: auto;
}

.custom-select-wrapper.active .custom-select-options {
    display: block;
}

.custom-select-options li {
    padding: 12px 16px;
    cursor: pointer;
    color: #000;
    transition: color 0.2s;
}

.custom-select-options li:hover {
    color: #00000080;
}
/* Responsive */
@media (max-width: 768px) {
    .onboarding-container {
        grid-template-columns: 1fr;
    }

    .onboarding-left {
        display: none;
    }
}
.legal-consent {
    margin: 12px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #00000080;
}

.legal-consent a {
    color: #000000B3;
}

/* ===== Phones ===== */
@media (max-width: 768px) {
    .onboarding-wrapper {
        align-items: flex-start;
        padding: 16px;
        box-sizing: border-box;
    }

    .onboarding-container,
    .onboarding-right,
    .onboarding-right main {
        width: 100%;
    }

    /* Each step sets a fixed desktop width and 56px side margins; let it fit the screen. */
    .onboarding-right main > * {
        width: auto !important;
        max-width: 100% !important;
        margin: 32px 24px !important;
        box-sizing: border-box;
    }

    h1 {
        font-size: 26px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* ===== Language switch (EN / RU) ===== */
.lang-switch {
    display: flex;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.lang-switch--floating {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
}

.lang-switch a {
    color: #00000080;
    text-decoration: none;
}

.lang-switch a:hover {
    text-decoration: underline;
}

.lang-switch a.active {
    color: #000;
    font-weight: 500;
}

@media (max-width: 768px) {
    .lang-switch--floating {
        position: static;
        justify-content: flex-end;
        padding: 12px 16px 0;
    }
}

/* Not enough room for the picture beside the form. */
@media (max-width: 999px) {
    .onboarding-left {
        display: none;
    }
}


/* Our LinkedIn page, shown to new clients when they register and confirm their email */
.promo-linkedin {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #0000000A;
    font-size: 14px;
    line-height: 1.5;
}

.promo-linkedin a {
    color: #0A66C2;
    font-weight: 500;
    text-decoration: none;
}

.promo-linkedin a:hover {
    text-decoration: underline;
}

/* The Resona logo, top left on every sign-up and sign-in page */
.onboarding-logo {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 10;
}

@media (max-width: 768px) {
    .onboarding-logo {
        position: static;
        padding: 16px 16px 0;
    }
}

/* A field the server sent back: red outline and a readable message under it */
.form-group input.invalid {
    border-color: #D93025;
    background: #FFF6F5;
}

.error-message {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #C5221F;
}

/* ===== What was found about the company online, and the choices it suggests ===== */
.suggestion-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #FFFFFF99;
    border: 1px solid #0000001A;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}

.suggestion-summary,
.suggestion-hint {
    font-size: 14px;
    line-height: 1.45;
    color: #000000A6;
}

.suggestion-sources {
    font-size: 12px;
    color: #00000073;
}

.suggestion-box p:empty,
.suggestion-box[data-state="none"],
.suggestion-box[data-state="loading"] .suggestion-found,
.suggestion-box[data-state="loading"] .suggestion-summary,
.suggestion-box[data-state="loading"] .suggestion-hint,
.suggestion-box[data-state="loading"] .suggestion-sources,
.suggestion-box[data-state="found"] .suggestion-looking {
    display: none;
}

/* a pulsing dot while the company is looked up */
.suggestion-looking::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #FF8A62;
    vertical-align: 1px;
    animation: suggestion-pulse 1.2s ease-in-out infinite;
}

@keyframes suggestion-pulse {
    50% { opacity: 0.25; }
}

/* the "Suggested" tag on the choices picked from what was found */
.chip.suggested span::after,
.pill-item.suggested span::after,
.feel-card.suggested::after {
    content: attr(data-tag);
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FFE3D6;
    color: #A3401A;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    vertical-align: 2px;
}

.feel-card.suggested::after {
    position: absolute;
    right: 16px;
    bottom: 12px;
    margin: 0;
}
