@import "./colors.css";

.title-modal-data {
    font-size: 1.4rem;
    /* text-align: center; */
    margin: 0;
    font-weight: 700;
    color: var(--color-tertiary);
}

#progressbar {
    /* position: sticky; */
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    margin: 0 0 0 0;
    padding: 20px 8px 30px;
    background: var(--color-white);
    counter-reset: step;
}

/* cada step */
#progressbar li {
    list-style: none;
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 12px;
    color: #999;
}
/* círculo */
#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    height: 40px;
    line-height: 40px;

    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* linha entre os steps */
#progressbar li:after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}
#progressbar li.active:after {
    background: var(--color-primary);
}

#progressbar li.active:before {
    background: var(--color-primary);
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

/* pulse externo sem mexer no layout */
#progressbar li.active:before {
    animation: pulse 1.6s infinite;
}

#progressbar li:last-child:after {
    display: none;
}

#progressbar li.active {
    color: var(--color-primary);
}

#progressbar li.active:before {
    background: var(--color-primary);
    color: var(--color-white);
}

#progressbar li.active:after {
    background: var(--color-primary);
}

fieldset {
    display: none;
    border: 0;
}

fieldset:first-of-type {
    display: block;
}

/* inputs */
.form-control {
    border-radius: 8px;
    padding: 10px;
}

/* botões */
.action-button {
    margin-top: 15px;
}

.modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding-top: 0 !important;
}
input {
    font-size: small;
}
#formModal {
    top: 60px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}
.title {
    font-size: 1.3rem;
}
.modal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-weight: bold;
    font-size: 1.5rem;
    color: rgb(11, 58, 42);
}
.modal-header .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    border: none;
    background: transparent;
    outline: none;
    opacity: 0.7;
    cursor: pointer;
}

.modal-header .close:hover {
    opacity: 1;
}
.step-title {
    color: #595c5b;
}
/* botão base */
.btn-cta {
    background: var(--color-primary) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* hover (levanta o botão) */
.btn-cta:hover {
    background: var(--color-primary-hover);

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* clique (efeito pressionado) */
.btn-cta:active {
    transform: scale(0.96);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: var(--color-primary);
}

/* efeito de brilho animado */
.btn-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.2)
    );
    transform: skewX(-20deg);
}

/* animação no hover */
.btn-cta:hover::after {
    left: 130%;
    transition: 0.6s;
    /* transform: scale(1.05); */
}

/* .btn-cta {
  animation: pulse 2s infinite;
} */
textarea::placeholder {
    color: #bec9c4;
    opacity: 1;
}
input::placeholder {
    font-size: small;
}
.custom-file::file-selector-button {
    padding: 4px 8px;
}

.file-custom {
    display: inline-block;
}
input::selection {
    background: var(--color-primary);
    color: var(--color-white);
}
input:focus::placeholder {
    color: transparent;
}

input::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}
/* animações */
@keyframes pulse-ring {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0;
    }
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 224, 70, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(35, 248, 2, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(18, 221, 4, 0);
    }
}
@media (max-width: 1000px) {
    .file_input {
        padding-bottom: 8px;
    }
}
