.perfil-content {
    background-color: #ffffff;
    padding: 64px 0;
}

.perfil-main-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #084D2B;
    margin-bottom: 48px;
}

.perfil-navigation {
    margin-bottom: 64px;
}

.perfil-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #414341;
    margin-bottom: 24px;
}

.perfil-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.perfil-btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #084D2B;
    background-color: #ffffff;
    border: 1px solid #084D2B;
    border-radius: 8px;
    padding: 12px 32px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.perfil-btn:hover {
    background-color: #f4f9f7;
    color: #084D2B;
}

.perfil-btn.active {
    background-color: #084D2B;
    color: #ffffff;
    border-color: #084D2B;
}

/* Formulário de Cadastro */
.cadastro-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Indicador de Etapas */
.steps-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #EFF1EF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.step-item.completed .step-circle {
    background-color: #084D2B;
}

.step-item.active .step-circle {
    background-color: #C3FED7;
}

/* Esconde SVG por padrão */
.step-item .step-circle svg {
    display: none;
}

/* Mostra checkmark quando etapa está concluída */
.step-item.completed .step-circle svg {
    display: block !important;
}

.step-item.completed .step-label {
    color: #084D2B;
    font-weight: 700;
}

.step-item.active .step-label {
    color: #084D2B;
    font-weight: 700;
}

.step-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #414341;
    text-align: center;
    white-space: nowrap;
}

.step-connector {
    width: 80px;
    height: 2px;
    background-color: #EFF1EF;
    margin: 0 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Conector após etapa ativa: verde claro */
.step-item.active+.step-connector {
    background-color: #C3FED7;
}

/* Conector após etapa completada: verde escuro */
.step-item.completed+.step-connector {
    background-color: #084D2B;
}

/* Conector após etapa ativa quando tem etapa completada antes: verde claro */
.step-item.completed~.step-item.active+.step-connector {
    background-color: #C3FED7;
}

/* Formulário */
.cadastro-form {
    background-color: #ffffff;
}

.form-section {
    margin-bottom: 48px;
}

.form-section:last-of-type {
    margin-bottom: 32px;
}

.form-section-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #414341;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.form-group:focus-within .form-label {
    color: #084D2B;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #414341;
    transition: color 0.3s ease;
    margin-bottom: 2px;
}

.form-input,
.form-select,
.form-textarea {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #414341;
    padding: 12px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #C0C0C0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #084D2B;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(8, 77, 43, 0.1);
    background-color: #FAFFFD;
}

.form-input:disabled,
.form-select:disabled {
    background-color: #F5F5F5;
    color: #858585;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input:disabled::placeholder {
    color: #C0C0C0;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23414341' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-hint {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #858585;
    margin-top: -4px;
}

/* Seção de Documentação */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.documentation-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-area {
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #084D2B;
    background-color: #F4F9F7;
}

.upload-area.has-file {
    padding: 12px 16px;
    min-height: auto;
}

.upload-icon {
    margin: 0 auto 16px;
    color: #414341;
}

.upload-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #858585;
    margin-bottom: 16px;
}

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

.upload-button {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    background-color: #084D2B;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background-color: #0B4626;
}

.upload-content {
    display: block;
}

.upload-file-info {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background-color: #F4F9F7;
    border: 1px solid #084D2B;
    border-radius: 8px;
}

.upload-file-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-file-name {
    flex: 1;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #414341;
    text-align: left;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 28px;
    height: 28px;
}

.upload-remove:hover {
    background-color: rgba(231, 74, 59, 0.1);
}

/* Botão de Ação */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding-top: 32px;
}

.form-submit-button {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    color: #ffffff;
    background-color: #084D2B;
    border: none;
    border-radius: 8px;
    padding: 16px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-submit-button:hover {
    background-color: #0B4626;
}

.form-submit-button:active {
    transform: translateY(1px);
}

/* Botão Pular Etapa */
.btn-skip-step {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #084D2B;
    background-color: transparent;
    border: 1px solid #084D2B;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip-step:hover {
    background-color: #084D2B;
    color: #ffffff;
}

/* Seções de Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Seções de Sócios */
.socio-wrapper {
    margin-bottom: 32px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.socio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #FAFFFD;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.socio-header:hover {
    background-color: #F0F9F5;
}

.socio-header.expanded {
    background-color: #E8F5EF;
    border-bottom: 2px solid #084D2B;
}

.socio-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #084D2B;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    user-select: none;
}

.socio-caret {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.socio-header.expanded .socio-caret {
    transform: rotate(180deg);
}

.btn-excluir-socio {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #D9534F;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-excluir-socio:hover {
    background-color: #FEE;
    color: #C9302C;
}

.socio-content {
    padding: 24px;
    background-color: #f7f7f7;
}

/* Botão Adicionar Sócio */
.btn-add-socio {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #084D2B;
    background-color: #ffffff;
    border: 1px solid #084D2B;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-socio:hover {
    background-color: #F0F9F5;
}

.btn-add-socio svg {
    width: 20px;
    height: 20px;
    stroke: #084D2B;
}

/* Campos Pessoa Física/Jurídica */
.campos-pf,
.campos-pj {
    width: 100%;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.campos-pf.hidden,
.campos-pj.hidden {
    display: none;
}

@media (max-width: 1200px) {

    .campos-pf,
    .campos-pj {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    .campos-pf,
    .campos-pj {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .campos-pf,
    .campos-pj {
        grid-template-columns: 1fr;
    }
}

/* Checkbox label */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #084D2B;
    padding: 8px 0;
}

.form-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #084D2B;
}

/* Seção de Termos da Plataforma */
.termos-section-wrapper {
    margin-bottom: 48px;
}

.termos-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.termos-section-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #414341;
    margin: 0;
    text-align: left;
}

.termos-content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.termos-content-centered {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.termos-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #414341;
    margin: 0 0 16px 0;
}

.termos-content {
    margin-bottom: 24px;
}

.termos-content .termos-text:last-child {
    margin-bottom: 0;
}

.termos-checkbox-group {
    margin-top: 24px;
}

.termos-checkbox-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #414341;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 0;
}

.termos-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #084D2B;
    flex-shrink: 0;
    margin-top: 2px;
}

.termos-checkbox-label span {
    flex: 1;
}

/* Tela de Sucesso */
.success-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 64px 24px;
    background-color: #ffffff;
}

.success-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.success-icon {
    margin: 0 auto 32px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #084D2B;
    margin: 0 0 32px 0;
}

.success-message {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #414341;
    margin-bottom: 48px;
}

.success-message p {
    margin: 0 0 16px 0;
}

.success-message p:last-child {
    margin-bottom: 0;
}

.success-message strong {
    font-weight: 700;
    color: #084D2B;
}

.success-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.success-button {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    color: #ffffff;
    background-color: #084D2B;
    border: none;
    border-radius: 8px;
    padding: 16px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-decoration: none;
    display: inline-block;
}

.success-button:hover {
    background-color: #0B4626;
}

.form-submit-button:disabled {
    background-color: #E0E0E0;
    color: #858585;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-submit-button:disabled:hover {
    background-color: #E0E0E0;
}

/* Responsividade */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .form-section-title {
        font-size: 23px;
    }
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .cadastro-form-wrapper {
        padding: 0 20px;
    }

    .form-section-title {
        font-size: 22px;
    }

    /* Termos - Tablet */
    .termos-section {
        gap: 24px;
    }

    .termos-section-title {
        font-size: 22px;
    }

    .termos-content-centered {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .perfil-content {
        padding: 48px 0;
    }

    .perfil-main-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .perfil-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .perfil-buttons {
        gap: 12px;
    }

    .perfil-btn {
        font-size: 16px;
        padding: 10px 24px;
        flex: 1;
        min-width: 140px;
        text-align: center;
    }

    .cadastro-form-wrapper {
        padding: 0 16px;
    }

    .steps-indicator {
        gap: 4px;
    }

    .step-connector {
        width: 40px;
        margin: 0 4px;
    }

    .step-label {
        font-size: 12px;
        white-space: normal;
        max-width: 80px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .form-group {
        gap: 10px;
    }

    .form-label {
        font-size: 15px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 8px;
        border-width: 1.5px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-width: 2px;
        box-shadow: 0 0 0 4px rgba(8, 77, 43, 0.12);
    }

    .form-hint {
        font-size: 11px;
        margin-top: -2px;
    }

    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .upload-area {
        padding: 28px 20px;
        min-height: 180px;
    }

    .form-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
        border-bottom: 1px solid #F0F0F0;
    }

    .form-section:last-child {
        border-bottom: none;
    }

    .cadastro-form-wrapper {
        padding: 0 20px;
    }

    /* Termos - Mobile */
    .termos-section {
        gap: 20px;
    }

    .termos-section-title {
        font-size: 22px;
    }

    .termos-content-centered {
        max-width: 100%;
    }

    /* Tela de Sucesso - Mobile */
    .success-screen {
        padding: 40px 16px;
        min-height: 400px;
    }

    .success-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 24px;
    }

    .success-icon svg {
        width: 60px;
        height: 60px;
    }

    .success-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .success-message {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .success-button {
        width: 100%;
        max-width: 280px;
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .perfil-content {
        padding: 32px 0;
    }

    .perfil-main-title {
        font-size: 28px;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .perfil-subtitle {
        font-size: 18px;
        margin-bottom: 16px;
        padding: 0 16px;
    }

    .perfil-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .perfil-btn {
        width: 100%;
        font-size: 15px;
        padding: 12px 20px;
    }

    .cadastro-form-wrapper {
        padding: 0 16px;
    }

    .steps-indicator {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        margin-bottom: 32px;
        -webkit-overflow-scrolling: touch;
    }

    .steps-indicator::-webkit-scrollbar {
        height: 4px;
    }

    .steps-indicator::-webkit-scrollbar-track {
        background: #F5F5F5;
        border-radius: 2px;
    }

    .steps-indicator::-webkit-scrollbar-thumb {
        background: #084D2B;
        border-radius: 2px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-connector {
        width: 30px;
        margin: 0 3px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
        line-height: 1.2;
    }

    .form-section {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .form-section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #E0E0E0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-group {
        gap: 8px;
    }

    .form-label {
        font-size: 14px;
        font-weight: 700;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 8px;
        border-width: 1.5px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-width: 2px;
        box-shadow: 0 0 0 4px rgba(8, 77, 43, 0.1);
    }

    .form-textarea {
        min-height: 120px;
    }

    .form-hint {
        font-size: 11px;
        margin-top: -4px;
        padding-left: 4px;
    }

    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upload-area {
        padding: 24px 16px;
        min-height: 160px;
    }

    .upload-icon svg {
        width: 40px;
        height: 40px;
    }

    .upload-text {
        font-size: 13px;
    }

    .upload-button {
        font-size: 15px;
        padding: 11px 22px;
        width: 100%;
        max-width: 200px;
    }

    .upload-file-info {
        padding: 10px 14px;
        gap: 10px;
    }

    .upload-file-name {
        font-size: 13px;
    }

    .form-actions {
        margin-top: 40px;
        padding-top: 24px;
    }

    .form-submit-button {
        width: 100%;
        padding: 16px 32px;
        font-size: 16px;
        min-width: auto;
    }

    /* Termos - Responsivo */
    .termos-section {
        gap: 20px;
    }

    .termos-section-title {
        font-size: 20px;
    }

    .termos-content-centered {
        max-width: 100%;
    }

    /* Tela de Sucesso - Responsivo */
    .success-screen {
        padding: 48px 16px;
        min-height: 400px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }

    .success-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .success-message {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .success-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Modal de Exclusão */
.modal-excluir-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(65, 67, 65, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    animation: fadeIn 0.2s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-excluir-overlay[style*="flex"],
.modal-excluir-overlay.show {
    display: flex !important;
}

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

.modal-excluir {
    position: relative !important;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 56px 48px 48px 48px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    overflow: visible;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-excluir-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #414341;
    transition: color 0.2s ease;
    z-index: 1;
}

.modal-excluir-close:hover {
    color: #084D2B;
}

.modal-excluir-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.modal-excluir-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #414341;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.modal-excluir-title-line {
    display: block;
    width: 100%;
}

.modal-excluir-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.modal-excluir-btn-cancel,
.modal-excluir-btn-confirm {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.modal-excluir-btn-confirm {
    background-color: #ffffff;
    color: #084D2B;
    border: 1px solid #084D2B;
}

.modal-excluir-btn-confirm:hover {
    background-color: #f8f9fa;
}

.modal-excluir-btn-cancel {
    background-color: #084D2B;
    color: #ffffff;
    border: 1px solid #084D2B;
}

.modal-excluir-btn-cancel:hover {
    background-color: #063d21;
}

@media (max-width: 768px) {
    .modal-excluir {
        padding: 48px 24px 32px 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .modal-excluir-close {
        top: 16px;
        left: 16px;
    }

    .modal-excluir-content {
        gap: 32px;
    }

    .modal-excluir-title {
        font-size: 24px;
    }

    .modal-excluir-actions {
        flex-direction: column;
        gap: 12px;
    }

    .modal-excluir-btn-cancel,
    .modal-excluir-btn-confirm {
        width: 100%;
        min-width: auto;
    }
}

/* Modal de Placa */
.modal-placa-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(65, 67, 65, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    animation: fadeIn 0.2s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-placa-overlay[style*="flex"] {
    display: flex !important;
}

.modal-placa {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-placa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
}

.modal-placa-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: #414341;
    margin: 0;
}

.modal-placa-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #414341;
    transition: color 0.2s ease;
}

.modal-placa-close:hover {
    color: #084D2B;
}

.modal-placa-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-placa-footer {
    padding: 24px 32px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
}

.modal-placa-btn-salvar {
    background-color: #084D2B;
    color: #ffffff;
    border: 1px solid #084D2B;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-placa-btn-salvar:hover {
    background-color: #063d21;
}

/* Botões de Placa */
.placas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.btn-placa {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #084D2B;
    border-radius: 8px;
    color: #084D2B;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.btn-placa:hover {
    background-color: #f8f9fa;
    border-color: #063d21;
}

.btn-placa svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-placa {
        width: 95%;
        max-height: 95vh;
        margin: 16px;
    }

    .modal-placa-header,
    .modal-placa-body,
    .modal-placa-footer {
        padding: 16px 20px;
    }

    .modal-placa-title {
        font-size: 20px;
    }

    .placas-container {
        flex-direction: column;
    }

    .btn-placa {
        width: 100%;
        min-width: auto;
    }
}