/**
 * IMLOTTI - Cadastros e Credenciamentos
 * Visual Identity: #00403b / #1b3d33 / #8c9b26
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@400;600;700&display=swap');

.imlotti-portal-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 20px auto 50px auto;
    padding: 0 15px;
    color: #2d3748;
    box-sizing: border-box;
}

/* 1. Card do Seletor de Município */
.imlotti-selector-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.imlotti-selector-label {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #00403b;
    margin-bottom: 12px;
}

.imlotti-select-field {
    width: 100%;
    max-width: 380px;
    padding: 12px 42px 12px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #00403b;
    background-color: #ffffff;
    border: 2px solid #00403b;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300403b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    transition: all 0.2s ease;
}

.imlotti-select-field:focus {
    box-shadow: 0 0 0 3px rgba(0, 64, 59, 0.2);
}

/* 2. Quadro Azul Institucional */
.imlotti-quadro-azul {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eef6fc;
    border-left: 5px solid #1976d2;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    animation: fadeInSlide 0.35s ease-out;
}

.imlotti-quadro-azul .quadro-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.imlotti-quadro-azul .quadro-text {
    font-size: 15.5px;
    line-height: 1.6;
    color: #0f3d63;
    font-weight: 500;
}

/* Quadro Verde Informativo (Colaborador) */
.imlotti-quadro-verde {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0f7f5;
    border-left: 5px solid #00403b;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 64, 59, 0.08);
    animation: fadeInSlide 0.35s ease-out;
}

.imlotti-quadro-verde .quadro-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.imlotti-quadro-verde .quadro-text {
    font-size: 15.5px;
    line-height: 1.6;
    color: #00403b;
    font-weight: 500;
}

.imlotti-vagas-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.imlotti-vagas-card .vagas-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #00403b;
}

.imlotti-vagas-card .vagas-subtitle {
    margin: 0 0 12px 0;
    font-size: 13.5px;
    color: #8c9b26;
    font-weight: 600;
}

.imlotti-vagas-card .vagas-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

/* 3. Seção Retrátil Editais 2026 */
.imlotti-editais-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    animation: fadeInSlide 0.35s ease-out;
}

.imlotti-editais-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid transparent;
}

.imlotti-editais-header:hover {
    background: #edf4fa;
}

.imlotti-editais-header.active {
    border-bottom-color: #e2e8f0;
}

.imlotti-editais-header.active .editais-toggle-indicator {
    transform: rotate(180deg);
}

.editais-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editais-icon {
    font-size: 20px;
}

.editais-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f3d63;
}

.editais-toggle-indicator {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.25s ease;
}

.imlotti-editais-body {
    padding: 18px 20px;
    background: #ffffff;
}

.edital-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.edital-badge {
    background: #1976d2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.edital-desc {
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 500;
    flex: 1;
    min-width: 250px;
}

.imlotti-btn-edital {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00403b;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.imlotti-btn-edital:hover {
    background: #2d5a4e;
    transform: translateY(-1px);
}

/* 4. Formulário Principal */
.imlotti-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    animation: fadeInSlide 0.35s ease-out;
}

.imlotti-form-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00403b;
    margin: 0 0 6px 0;
}

.imlotti-form-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.imlotti-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.imlotti-field-group {
    display: flex;
    flex-direction: column;
}

.imlotti-field-group.full-width {
    grid-column: span 2;
}

.imlotti-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.imlotti-label .req {
    color: #e53e3e;
    font-weight: 700;
}

.imlotti-field-hint {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #4a5568;
    margin-top: -2px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.imlotti-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.imlotti-input:focus {
    outline: none;
    border-color: #00403b;
    box-shadow: 0 0 0 3px rgba(0, 64, 59, 0.15);
}

/* 5. Seção Dinâmica de Médicos */
.imlotti-doctors-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 28px;
}

.imlotti-section-heading {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #00403b;
    margin: 0 0 6px 0;
}

.imlotti-section-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.medicos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.medico-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.medico-input-wrap {
    flex: 1;
}

.imlotti-btn-remove {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.imlotti-btn-remove:hover {
    background: #fca5a5;
    color: #7f1d1d;
}

.imlotti-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #00403b;
    border: 1.5px dashed #00403b;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.imlotti-btn-add:hover {
    background: #e6f0ee;
}

/* 6. Seção de Documentação (Uploads) */
.imlotti-upload-section {
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    padding-top: 24px;
    margin-bottom: 28px;
}

.imlotti-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.imlotti-upload-item {
    display: flex;
    flex-direction: column;
}

.imlotti-upload-item.full-width {
    grid-column: span 2;
}

.imlotti-file-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    position: relative;
    overflow: hidden;
}

.imlotti-file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.imlotti-file-trigger {
    background: #00403b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.imlotti-file-box:hover .imlotti-file-trigger {
    background: #2d5a4e;
}

.imlotti-file-name {
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.imlotti-file-name.has-file {
    color: #00403b;
    font-weight: 600;
}

.imlotti-curriculos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.curriculo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f0ee;
    color: #00403b;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #c2ded9;
}

/* 7. Botão de Envio / Prosseguir */
.imlotti-submit-row {
    text-align: right;
    margin-top: 24px;
}

.imlotti-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00403b;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 64, 59, 0.25);
}

.imlotti-btn-primary:hover:not(:disabled) {
    background: #2d5a4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 64, 59, 0.35);
}

.imlotti-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.imlotti-btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.imlotti-btn-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* 8. Modais (Conferência e Sucesso) */
.imlotti-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.imlotti-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.imlotti-modal-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    padding: 32px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #00403b;
    margin: 0 0 8px 0;
}

.modal-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

.modal-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 22px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14.5px;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #00403b;
    font-weight: 700;
    text-align: right;
}

.modal-confirm-checkbox {
    margin-bottom: 22px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #00403b;
    cursor: pointer;
}

.checkbox-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-success-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.imlotti-feedback {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.imlotti-feedback.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.imlotti-feedback.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .imlotti-form-grid,
    .imlotti-upload-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .imlotti-field-group.full-width,
    .imlotti-upload-item.full-width {
        grid-column: span 1;
    }

    .imlotti-form-card {
        padding: 24px 18px;
    }

    .imlotti-select-field {
        max-width: 100%;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* 9. Bloco de Contato e Informações Institucionais */
.imlotti-contato-block {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
}

.iml-contato-inner {
    max-width: 100%;
}

.iml-contato-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8c9b26;
    margin-bottom: 8px;
}

.iml-contato-heading {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #1b3d33;
    margin: 0 0 16px 0;
}

.iml-contato-lead {
    font-size: 15.5px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 18px;
}

.iml-contato-pillars {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.iml-contato-pillars li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #374151;
}

.iml-contato-pillars li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #00403b;
    font-size: 20px;
    line-height: 1.4;
}

.iml-contato-divider {
    border-top: 1px solid #e5e7eb;
    margin: 28px 0;
}

.iml-contato-horario-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.iml-contato-subheading {
    font-size: 17px;
    font-weight: 700;
    color: #1b3d33;
    margin: 0;
}

.iml-horario-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.iml-unidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.iml-unidade-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iml-unidade-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.iml-unidade-title {
    font-size: 16px;
    font-weight: 700;
    color: #00403b;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0fdf4;
}

.iml-unidade-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.iml-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
}

.iml-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00403b;
}

.iml-tel-link {
    color: #00403b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.iml-tel-link:hover {
    color: #8c9b26;
    text-decoration: underline;
}

.iml-redes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.iml-redes-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iml-rede-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.iml-rede-badge:hover {
    background: #00403b;
    color: #ffffff;
    border-color: #00403b;
}

@media (max-width: 768px) {
    .iml-unidades-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .iml-contato-horario-row,
    .iml-redes-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .iml-contato-heading {
        font-size: 26px;
    }
}

