/*
 * Eulen Form Styling
 * -------------------
 */

/* === Base Styles === */
body {
    font-family: Helvetica, "Segoe UI", sans-serif;
    background: #131212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* === Form Container === */
.form-container {
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* === Logo & Progress Bar === */
.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo-container img {
    /* Prevent dragging/selection */
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

h1 {
    display: none;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0.7;
    background-color: #333;
    border-radius: 12px 12px 0 0;
    height: 3px;
    z-index: 10;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, rgba(28, 28, 28, 0.936), rgba(246, 246, 246, 0.968));
    border-radius: 12px 12px 0 0;
    transition: width 0.4s ease-in-out;
}

/* === Form Steps & Transitions === */
.form-step {
    display: none;
    height: auto;
    min-height: 400px;
    position: relative;
}

.step-content-wrapper {
    min-height: 340px;
    padding-bottom: 0;
    overflow: visible;
    animation: fadeIn 0.3s ease-in-out;
    padding-top: 10px;
    box-sizing: border-box;
}

/* Override wrapper style specifically for Step 4 */
.form-step[data-step="4"] .step-content-wrapper {
    min-height: 330px;
}

/* Specific justification for Step 4 button container */
.form-step[data-step="4"] .button-container {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* .active: Indicates the currently displayed form step */
.form-step.active {
    display: block;
}

/* === General Form Elements === */
h2 {
    color: #d0d0d0;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0a0;
    font-weight: 500;
    font-size: 0.9em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1em;
}

/* Custom arrow for select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23888888' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: #777;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #435466;
    box-shadow: 0 0 0 2px rgba(67, 84, 102, 0.25);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* === Validation & Error States === */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: -12px;
    margin-bottom: 15px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.error-message.visible {
    display: block;
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style for container of invalid radio groups (added by JS) */
.radio-group.invalid {
    border-radius: 6px;
    padding: 8px;
    background-color: rgba(220, 53, 69, 0.05);
    border: 1px dashed rgba(220, 53, 69, 0.3);
    margin-bottom: 10px;
}


/* === Radio Button Styling (General) === */
.radio-group {
    margin-bottom: 20px;
    text-align: center;
}

/* Labels acting as radio buttons */
.radio-group label {
    display: inline-block;
    margin: 0 10px 10px 10px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative; /* Needed for ::before */
    z-index: 1;
}

/* Hide actual radio input */
.radio-group input[type="radio"] {
    display: none;
}

/* Selected radio label style */
.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #2c3a4a 0%, #435466 100%);
    border-color: #576c82;
    color: #fff;
    opacity: 0.90;
}

/* Inner blur effect for selected radios/categories via ::before */
.radio-group input[type="radio"]:checked + label::before,
.category-options input[type="radio"]:checked + label::before
{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit; /* Inherit parent's gradient */
    filter: blur(15px);
    z-index: -1;
    margin: 12px; /* Positive margin insets the blur slightly to help prevent edge clipping */
    opacity: 0.85;
    border-radius: inherit;
}

/* Hover for non-selected radios */
.radio-group input[type="radio"]:not(:checked) + label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: white;
}

/* === Checkbox Styling === */
.checkbox-group {
    margin-top: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #435466;
    flex-shrink: 0;
}

.checkbox-group label {
     display: inline;
     margin-bottom: 0;
     font-weight: normal;
     color: #ccc;
     cursor: pointer;
     line-height: 1.2;
}

.checkbox-group.invalid {
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(220, 53, 69, 0.05);
    border: 1px dashed rgba(220, 53, 69, 0.3);
}

/* === Shared Eulen Button Style Template === */
.eulen-button-style {
    /* Restore original base style, removing explicit transition:none */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    line-height: normal;
    vertical-align: middle;
    text-decoration: none;
    user-select: none;
}

.eulen-button-style:hover {
    color: white;
    /* Restore hover effect if it existed */
    background-color: rgba(255, 255, 255, 0.1); /* Example: slight background change */
    border: 1px solid #555; /* Example: slight border change */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.eulen-button-style:active {
    /* Restore active effect if it existed */
    transform: translateY(1px); /* Example: slight press effect */
}

.eulen-button-style:disabled,
.eulen-button-style.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666 !important;
    transform: none;
    border: 1px solid #666;
}

/* === Button Styling (General) === */
button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 15px;
    /* transition: none !important; - REMOVED */
    /* animation: none !important; - REMOVED */
    width: auto;
}

button:active {
    /* Restore active effect */
    transform: translateY(1px);
}

button:disabled,
button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666 !important;
    transform: none;
}

/* === Primary Action Buttons (Next, Submit) === */
.next-btn,
.submit-btn {
    position: relative;
    z-index: 1;
}

/* === Previous Button (Modern Icon Button) === */
.prev-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    display: inline-flex; /* Center SVG */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: none !important;
    font-size: 1em;
    font-weight: normal;
}


.prev-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    margin: 0;
}

/* === Button Container Layout === */
.button-container {
    position: relative; /* Change from absolute to relative */
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 20px; /* Add top padding for spacing */
    height: 44px;
    width: 100%; /* Ensure full width */
    margin-top: 20px; /* Add space above buttons */
}

/* Layout for Step 1 button */
.form-step[data-step="1"] .button-container {
    justify-content: center;
}

.button-container .prev-btn,
.button-container .next-btn,
.button-container .submit-btn {
    margin-top: 0;
}

/* Allow next/submit buttons to size naturally in container */
.button-container .next-btn,
.button-container .submit-btn {
    width: auto;
    min-width: 120px;
    display: inline-block;
}

/* Layout for Step 1 button */
.form-step[data-step="1"] .button-container {
    justify-content: center;
}

.form-step[data-step="1"] .next-btn {
    min-width: 150px;
}

/* === Final Message Styling === */
#final-message {
    padding: 20px;
    background-color: rgba(67, 84, 102, 0.1);
    border-left: 4px solid #435466;
    margin-bottom: 20px;
    color: #d0d0d0;
    border-radius: 4px;
    text-align: center;
}
#final-message h2 {
    margin-bottom: 10px;
}

/* === Responsiveness === */
@media (max-width: 550px) {
    .form-container {
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .progress-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    h2 {
        font-size: 1.3em;
    }

    /* Modificar layout dos botões para ficar horizontal (voltar à esquerda, próximo à direita) */
    .button-container:not(.welcome-button) {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .button-container:not(.welcome-button) .next-btn,
    .button-container:not(.welcome-button) .submit-btn {
        width: auto;
        min-width: 120px;
        margin-bottom: 0;
        margin-left: auto;
    }

    .button-container:not(.welcome-button) .prev-btn {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .form-step {
        height: auto; /* Remover altura fixa no mobile */
        min-height: 400px; /* Manter uma altura mínima razoável */
    }

    .form-step[data-step="1"] .button-container {
        justify-content: center !important;
        display: flex !important;
        width: 100% !important;
    }

    .form-step[data-step="1"] .next-btn {
        width: 50%;
        margin: 0 auto !important;
    }

    /* Ajustar container do botão na etapa 1 */
    .form-step[data-step="1"] .button-container {
        position: static;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0px;
        background-color: transparent;
        text-align: center;
    }
    
    .category-selection {
        margin-bottom: 0;
    }
    .category-options {
        width: 100%;
    }
}

/* Nova media query específica para organização dos botões de categoria no mobile */
@media (max-width: 550px) {
    /* Sobreponha a regra anterior que colocava tudo em coluna */
    .category-options .option-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* Primeira linha: 2 botões lado a lado (Quero me tornar parceiro e Reportar problema) */
    .category-options .option-row:first-child {
        gap: 10px;
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
    }
    
    /* Ajuste os botões da primeira linha para ficarem lado a lado com largura idêntica */
    .category-options .option-row:first-child label {
        width: 48%; /* Mesma largura fixa para ambos */
        flex: 0 0 auto;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 15px;
        height: auto;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Assegure que o conteúdo de texto não cause desalinhamento */
    .category-options .option-row:first-child label {
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 60px; /* Altura fixa para ambos os botões */
    }
    
    /* Segunda linha: organize os 3 botões (2-1) */
    .category-options .option-row:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* Dúvidas e Sugestões lado a lado na mesma linha */
    .category-options .option-row:nth-child(2) input[id="category-general"] + label,
    .category-options .option-row:nth-child(2) input[id="category-feature"] + label {
        width: 48%; /* Mesma largura fixa para ambos */
        flex: 0 0 auto;
        margin: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Vagas fica centralizado abaixo */
    .category-options .option-row:nth-child(2) input[id="category-jobs"] + label {
        width: 70%;
        flex: 0 0 auto;
        margin-top: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* === Step 1 Specific Styling (Welcome & Category) === */
.welcome-content {
    text-align: center;
    max-width: 80%;
    margin: 0 auto 40px auto;
}

.welcome-content p {
    font-size: 1.1em;
    line-height: 1.5;
    color: #b0b0b0;
}

/* Center the single 'Continuar' button on Step 1 */
.welcome-button {
    justify-content: center !important;
}


.form-step[data-step="1"] h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 600;
}

.category-selection {
    margin: 20px 0 30px 0;
}

.category-prompt {
    text-align: center;
    font-weight: 500;
    color: #d0d0d0;
    margin-top: -5px;
    margin-bottom: 50px;
    font-size: 1.05em;
}

/* === Category Option Layout in Two Rows === */
.option-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.option-row label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 12px 20px;
    height: auto;
    min-height: 44px;
}

.option-row:first-child {
    gap: 15px;
}

.option-row:first-child label {
    width: calc(50% - 7.5px);
    flex: 0 0 auto;
}

.category-docs {
    width: 10px   
}

.category-options {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}


.category-options {
    width: 100%;
}


.category-options .centered-button label {
    width: auto;
    min-width: 200px;
    flex: 0 0 auto;
}

@media (max-width: 550px) {
    .option-row {
        flex-direction: column;
    }
    
    .option-row label,
    .option-row:first-child label {
        width: 100%;
        flex: none;
    }
}

/* === Search Component Styling (Step 3 - General Questions) === */
.search-container {
    width: 100%;
    margin-bottom: 20px;
}

.search-field-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.search-input {
    flex: 1;
    height: 45px;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #435466;
    box-shadow: 0 0 0 1px rgba(67, 84, 102, 0.25);
}

.search-button {
    display: none;
}

/* Results container - never show scrollbar */
.search-results-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    height: auto; /* Auto height */
    max-height: 0; /* Only when collapsed */
    overflow: hidden; /* Only when collapsed */
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%; /* Garantir que não extrapole a largura */
    box-sizing: border-box; /* Incluir padding e border na largura */
}

/* Style when results are active */
.search-results-container.active {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.search-result-item strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.search-result-item p {
    margin: 0;
    color: #ccc;
    font-size: 0.9em;
}

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

/* Remove hover effect */
.search-result-item:hover {
    background: transparent;
}

/* === Input with Fixed Icon Styling (@ Telegram) === */
/* Outer wrapper */
.input-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-with-icon label {
    /* Uses general label styles */
}

/* Flex container for icon + input, handles border/background */
.input-icon-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    overflow: hidden;
}

/* Fixed icon part (@) */
.input-with-icon .input-icon {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid #444; /* Separator line */
    color: #888;
    background-color: #2a2a2a;
    border-radius: 0;
    pointer-events: none;
}

/* Input field next to icon */
.input-with-icon input[type="text"] {
    padding: 12px 15px;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    flex-grow: 1; /* Fill remaining space */
    width: auto;
    color: #e0e0e0;
    font-size: 1em;
    position: static;
    z-index: auto;
}

/* Focus style applied to the group */
.input-icon-group:focus-within {
    border-color: #435466;
    box-shadow: 0 0 0 2px rgba(67, 84, 102, 0.25);
}
/* Hide input's own focus style */
.input-with-icon input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

.input-with-icon .error-message {
    margin-top: 5px;
    margin-bottom: 0;
}

/* Hint text below inputs */
.input-hint {
    font-size: 0.85em;
    color: #888;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
    font-weight: 400;
    text-align: left;
}

/* Style for select element arrow (This might be duplicated, ensure only one exists) */
/*
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23888888' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
*/

/* CAPTCHA Styles */
.captcha-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.captcha-box {
    position: relative;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem; /* Add margin below the box */
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.captcha-box:hover {
    border-color: var(--border-hover-color, rgba(255, 255, 255, 0.2));
}

.captcha-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
}

.captcha-icon {
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
}

.captcha-icon svg {
    width: 100%;
    height: 100%;
}

.refresh-captcha {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    transition: color 0.3s ease;
}

.refresh-captcha:hover {
    color: var(--text-color, rgba(255, 255, 255, 0.9));
}

.refresh-captcha svg {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* CAPTCHA Validation States */
.captcha-box.invalid {
    border-color: var(--error-color, #ff4444);
}

.captcha-box.valid {
    border-color: var(--success-color, #00C851);
}

/* CAPTCHA Iframe (when Azure CAPTCHA is loaded) */
.captcha-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* === Telegram Button Styling === */
.telegram-contact-box {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.telegram-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* === Final Message Styling (Step 4) === */
.message-suggestion {
    color: #8a8a8a;
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Ensure consistent alignment for step 4 */
.form-step[data-step="4"] h2 {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Create clear separation between content and buttons */
.form-step[data-step="4"] .step-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    height: auto;
    padding-bottom: 20px;
}

/* Button Gradients Update */
.next-btn:not(.disabled),
.submit-btn,
.verify-button {
    background: none;
    transition: none !important;
}

/* Remove all hover transition/transform */
.next-btn:not(.disabled):not(.form-step[data-step="1"] .next-btn):hover,
.submit-btn:hover,
.verify-button:hover {
    background: none;
    transform: none;
}

/* Category Selection Buttons */
.category-options input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #2c3a4a 0%, #435466 100%);
    border-color: #576c82;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Restore shadow */
    opacity: 0.85;
}

.category-options input[type="radio"]:not(:checked) + label:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: white;
}

/* Progress Bar Update */
.progress-bar .progress {
    background: linear-gradient(to right, rgba(38, 36, 36, 0.181), rgba(144, 139, 139, 0.301));
}

/* === Explicit styles for NEXT buttons in steps OTHER THAN step 1 === */
.form-step:not([data-step="1"]) .next-btn {
    /* Empty: All styles handled by .eulen-button-style or layout */
}

.form-step:not([data-step="1"]) .next-btn:hover {
    /* Empty: All styles handled by .eulen-button-style */
}

.form-step:not([data-step="1"]) .next-btn:active {
   transform: none !important;
}

/* === Override all buttons === */
button.next-btn.eulen-button-style,
button.next-btn {
    background-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    background-image: none;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button.next-btn.eulen-button-style:hover,
button.next-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    background-image: none;
    color: white;
    border: 1px solid #555;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button.next-btn.eulen-button-style:active,
button.next-btn:active {
    transform: translateY(1px);
}

/* === Override prev button styles === */
button.prev-btn {
    background-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button.prev-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button.prev-btn:active {
    transform: translateY(1px);
}

/* Ensure CAPTCHA error appears below the box, not inside it */
.captcha-container .error-message {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 5px;
    z-index: 1;
}

/* Hide progress bar on final thank you page */
.form-step[data-step="4"] ~ .progress-bar,
.form-step[data-step="4"].active ~ .progress-bar {
    /* display: none; - REMOVER esta linha que oculta a barra de progresso */
    /* Substituir por uma regra que mantém a barra visível, mas com 100% de preenchimento */
}

/* Garantir que a barra de progresso no último passo (step 4) esteja 100% preenchida */
.form-step[data-step="4"].active ~ .progress-bar .progress {
    width: 100%;
}

/* Remove animations from buttons */
.button-container button {
    /* Remover restrições de animação */
}

.prev-btn, 
.next-btn, 
.submit-btn, 
.eulen-button-style {
    /* Remover restrições de animação */
}

.prev-btn:hover, 
.next-btn:hover, 
.submit-btn:hover, 
.eulen-button-style:hover {
    /* Remover restrições de animação */
}

.prev-btn:active, 
.next-btn:active, 
.submit-btn:active, 
.eulen-button-style:active {
    /* Remover restrições de animação */
}

/* === Info Message Box === */
.info-message {
    text-align: center;
}

.info-message h2 {
    color: #d0d0d0;
    font-weight: 500;
}

.info-message p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Partners button style */
.partners-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 120px;
    margin-top: 0;
}

/* Step 1 category button labels */
.category-options label {
    min-width: auto;
    text-align: center;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.95em;
    transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 44px;
}

.category-options input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #2c3a4a 0%, #435466 100%);
    border-color: #576c82;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Restore shadow */
    opacity: 0.85;
}

.category-options input[type="radio"]:not(:checked) + label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
}

/* Espaçamento específico para página de bug bounty */
.form-step[data-category="security"] {
    /* padding-bottom: 34px; */ /* Removed */
}

.form-step[data-category="security"] .step-content-wrapper {
    /* margin-bottom: 40px; */ /* Removed */
}

/* Ajustar o padding inferior do wrapper para criar espaço acima do botão na Etapa 1 */
.form-step[data-step="1"] .step-content-wrapper {
    padding-bottom: 0px;
    padding-top: 50px;
}

.form-step[data-step="1"] .next-btn {
    min-width: 150px;
}

/* Nova media query específica para telas muito estreitas */
@media (max-width: 380px) {
    /* Garantir que todos os botões tenham o mesmo espaçamento consistente */
    .category-options .option-row {
        flex-direction: column;
        gap: 12px; /* Espaçamento uniforme entre botões */
    }
    
    /* Remover qualquer espaçamento específico que possa estar causando inconsistências */
    .option-row:first-child {
        margin-bottom: 0 !important;
        gap: 12px !important;
    }
    
    .option-row:nth-child(2) {
        margin-top: 12px !important;
        gap: 12px !important;
    }
    
    /* Forçar botões para serem elementos de bloco completos */
    .category-options label {
        display: block !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 15px 5px !important;
        box-sizing: border-box !important;
    }
}

/* Ajustes específicos para mobile */
@media (max-width: 550px) {
    .search-results-container {
        width: 100%;
        left: 0;
        right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .search-results-container.active {
        padding: 10px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .search-result-item {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
}

.form-step[data-step="4"] {
    min-height: 400px;
}

.form-step[data-step="4"] .step-content-wrapper {
    min-height: 330px;
}

/* Estilo para o botão Tutoriais - usando apenas ID */
#category-docs + label {
    min-width: 120px !important;
    width: 150px !important;
    padding-left: 10px;
    padding-right: 10px;
}
