* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.container {
    margin: 10px auto;
    padding: 15px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    min-height: 200px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.popup-content p {
    font-size: 18px;
    color: #555;
    margin: 20px 0;
}

.fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #888;
    transition: color 0.3s ease;
}

.fechar:hover {
    color: #000;
}

.popup-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #0056b3;
}

.container {
    max-width: 480px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.peso-icon {
    max-width: 100%;
    height: auto;
    width: 80px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #007BFF;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #007BFF;
    outline: none;
    background-color: #ffffff;
}

button {
    width: 100%;
    padding: 12px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

#resultado {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    color: #28a745;
}

input:invalid {
    border-color: #e74c3c;
    background-color: #f8d7da;
}

input, select, button {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.select2-container {
    width: 100% !important;
    border-radius: 8px !important;
}

.select2-selection {
    height: 40px !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background-color: #fafafa !important;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
}

.select2-selection__rendered {
    color: #333;
    font-size: 16px;
}

.select2-selection__arrow {
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    color: #007BFF;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #007BFF;
    background-color: #ffffff;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    background-color: transparent; 
    color: #007BFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #0056b3;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #f9f9f9;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1002;
}

.sidebar.open {
    left: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
    margin-top: 50px;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #007BFF;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

.content {
    text-align: center;
    margin-top: 20px;
}

.content h2 {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content ul li {
    text-align: left;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.content ul li strong {
    color: #333;
}

#form-contato .form-group {
    margin-bottom: 15px;
}

#form-contato label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

#form-contato input,
#form-contato textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

#form-contato input:focus,
#form-contato textarea:focus {
    border-color: #007BFF;
    outline: none;
    background-color: #ffffff;
}

#form-contato textarea {
    resize: vertical;
}

#form-contato button {
    width: 100%;
    padding: 12px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#form-contato button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.content a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #0056b3;
}

.botoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.user-logged {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.user-logged p {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.user-logged button {
    width: 100%; 
}

.user-not-logged {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-not-logged button {
    width: 100%;
}

.user-info .user-not-logged .cadastro {
    background: white;
    color: #007BFF;
    border: 1px solid #007BFF;
    transition: background 0.3s, color 0.3s;
}

.user-info .user-not-logged .cadastro:hover {
    background: #007BFF;
    color: white;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center; 
    color: white;
    font-size: 1.5em;
    z-index: 9999;
}

#loading i {
    font-size: 3em;
    margin-right: 10px; 
    animation: spin 1s linear infinite;
}

#loading span {
    font-size: 1.5em;
    color: #fff;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px auto;
        padding: 15px;
        width: 90%;
        border-radius: 8px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    }

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input, select {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 10px;
        font-size: 16px;
    }

    .icon-container {
        margin-bottom: 10px;
    }

    .peso-icon {
        width: 50px;
    }
}