/*!
 * Copyright © 2025 Carvalhão Transporte
 * Todos os direitos reservados
 */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header Section with Gradient */
.header-section {
    background: linear-gradient(to bottom,rgb(20, 1, 118) 0%, #210262 50%, #130153 100%);
    color: white;
    padding: 100px 40px;
    text-align: center;
}

.header-section h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header-section .subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 30px 0;
}

.logo-container {
    display: inline-block;
    margin-bottom: 15px;
}

.logo-image {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.carvalhao-title {
    font-size: 48px;
    font-weight: bold;
    color: #4110c8;
    margin: 10px 0;
    letter-spacing: 2px;
}

.hashtag {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

/* Form Styles */
.denuncia-form {
    background-color: #fff;
    padding: 20px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Protocol Group - Inline */
.protocolo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.protocolo-group label {
    margin-bottom: 0;
    display: inline-block;
    white-space: nowrap;
}

.required {
    color: #102cc8;
}

/* Protocol Display */
.protocol-display {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    border-radius: 4px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Personal Info Fields */
.personal-info-fields {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

/* Select Fields */
.select-field {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.select-field:focus {
    outline: none;
    border-color: #2c10c8;
}

/* Input Fields */
.input-field,
.textarea-field {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.textarea-field {
    resize: vertical;
    min-height: 120px;
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: #3810c8;
}

/* File Upload Section */
.file-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

/* Termos Section */
.termos-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.termos-content {
    margin-bottom: 20px;
}

.termos-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.termos-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.termos-checkbox {
    margin-top: 15px;
}

.termos-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.termos-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Termos Checkbox Inline */
.termos-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.termos-checkbox-inline label {
    margin-bottom: 0;
}

.file-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.file-button {
    background-color: #2510c8;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.file-button:hover {
    background-color: #170da0;
}

.file-names {
    font-size: 14px;
    color: #666;
}

.file-count {
    font-size: 14px;
    color: #666;
}

/* Files List */
.files-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.file-info {
    font-size: 13px;
    color: #555;
    flex: 1;
}

.file-remove {
    background-color: #3549dc;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background-color: #2e23c8;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #104ac8;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #0d3ba0;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Display */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #1d1c72;
    border: 1px solid #f5c6cb;
    display: block;
}


/* Manual Section */
.manual-section {
    margin-top: 40px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.manual-text {
    text-align: left;
    margin-bottom: 25px;
}

.manual-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.manual-text p:last-child {
    margin-bottom: 0;
}

.manual-button {
    display: inline-block;
    background-color: #1025c8;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.manual-button:hover {
    background-color: #1c0da0;
}

/* Success Section */
.success-section {
    margin-top: 20px;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.success-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.protocol-display-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.protocol-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.protocol-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.protocol-display-large {
    font-size: 32px;
    font-weight: bold;
    color: #1310c8;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    letter-spacing: 2px;
    flex-grow: 1;
    cursor: text;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.copy-button {
    background-color: #102fc8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background-color: #0d21a0;
}

.protocol-warning {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.next-steps {
    text-align: left;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.next-steps h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.next-steps li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1032c8;
    font-weight: bold;
}

/* Status display on consulta page */
.status-display {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-left: 6px solid #999;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

/* Variants by status */
.status-display.status-pending {
    border-left-color: #c58a00;
    background-color: #fff8e6;
    color: #7a4e00;
}

.status-display.status-attending {
    border-left-color: #0077cc;
    background-color: #eaf4ff;
    color: #0a4870;
}

.status-display.status-waiting {
    border-left-color: #6f42c1;
    background-color: #f3ecff;
    color: #4a2a88;
}

.status-display.status-success {
    border-left-color: #28a745;
    background-color: #eaf7ef;
    color: #1e7a34;
}

.status-display.status-cancelled {
    border-left-color: #1013c8;
    background-color: #fdecef;
    color: #330e8a;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #ebebeb;
    border-radius: 8px;
    position: relative;
}

.faq-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-icon {
    font-size: 24px;
}

.faq-item {
    margin-bottom: 12px;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background-color: white;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 15px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Footer */
.page-footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 70px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-height: 60px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-informeseg {
    height: 70px;
    max-height: 80px;
}

.footer-logos a {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: #ccc;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1025c8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background-color: #2a0da0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 24px;
    }
    
    .header-section .subtitle {
        font-size: 14px;
    }
    
    .carvalhao-title {
        font-size: 36px;
    }
    
    .truck-logo {
        width: 200px;
        height: 100px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .radio-group {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .faq-section {
        padding: 20px 15px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
