body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #02B8BB, #B3E6E5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#loadingScreen {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}

.spinner {
    border: 8px solid #f3f3f300; 
    border-top: 8px solid #ffffff; 
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    display:flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.644);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    max-width: 500px;
    max-height: 90%;
    overflow: auto;
    width: 100%;
}

.container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.red {
    color: red;
}

.ssl {
    width: 100%;
}

.ssl-div {
    width: 20%;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modern-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.txt-area {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 10px;
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-size: 1rem;
    outline: none; 
    transition: border-color 0.2s ease-in-out; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    resize: vertical;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.frete-group {
    background-color: #ffffffef;
    border-radius: 15px;
    padding: 10px;
}

.frete {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
}

#unidades-group {
    background-color: #ffffffef;
    border-radius: 15px;
    padding: 10px;
}

#numero-group {
    text-wrap: nowrap;
    max-width: 15%;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.form-group input:focus, .form-group select:focus {
    border-color: #02B8BB;
    box-shadow: 0 0 5px rgba(2, 184, 187, 0.5);
    outline: none;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #02B8BB;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

button:hover {
    background: #029AA9;
    transform: scale(1.05);
}

button:focus {
    outline: none;
}

.logo-img {
    width: 200px;
}

.logo-img:hover {
    cursor: pointer;
}

.horizontal-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.phone-group input {
    flex: 1;
}

#ddd {
    max-width: 60px;
}

#telefone {
    width: 100%;
}

#numero {
    max-width: 90%; 
}

#complemento {
    max-width: 100%; 
}

#comp-group {
    flex: 1;
    margin-left: 10px;
}

.icones {
    width: 24;
}

.icone-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.enderecos-label {
    font-size: 0.8em;
    text-wrap: wrap;
    text-decoration: none;
}

.hidden {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease
}

.visible {
    opacity: 1;
    display: block;
    transition: opacity 0.5s ease
}

#additional-fields, #unidades-select {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#additional-fields:not(.hidden), #unidades-select:not(.hidden) {
    opacity: 1;
}

#phone-and-comp {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;

}

@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input, .form-group select {
        font-size: 16px;
    }

    button {
        font-size: 16px;
    }

    input[type="radio"] {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input, .form-group select {
        font-size: 16px;
    }

    button {
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }

    .form-group input, .form-group select {
        font-size: 16px;
    }

    .frete {
        font-size: 0.95em;
        width: auto;
        height: auto;
    }
}
