* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-height: 100%;
    height: auto;
}

header {
    width: 100%;
    background-color: #1e3a5f;
    text-align: center;
    color: white;
    height: 63px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
}

.header-area-1 {
    flex: 1;
}

.header-area-2 {
    flex: 2;
}

.home-btn-area {
    display: flex;
    flex-direction: row;
}

main {
    min-height: calc(100vh - 147px);
    padding: 0 1rem;
    width: 100%;
}

footer {
    background-color: #1e3a5f;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    font-size: 14px;
    z-index: 1000;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 0 26em;
}

.page-footer {
    width: 588px;
}

.notice {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.form-container{
    display: flex;
    justify-content: flex-start;
    padding-bottom: 5rem;
}

.form-fields-container {
    padding: 25px;
}

.form-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-right: 10rem;
    overflow: auto;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: calc(100% - 40px); 
    background-color: #1e3a5f;
    z-index: -1;
}

.create-report-content {
    width: 35em;
}

.tab-link {
    position: relative;
    z-index: 1;
    background-color: #1e3a5f;
}

.tab-selected {
    background-color: #1e3a5f;
    color: #ffffff!important;
}

.tab-inactive {
    background-color: #f9f9f9;
    color: #1e3a5f;
    border: #1e3a5f 1px solid;
}


section h1{
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
    font-weight: bold;
}

.user-terms {
    text-align: center;
    width: 40%;
    height: 100%;
}

.report-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #1e3a5f;
}

form .form-input {
    padding: 0.75rem;
    /* margin-bottom: 1.5rem; */
    border: 1px solid #ccc;
    border-radius: 14px;
    font-size: 1rem;
    color: #333;
    height: 50px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.next-btn-area {
    margin-top: 1rem !important;
}

#description {
    height: 150px;
    resize: vertical;
}

.upload-text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1e3a5f;
    font-size: 2rem;
    text-align: center;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 5px;
    width: 60%;
    margin: 2rem 0;
    justify-content: space-between;
    height: 60px;
  }
  
  .file-upload {
    display: none;
  }
  
  .file-upload-label {
    display: flex;
    align-items: center;
    background-color: #1e1f30;
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    height: 60px;
  }
  
  .file-upload-text {
    margin-left: 10px;
    color: #808080;
  }
  

.report-form select.form-input {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="none" stroke="%23333" stroke-width=".75" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65em auto;
}

.report-form textarea.form-input {
    height: 150px;
    resize: vertical;
}

.btn-container {
    margin-top: 2rem;
}

.custom-btn {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: #1e3a5f;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.disabled-btn {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    background-color: #cccccc; 
    color: #666666; 
    box-shadow: none;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background-color: #cccccc;
}

.custom-btn:hover {
    background-color: #ce9253;
}

.form-checkbox {
    margin: 0 1rem;
    display: inline-block;
    margin-right: 0.5rem;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    appearance: none;
    background-color: #1e3a5f;
    cursor: pointer;
    position: relative;
}

.form-checkbox:checked {
    background-color: #1e3a5f; 
    border-color: #1e3a5f;
}


.form-checkbox:checked::after {
    content: '✔';
    position: absolute;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background-color: #1e3a5f;
    font-size: 14px; 
    width: 20px;
    height: 20px;
    text-align:center;
}

.mr-2 {
    margin-right: 0.5rem;
}

.terms {
    color: #333;
    margin: 1rem 0;
}


.btn-complaint-type {
    width: 429px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 36px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    color: #fff;
    background-color: #1e3a5f;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-right: 3rem;
    padding: 1.5rem 0.5rem; 
}

.btn-complaint-type:hover {
    background-color: #ce9253;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.sent-page {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.sent-form-container{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.back-container-historic {
    margin-top: 3rem;
    width: 80%;
    font-size: 20px;
}

.back-container a {
    display: flex;
    justify-content: flex-start;
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 20px;
}

.custom-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    color: green;
}

.info-container {
    display: flex;
    margin-top: 3rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #1e3a5f;
    color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 300px;
    max-height: 200px;
    margin: 20px;
}

.info-container::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 80%;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent #1e3a5f transparent transparent;
}

.tracking-code{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.notification-container{
    padding: 10px;
    margin-bottom: 10px;
}

.success-message{
    font-weight: bold;
    padding: 15px;
    margin-bottom: 1rem;
    background-color: green;
    color: white;
    border-radius: 15px;
    margin-bottom: 20px;
}

.form-title{
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.historic-table{
    width: 70%;
}

.historic-table h2 {
    font-size: 2rem;
}

.historic-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.custom-table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.custom-table th,
.custom-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.custom-table th:first-child,
.custom-table td:first-child {
    border-top-left-radius: 15px;
    padding: 5px;
    text-align: center;
}

.custom-table th:last-child,
.custom-table td:last-child{
    border-top-right-radius: 15px;
    padding: 5px;
    text-align: center;
}

.tb-header {
    background-color: #1e3a5f;
    color: white;
    font-weight: bold;
}

.tb-body {
    background-color: white;
}

.custom-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-title{
    text-align: center;
    color:#1e3a5f;
    font-weight: bold;
    margin-bottom: 3rem;
}

.report-type-main {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.select-type-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 30vh;
}

.track-report-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tracking-form{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
}

.tracking-input {
    width: 100%;
}

.tracking-btn{
    display: flex;
    width: 288px;
    height: 55px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #1e3a5f;
    background-color: #E5A25C;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
}

.tracking-btn-disabled {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #1e3a5f;
    background-color: #cccccc;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    cursor: not-allowed;
    width: 20%;
    margin-top: 10px;
    align-self: center;
}

.tracking-btn:hover {
    background-color: #333550;
    color: white;
}

.inline-block {
    display: inline-block;
}

.tracking-input-container{
    width: 40%;
}

#error-message {
    background-color: rgb(143, 13, 13);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    margin-top: 1rem;
    position: fixed; 
    top: 10px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.error-message-1 {
    padding: 10px;
    color: rgb(143, 13, 13);
    font-weight: bold;
}

form .error-message-1 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
}

.page-logo {
    max-height: 80px; 
    width: auto; 
    object-fit: contain;
}

.add-company-btn {
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #1e3a5f;
    background-color: #E5A25C;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    cursor: pointer;
    align-self: center;
    padding: .5rem 1rem;
    margin-left: 1rem;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo-container {
    width: 125px ;
    position: absolute;
    top: 14px;
    left: 50px;
}

.secondary-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 292px;
    height: 55px;
    border: 2px solid #1e3a5f;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 20px;
}
.secondary-btn:hover {
    background-color: #1e3a5f;
    color: white;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.choices .is-focused {
    border-radius: 14px !important;
}

.choices__inner {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 14px !important;
    font-size: 1rem;
    color: #333;
    height: 50px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.choices__inner .choices__list--single {
    line-height: 1.5;
    border-radius: 14px !important;
}

.choices__inner .choices__list--single .choices__item {
    height: 100%;
    border-radius: 14px !important;
}

.choices__list--dropdown {
    border-radius: 14px !important;
}

.choices__list--dropdown .choices__item {
    color: #333;
    padding: 8px 12px;
    border-radius: 14px !important;
}

.choices__list--dropdown .choices__item--highlighted {
    background-color: #f0f0f0;
    color: #333;
    border-radius: 14px !important;
}

@media (min-width: 1024px) {
    footer {
        height: 80px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    main {
        margin-top: -3vh;
        min-height: calc(75vh);
    }

    footer {
        height: 80px;
    }

    .tracking-input-container {
        width: 100%;
    }
    
    header {
        height: 98px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    .page-logo {
        height: 95px;
    }

    .btn-complaint-type {
        width: 100%;
        font-size: 0.875rem;
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .form-steps {
        margin-right: 5rem;
    }

    .create-report-content {
        width: 35em;
    }

    .custom-table {
        width: 100%;
    }
    
}

@media (max-height: 640px) {
    main {
        margin-top: -10vh;
    }
}

@media (max-width: 640px) {
    body {
        max-width: 100vw !important;
        height: 100vh !important;
    }

    main {
        margin-top: 0;
        min-height: 57vh;
    }

    .select-type-section {
        align-items: center;
        height: 15vh;
    }

    header {
        max-width: 100vw !important;
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 3;
    }

    .header-area-2 {
        flex: 1;
    }

    .home-btn-area {
        display: flex;
        flex-direction: column;
    }

    .login {
        width: 100%;
    }

    .register {
        margin-top: .5rem;
        width: 100%;
    }
    .page-logo {
        height: 80px;
    }

    .user-terms {
        width: 100%;
    }

    .title-welcome {
        font-size: 2rem;
        line-height: normal;
    }

    .welcome-main {
        padding-top: 3rem !important;
        padding-bottom: 7.5rem !important;
    }

    .page-footer {
        width: 100%;
        padding: 0 1rem;
    }

    footer {
        bottom: 0;
        height: 79px;
        font-size: 14px;
        z-index: 1000;
    }

    /** Home Reports **/
    .page-title {
        font-size: 1.2rem;
    }

    .report-type-main {
        min-height: 57vh;
        width: 100%;
    }

    /* Botões */
    .btn-complaint-type {
        width: 100%;
        font-size: 0.875rem;
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .back-container a {
        width: 100%;
    }

    .form-label {
        text-align: center;
    }

    .form-container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem 6rem 1rem;
        width: 100%;
    }

    .form-steps {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        padding: 1rem;
        margin-right: 0;
    }

    .form-steps::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: calc(100% - 73px); 
        background-color: #1e3a5f;
        z-index: -1;
    }

    .create-report-content {
        width: 100%;
        box-sizing: border-box;
    }

    .form-input {
        width: 100%;
        font-size: 0.875rem;
        height: 44px;
    }

    .custom-btn {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .sent-page {
        flex-direction: column;
        padding-bottom: 6rem;
    }

    .info-text {
        text-align: center;
    }

    .historic-content{
        padding-bottom: 8rem;
    }

    .table-title{
        text-align: center;
        color:#1e3a5f;
        font-weight: bold;
        margin-bottom: 1rem;
        line-height: 50px;
    }

    .mobile-label {
        border: none !important;
    }

    .custom-table {
        border-collapse: collapse;
        width: 100%;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table, .custom-table tbody, .custom-table tr {
        display: block;
        width: 100%;
    }

    .tb-body {
        background-color: inherit;
    }

    .custom-table tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
        border-radius: 10px;
        padding: 0.5rem 1rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .custom-table td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0.5rem 0;
    }

    .custom-table td:last-child {
        border-bottom: none;
    }

    .custom-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #1e3a5f;
        flex-basis: 35%;
        text-align: right;
    }

    .custom-table td {
        flex-basis: 75%;
        text-align: right;
    }

    .custom-table td[data-label="Comentário:"] {
        flex-direction: column;
        align-items: center;
    }

    .custom-table td[data-label="Comentário:"]::before {
        content: attr(data-label);
        font-weight: bold;
        color: #1e3a5f;
        text-align: center;
        margin-bottom: 0.25rem;
        flex-basis: auto;
    }

    .custom-table td[data-label="Comentário:"] {
        text-align: center;
    }

}