﻿:root {
    --primary-color: #D33E21;
    --secondary-color: #64100A;
    --text-color: #FFFFFF;
    --background-color: #EFB985;
    --font-family: 'Archia', sans-serif;
    --input-border-radius: 5px;
    --button-border-radius: 90px;
    --input-padding: 10px 15px;
    --transition-time: 0.3s ease;
}
/* -------------------------------- MODAL -------------------------------- */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.moldal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}


.title {
    color: #D33E21;
    font-family: Archia;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin: 0;
}

    .title h2 {
        color: #64100A;
        font-family: Archia;
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
    }

.info-text {
    text-align: center;
    color: #64100A;
    padding: 18px 0;
}

    .info-text .line1 {
        font-size: 24px;
        font-weight: bold;
    }

    .info-text .line2 {
        font-size: 18px;
        font-weight: normal;
        margin-bottom: 5px;
        line-height: 20px;
    }

    .info-text .line3 {
        font-size: 14px;
        font-weight: normal;
    }

.cancel-link-top {
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-time);
}

    .cancel-link-top:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

.line-separator {
    flex-grow: 1;
    border-bottom: 2px solid #C6C6C6;
    max-width: auto;
    margin-bottom:10px;
}

/* -------------------------------- ETAPA 1 -------------------------------- */
.form-group-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Archia', sans-serif;
    color: #333;
}

    .form-item-1 {
        flex: 1 1 calc(50% - 30px);
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .form-item-1 label {
        margin-bottom: 5px;
        font-weight: bold;
    }

        .form-item-1 input,
        .form-item-1 select {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
            font-family: 'Archia', sans-serif;
        }

.input-container-termos-1 {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

    .input-container-termos-1 .termo-item {
        display: flex;
        align-items: flex-start; 
        gap: 10px; 
        font-size: 12px; 
        line-height: 1.5;
        color: #555; 
    }

    .input-container-termos-1 .error-message {
        margin-top: -10px;
    }


.form-actions-1 {
    display: flex; 
    justify-content: flex-end;
}
    .form-actions-1 .botao-proximo {
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        border: none;
        border-radius: var(--button-border-radius);
        color: var(--text-color);
        background-color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition-time);
    }

        .form-actions-1 .botao-proximo:hover {
            background-color: var(--secondary-color);
        }

        .form-actions-1 .botao-proximo:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
/* -------------------------------- ETAPA 2 -------------------------------- */
.form-group-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Archia', sans-serif;
    color: #333;
}

.form-item-2 {
    flex: 1 1 calc(50% - 30px);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

    .form-item-2 label {
        margin-bottom: 5px;
        font-weight: bold;
    }
        .form-item-2 label.codigo {
            font-size: 15px;             
        }

    .form-item-2 input,
    .form-item-2 select {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
        font-family: 'Archia', sans-serif;
    }

.input-container-termos-2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .input-container-termos-2 .termo-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 12px;
        line-height: 1.5;
        color: #555;
        margin-bottom: 10px;
        position: relative;
    }

        .input-container-termos-2 .termo-item .link {
            color: #D33E21; 
            cursor: pointer; 
            text-decoration: none; 
            transition: color 0.3s; 
        }

            .input-container-termos-2 .termo-item .link:hover {
                color: #0056b3;
            }

        .input-container-termos-2 .error-message {
            margin-top: -15px;
        }


.form-actions-2 {
    display: flex;
    justify-content: space-between;
}

    .form-actions-2 .botao-voltar,
    .form-actions-2 .botao-concluir {
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        border: none;
        border-radius: var(--button-border-radius);
        color: var(--text-color);
        background-color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition-time);
    }

    .form-actions-2 .botao-voltar:hover,
    .form-actions-2 .botao-concluir:hover {
        background-color: var(--secondary-color);
    }

    .form-actions-2 .botao-voltar:disabled,
    .form-actions-2 .botao-concluir:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

/* -------------------------------- SPINNER -------------------------------- */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* -------------------------------- RESPONSIVIDADE -------------------------------- */

@media screen and (max-width: 1200px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .form-group-1 .form-item-1, .form-group-2 .form-item-2 {
        flex: 1 1 100%;
    }

    .form-actions-1 .botao-proximo,
    .form-actions-2 .botao-voltar,
    .form-actions-2 .botao-concluir {
        width: 100%; 
        margin-top: 10px; 
        margin-left: 5px; 
        margin-right: 5px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px; 
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .form-group-1 .form-item-1, .form-group-2 .form-item-2 {
        flex: 1 1 100%; 
    }

    .form-actions-1,
    .form-actions-2 {
        gap: 10px; 
        display: flex;
        flex-direction: column; 
    }

        .form-actions-1 .botao-proximo,
        .form-actions-2 .botao-voltar,
        .form-actions-2 .botao-concluir {
            padding: 12px 0;
            font-size: 14px;
        }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .header {
        flex-direction: row; 
        align-items: flex-start;
    }

    .form-group-1, .form-group-2 {
        flex-direction: column; 
        gap: 10px; 
    }

    .form-item-1, .form-item-2 {
        flex: 1 1 100%;
    }

    .form-actions-1,
    .form-actions-2 {
        gap: 15px; 
    }

        .form-actions-1 .botao-proximo,
        .form-actions-2 .botao-voltar,
        .form-actions-2 .botao-concluir {
            width: 100%;
            padding: 12px 0;
            font-size: 16px;
        }
}