.lex-ajuda-page {
    font-family: sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
.lex-ajuda-header {
    text-align: center;
    margin-bottom: 36px;
}

.lex-ajuda-header h1 {
    font-size: 1.9em;
    color: #010256;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lex-ajuda-header p {
    font-size: 1em;
    color: #666;
    margin-bottom: 6px;
}

/* Cards */
.lex-ajuda-cards-wrap {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.lex-ajuda-card {
    flex: 1 1 200px;
    max-width: 280px;
    background: #fff;
    border: 2px solid #e8e8ee;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.lex-ajuda-card:hover,
.lex-ajuda-card:focus {
    border-color: #010256;
    box-shadow: 0 4px 16px rgba(1, 2, 86, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.lex-ajuda-card-icon {
    margin-bottom: 16px;
}

.lex-ajuda-card h2 {
    font-size: 1.05em;
    color: #010256;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* Form wrapper */
.lex-ajuda-form-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
    padding: 36px 40px;
    box-sizing: border-box;
}

@media (max-width: 560px) {
    .lex-ajuda-form-wrap {
        padding: 24px 20px;
    }
}

/* Back button */
.lex-ajuda-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.lex-ajuda-back-btn:hover {
    color: #010256;
}

/* Form title */
.lex-ajuda-form-wrap h2 {
    font-size: 1.5em;
    color: #010256;
    margin-bottom: 6px;
    line-height: 1.3;
}

.lex-ajuda-form-subtitle {
    font-size: 0.97em;
    color: #666;
    margin-bottom: 24px;
}

/* Grid 2 cols */
.lex-ajuda-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 560px) {
    .lex-ajuda-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.lex-ajuda-field {
    text-align: left;
}

.lex-ajuda-field-mt {
    margin-bottom: 20px;
}

.lex-ajuda-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.lex-ajuda-field label .obrig {
    color: #e74c3c;
}

.lex-ajuda-field input,
.lex-ajuda-field select,
.lex-ajuda-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fff;
    color: #333;
}

.lex-ajuda-field input:focus,
.lex-ajuda-field select:focus,
.lex-ajuda-field textarea:focus {
    outline: none;
    border-color: #010256;
}

.lex-ajuda-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Field messages */
.lex-ajuda-field-msg {
    font-size: 0.85em;
    margin-top: 4px;
    min-height: 18px;
}

.lex-ajuda-field-msg.error   { color: #e74c3c; }
.lex-ajuda-field-msg.success { color: #27ae60; }
.lex-ajuda-field-msg.info    { color: #3498db; }

/* Reveal animation */
.lex-ajuda-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.lex-ajuda-reveal.visible {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 20px;
}

/* Error box */
.lex-ajuda-error-box {
    background-color: #fff0f0;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 12px 16px;
    color: #c0392b;
    font-size: 0.9em;
    margin-bottom: 16px;
    text-align: left;
}

/* Submit */
.lex-ajuda-btn-submit {
    background-color: #010256;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background-color 0.2s, opacity 0.2s;
}

.lex-ajuda-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lex-ajuda-btn-submit:not(:disabled):hover {
    background-color: #020380;
}

/* Success */
.lex-ajuda-success-wrap {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
}

.lex-ajuda-success-icon {
    margin-bottom: 16px;
}

.lex-ajuda-success-wrap h2 {
    color: #010256;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.lex-ajuda-success-wrap p {
    color: #444;
    font-size: 0.97em;
    margin-bottom: 10px;
}

.lex-ajuda-btn-voltar {
    display: inline-block;
    margin-top: 20px;
    background-color: #010256;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.97em;
    transition: background-color 0.2s;
}

.lex-ajuda-btn-voltar:hover {
    background-color: #020380;
    color: #fff;
}
