/* Backdrop */
.seletor-tipo-cadastro-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seletor-tipo-cadastro-modal-backdrop.active {
    opacity: 1;
}

/* Modal */
.seletor-tipo-cadastro-modal {
    position: relative;
    width: 100%;
    max-width: 560px !important;
    background: #FFFFFF;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 95vh;
    min-height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Modal com seletor aberto */
.seletor-tipo-cadastro-modal.seletor-open {
    min-height: auto;
}

/* Garante que todos os elementos dentro do modal usem Poppins */
.seletor-tipo-cadastro-modal * {
    font-family: 'Poppins', sans-serif !important;
}

.seletor-tipo-cadastro-modal-backdrop.active .seletor-tipo-cadastro-modal {
    transform: scale(1);
}

/* Close Button */
.seletor-tipo-cadastro-modal-close {
    position: absolute;
    top: 12px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: color 0.2s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
}

.seletor-tipo-cadastro-modal-close:hover {
    color: #666666;
}

.seletor-tipo-cadastro-modal-close svg {
    width: 100%;
    height: 100%;
}

/* Header */
.seletor-tipo-cadastro-modal-header {
    padding: 32px 40px 24px;
    text-align: center;
}

.seletor-tipo-cadastro-modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    margin: 0;
}

/* Body */
.seletor-tipo-cadastro-modal-body {
    padding: 24px 40px 60px;
}

/* Seletor Wrapper */
.seletor-wrapper {
    position: relative;
    margin-bottom: 48px;
    z-index: 1;
    transition: margin-bottom 0.3s ease;
}

/* Seletor Wrapper quando aberto - aumenta espaço */
.seletor-tipo-cadastro-modal.seletor-open .seletor-wrapper {
    margin-bottom: 220px;
}

/* Seletor Trigger */
.seletor-trigger {
    width: 100%;
    height: 56px;
    padding: 18px 24px;
    background: #FFFFFF;
    border: 1px solid #FF7854;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.seletor-trigger:hover {
    border-color: #E66A4A;
}

.seletor-trigger.open {
    border-color: #FF7854;
    box-shadow: 0 0 0 3px rgba(255, 120, 84, 0.1);
}

.seletor-placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    flex: 1;
    text-align: left;
}

.seletor-placeholder.selected {
    color: #000000;
}

.seletor-arrow {
    width: 20px;
    height: 20px;
    color: #666666;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.seletor-trigger.open .seletor-arrow {
    transform: rotate(180deg);
}

/* Seletor Options */
.seletor-options {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #FF7854;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10;
    max-height: 0;
    overflow-y: auto;
}

.seletor-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
}

.seletor-option {
    padding: 18px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.seletor-option:last-child {
    border-bottom: none;
}

.seletor-option:hover {
    background-color: #FFF5F3;
}

.seletor-option.selected {
    background-color: #FFF5F3;
    color: #FF7854;
    font-weight: 500;
}

/* Login Link */
.seletor-login-link {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-top: 40px;
    padding-top: 0px;
    transition: margin-top 0.3s ease;
}

/* Login Link quando seletor está aberto */
.seletor-tipo-cadastro-modal.seletor-open .seletor-login-link {
    margin-top: 200px !important;
    padding-top: 0px !important;
}

.seletor-login-link span {
    margin-right: 4px;
}

.link-login {
    color: #FF7854 !important;
    text-decoration: underline !important;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: #FF7854;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-login:hover {
    color: #E66A4A !important;
    text-decoration-color: #E66A4A;
}

/* Responsive */

/* Tablets (768px e abaixo) */
@media (max-width: 768px) {
    .seletor-tipo-cadastro-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .seletor-tipo-cadastro-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }

    .seletor-tipo-cadastro-modal-header {
        padding: 32px 24px 24px;
    }

    .seletor-tipo-cadastro-modal-body {
        padding: 0 24px 32px;
    }

    .seletor-tipo-cadastro-modal-close {
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
    }

    .seletor-trigger {
        height: 52px;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .seletor-options {
        border-radius: 12px;
    }

    .seletor-option {
        padding: 16px 20px;
    }
}

/* Smartphones (480px e abaixo) */
@media (max-width: 480px) {
    .seletor-tipo-cadastro-modal-header {
        padding: 24px 16px 20px;
    }

    .seletor-tipo-cadastro-modal-body {
        padding: 0 16px 24px;
    }

    .seletor-tipo-cadastro-modal-title {
        font-size: 20px;
    }

    .seletor-tipo-cadastro-modal-close {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
    }

    .seletor-trigger {
        height: 50px;
        padding: 15px 18px;
        border-radius: 10px;
        font-size: 16px;
    }

    .seletor-options {
        border-radius: 10px;
    }

    .seletor-option {
        padding: 15px 18px;
        font-size: 16px;
    }

    .seletor-login-link {
        font-size: 14px;
    }
}

