/* ===================================
   ESTILOS PARA SEÇÃO DE VAGAS
   =================================== */

/* Container principal das vagas */
.vagas {
    background: #FFFFFF;
    border-radius: 0;
    padding: 40px 0;
    position: relative;
}

.vagas.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vagas.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #258cc5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Título da seção */
.vagas h2 {
    color: #182141;
    font-family: "Karla", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.vagas h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #258cc5;
    border-radius: 2px;
}

/* Lista de vagas */
.vagas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vagas ul li {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.vagas ul li:nth-child(1) { animation-delay: 0.1s; }
.vagas ul li:nth-child(2) { animation-delay: 0.2s; }
.vagas ul li:nth-child(3) { animation-delay: 0.3s; }
.vagas ul li:nth-child(4) { animation-delay: 0.4s; }
.vagas ul li:nth-child(5) { animation-delay: 0.5s; }
.vagas ul li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item individual da vaga */
.vagas .vaga-item {
    background: #FFFFFF;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 350px;

}

.vagas .vaga-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #258cc5;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vagas .vaga-item:hover {
    border-color: #258cc5;
    box-shadow: 0 5px 20px rgba(192,12,25,0.15);
    transform: translateY(-2px);
}

.vagas .vaga-item:hover::before {
    transform: scaleY(1);
}

/* Logo/Nome da loja */
.vagas .vaga-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 0;
}

.vagas .vaga-item h3 {
    color: #182141;
    font-family: "Karla", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* Descrição da vaga */
.vagas .vaga-item p {
    color: #666;
    font-family: "Karla", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.vagas .vaga-item p b {
    color: #182141;
    font-weight: 600;
}

/* Botão Candidatar-se */
.vagas .vaga-item button {
    background: #258cc5;
    color: #FFFFFF;
    border: 2px solid #258cc5;
    border-radius: 0;
    padding: 12px 25px;
    font-family: "Karla", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vagas .vaga-item button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.vagas .vaga-item button:hover {
    background: transparent;
    color: #258cc5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192,12,25,0.3);
}

.vagas .vaga-item button:hover::before {
    left: 100%;
}

/* Mensagem quando não há vagas */
.vagas .nenhuma {
    color: #666;
    font-family: "Karla", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 30px 0;
}

/* Box de vaga selecionada */
.box-submit {
    background: #f8f9fa;
    border: 2px solid #258cc5;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box-submit .loja-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-submit .loja-info input {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 12px;
    font-family: "Karla", sans-serif;
    font-size: 0.9rem;
    color: #182141;
    flex: 1;
}

.box-submit .close-loja {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #258cc5;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.box-submit .close-loja:hover {
    background: #a0091f;
    transform: scale(1.1);
}

/* Estilos para nice-select */
.nice-select {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 2px solid #258cc5 !important;
    color: #182141 !important;
    float: inherit !important;
    font-family: "Karla", sans-serif !important;
    font-size: 0.9rem !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 8px 12px !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.nice-select:after {
    border-color: #258cc5 !important;
    right: 12px !important;
}

.nice-select .list {
    border-radius: 0 !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 2px 6px rgba(192,12,25,0.15) !important;
}

.nice-select .list li {
    color: #182141 !important;
    font-family: "Karla", sans-serif !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
}

.nice-select .list li:hover,
.nice-select .list li.selected {
    background: #258cc5 !important;
    color: #FFFFFF !important;
}

.nice-select .list li.selected {
    font-weight: 600 !important;
}

/* Campo nome com 100% de largura */
.box-submit + .form-group input[name="nome"],
.box-submit ~ .form-group input[name="nome"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* Responsividade */
@media (max-width: 1200px) {
    .vagas h2 {
        font-size: 2rem;
    }
    
    .vagas .vaga-item {
        padding: 20px;
    }
    
    .vagas .vaga-item h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .vagas {
        padding: 30px 0;
    }
    
    .vagas h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .vagas ul li {
        animation-delay: 0.1s !important;
    }
    
    .vagas .vaga-item {
        padding: 18px;
    }
}

@media (max-width: 767.98px) {
    .vagas h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .vagas .vaga-item {
        padding: 15px;
    }
    
    .vagas .vaga-item h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .vagas .vaga-item p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .vagas .vaga-item button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .box-submit {
        padding: 15px;
    }
    
    .box-submit .loja-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .box-submit .loja-info input {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .vagas {
        padding: 20px 0;
    }
    
    .vagas h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .vagas .vaga-item {
        padding: 12px;
    }
    
    .vagas .vaga-item img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .vagas .vaga-item h3 {
        font-size: 1rem;
    }
    
    .vagas .vaga-item p {
        font-size: 0.8rem;
    }
    
    .vagas .vaga-item button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .box-submit {
        padding: 12px;
        margin-bottom: 20px;
    }
}

/* Estados especiais */
.vagas .vaga-item:focus-within {
    border-color: #258cc5;
    box-shadow: 0 0 0 3px rgba(192,12,25,0.1);
}

.vagas .vaga-item button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192,12,25,0.3);
}

/* Acessibilidade */
.vagas .vaga-item button:focus-visible {
    outline: 2px solid #258cc5;
    outline-offset: 2px;
}

/* Loading state melhorado */
.vagas.loading .vaga-item {
    opacity: 0.3;
    pointer-events: none;
}

/* Animações mais suaves para mobile */
@media (max-width: 767.98px) {
    .vagas ul li {
        animation-duration: 0.4s;
    }
    
    .vagas ul li:nth-child(1) { animation-delay: 0.05s; }
    .vagas ul li:nth-child(2) { animation-delay: 0.1s; }
    .vagas ul li:nth-child(3) { animation-delay: 0.15s; }
    .vagas ul li:nth-child(4) { animation-delay: 0.2s; }
    .vagas ul li:nth-child(5) { animation-delay: 0.25s; }
    .vagas ul li:nth-child(6) { animation-delay: 0.3s; }
}
