:root {
    --bg-cream: #FAF9F5;
    --text-black: #1D1D1F;
    --text-grey: #57544D;
    --input-border: #E1DED7;
    --input-focus: #1D1D1F;
    --white: #FFFFFF;
    --hover-bg: #F5F5F5;
    --btn-disabled: #EBEBEB;
    --btn-text-disabled: #A6A298;
    --primary-red: #D8385E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.split-screen {
    display: flex;
    width: 100%;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* --- LADO ESQUERDO --- */
.left-panel {
    width: 50%;
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 48px 0 48px;
    position: relative;
}

.left-content {
    z-index: 10;
}

.logo-container {
    margin-bottom: 24px;
}

.brand-logo {
    width: 132px;
    height: 24px;
    display: block;
}

.hero-text {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    color: var(--text-black);
    max-width: 420px;
    letter-spacing: -0.5px;
}

.hero-image-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: -2px;
}

/* --- LADO DIREITO --- */
.right-panel {
    width: 50%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.verification-header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: relative;
    z-index: 20;
}

.back-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: absolute;
    left: 24px;
}

.back-button:hover {
    background-color: #E0E0E0;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    text-align: center;
    width: 100%;
}

/* Formulário */
.form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px;
}

.form-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    margin-top: -40px;
}

/* Elementos do Passo 2 */
.breadcrumb-text {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.form-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-grey);
    margin-bottom: 32px;
    font-weight: 400;
}

/* Input de Busca (Passo 1) */
.search-block-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0 16px;
    background-color: var(--white);
    transition: border 0.2s ease;
    z-index: 5;
}

.input-wrapper:focus-within {
    border: 1px solid var(--input-focus);
    box-shadow: 0 0 0 1px var(--input-focus);
}

.country-select {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
    margin-right: 12px;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.chevron {
    margin-right: 12px;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: var(--input-border);
}

#companySearch {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-black);
    background: transparent;
    height: 100%;
    padding: 0;
}

#companySearch::placeholder {
    color: #707070;
}

.clear-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-left: 8px;
}

/* Dropdown de Resultados */
.results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 312px;
    overflow-y: auto;
    background-color: var(--white);
    border: 1px solid var(--input-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: -4px;
    padding-top: 4px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.1s;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: var(--hover-bg);
}

.item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.item-icon {
    width: 32px;
    height: 32px;
    background-color: #F2F2F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 2px;
    line-height: 1.4;
}

.company-details {
    font-size: 12px;
    color: var(--text-grey);
    line-height: 1.4;
}

.info-icon {
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* --- Input com Label Flutuante (Passo 2) --- */
.floating-input-group {
    width: 100%;
    margin-bottom: 16px;
}

.custom-fieldset {
    position: relative;
    padding: 0;
    margin: 0;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    height: 56px;
    display: flex;
    align-items: center;
    transition: border 0.2s;
}

.custom-fieldset:focus-within {
    border: 1px solid var(--input-focus);
    box-shadow: 0 0 0 1px var(--input-focus);
}

.custom-fieldset.input-error {
    border-color: var(--primary-red);
}

.custom-fieldset.input-error:focus-within {
    box-shadow: 0 0 0 1px var(--primary-red);
}

.custom-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 18px 16px 0 16px;
    font-size: 16px;
    color: var(--text-black);
    outline: none;
    z-index: 2;
}

.custom-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-grey);
    pointer-events: none;
    transition: all 0.2s ease-out;
    background-color: transparent;
    z-index: 1;
}

.custom-input:focus+.custom-label,
.custom-input:not(:placeholder-shown)+.custom-label {
    top: 10px;
    transform: translateY(0);
    font-size: 12px;
    color: var(--text-grey);
}

.error-message {
    color: var(--primary-red);
    font-size: 12px;
    margin-top: 4px;
    margin-left: 16px;
}

.action-footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.submit-button {
    background-color: var(--btn-disabled);
    color: var(--btn-text-disabled);
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: background-color 0.2s, color 0.2s;
}

.submit-button:not(:disabled) {
    background-color: var(--primary-red);
    color: var(--white);
    cursor: pointer;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-grey);
    font-size: 14px;
}

/* Mobile */
@media screen and (max-width: 900px) {

    body,
    html {
        overflow-y: auto;
    }

    .split-screen {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        min-height: 100vh;
        display: block;
    }

    .verification-header {
        height: 64px;
        margin-bottom: 24px;
        justify-content: center;
    }

    .form-container {
        align-items: flex-start;
        padding: 0 24px;
    }

    .form-content {
        margin-top: 0;
        max-width: 100%;
    }

    .back-button {
        left: 20px;
    }

    .action-footer {
        justify-content: center;
    }

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