#tecsistore-repair-form, #tecsistore-repair-dashboard {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f9f9f9;
}

#tecsistore-repair-form .form-field {
    margin-bottom: 15px;
}

#tecsistore-repair-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#tecsistore-repair-form input[type="text"],
#tecsistore-repair-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#tecsistore-repair-form button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#tecsistore-repair-form button:hover {
    background-color: #005a87;
}

#tecsistore-repair-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

#tecsistore-repair-dashboard th,
#tecsistore-repair-dashboard td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

#tecsistore-repair-dashboard th {
    background-color: #f4f4f4;
}

/* -----------------------------------------
   Estilos para o Formulário de Reparos
----------------------------------------- */
.tecsistore-form .form-row {
    margin-bottom: 20px;
}

.tecsistore-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #3A3A3A; /* Cinza Escuro */
}

.tecsistore-form .required {
    color: #FA991C; /* Laranja Principal */
    font-weight: bold;
}

.tecsistore-form .optional {
    color: #7A7A7A; /* Cinza Claro */
    font-weight: normal;
    font-style: italic;
    font-size: 0.9em;
}

.tecsistore-form input[type="text"],
.tecsistore-form input[type="tel"],
.tecsistore-form input[type="file"],
.tecsistore-form select,
.tecsistore-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #7A7A7A; /* Cinza Claro */
    border-radius: 4px;
    background-color: #fff;
    color: #3A3A3A;
    transition: border-color 0.3s ease;
}

.tecsistore-form input[type="text"]:focus,
.tecsistore-form input[type="tel"]:focus,
.tecsistore-form input[type="file"]:focus,
.tecsistore-form select:focus,
.tecsistore-form textarea:focus {
    border-color: #FA991C; /* Laranja Principal */
    outline: none;
    box-shadow: 0 0 5px rgba(250, 153, 28, 0.5);
}

.tecsistore-form button#submit-repair-request {
    background-color: #FA991C; /* Laranja Principal */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tecsistore-form button#submit-repair-request:hover,
.tecsistore-form button#submit-repair-request:focus {
    background-color: #E88E1A; /* Laranja mais escuro para hover */
    color: #ffffff;
}

#repair-form-feedback,
#additional-upload-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 20px;
}

#repair-form-feedback.success,
#additional-upload-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#repair-form-feedback.error,
#additional-upload-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* -----------------------------------------
   Estilos para o Painel do Cliente
----------------------------------------- */
.repair-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.repair-dashboard-table th,
.repair-dashboard-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.repair-dashboard-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.repair-dashboard-table a {
    color: #FA991C; /* Laranja Principal */
    text-decoration: none;
}

.repair-dashboard-table a:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   Estilos para os Detalhes do Reparo
----------------------------------------- */
.repair-details-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.repair-details-section h2 {
    margin-top: 0;
    border-bottom: 2px solid #FA991C; /* Laranja Principal */
    padding-bottom: 10px;
    color: #3A3A3A;
}

.quote-actions .button-approve {
    background-color: #28a745; /* Verde para Aprovar */
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
}

.quote-actions .button-refuse {
    background-color: #dc3545; /* Vermelho para Recusar */
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
}

/* Estilos para o painel de detalhes do reparo */
.tecsistore-repair-details-panel {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  max-width: 800px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
  color: #000000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

.tecsistore-repair-details-panel .trd-header h1 {
  color: #F28C38;
  margin: 0 0 25px;
  font-size: 24px;
  text-align: center;
  font-weight: bold;
}

.tecsistore-repair-details-panel .trd-section {
  margin-bottom: 20px;
}

.tecsistore-repair-details-panel .trd-section h2 {
  color: #F5A623;
  font-size: 18px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
  margin-top: 0;
  margin-bottom: 15px;
}

.tecsistore-repair-details-panel .trd-detail {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  border: 1px solid #e0e0e0;
}

.tecsistore-repair-details-panel .trd-status {
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  color: #333333;
  background-color: #FFD700; /* Amarelo padrão para 'Orçado' */
}

/* Cores específicas para cada status */
.tecsistore-repair-details-panel .trd-status-requested { background-color: #3498db; color: #fff; } /* Azul */
.tecsistore-repair-details-panel .trd-status-diagnosed { background-color: #9b59b6; color: #fff; } /* Roxo */
.tecsistore-repair-details-panel .trd-status-quoted { background-color: #f1c40f; } /* Amarelo */
.tecsistore-repair-details-panel .trd-status-approved { background-color: #2ecc71; color: #fff; } /* Verde */
.tecsistore-repair-details-panel .trd-status-refused { background-color: #e74c3c; color: #fff; } /* Vermelho */
.tecsistore-repair-details-panel .trd-status-in_progress { background-color: #3498db; color: #fff; } /* Azul */
.tecsistore-repair-details-panel .trd-status-completed { background-color: #1abc9c; color: #fff; } /* Verde-água */
.tecsistore-repair-details-panel .trd-status-delivered { background-color: #7f8c8d; color: #fff; } /* Cinza */
.tecsistore-repair-details-panel .trd-status-awaiting_shipment { background-color: #f56e28; color: #fff; } /* Laranja */
.tecsistore-repair-details-panel .trd-status-in_transit { background-color: #0073aa; color: #fff; } /* Azul Transporte */
.tecsistore-repair-details-panel .trd-status-received { background-color: #28a745; color: #fff; } /* Verde Recebido */
.tecsistore-repair-details-panel .trd-status-in_diagnosis { background-color: #7c3aed; color: #fff; } /* Roxo Diagnóstico */
.tecsistore-repair-details-panel .trd-status-final_quote { background-color: #ffc107; color: #333; } /* Amarelo Orçamento Final */
.tecsistore-repair-details-panel .trd-status-final_approved { background-color: #28a745; color: #fff; } /* Verde Aprovado Final */
.tecsistore-repair-details-panel .trd-status-final_refused { background-color: #dc3545; color: #fff; } /* Vermelho Recusado Final */
.tecsistore-repair-details-panel .trd-status-shipped_back { background-color: #0073aa; color: #fff; } /* Azul Enviado de Volta */


.tecsistore-repair-details-panel .trd-event {
  color: #000000;
  margin: 10px 0;
  padding-left: 15px;
  border-left: 3px solid #F28C38;
  background-color: #ffffff;
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.tecsistore-repair-details-panel .trd-event:first-child { margin-top: 0; }
.tecsistore-repair-details-panel .trd-event:last-child { margin-bottom: 0; }


.tecsistore-repair-details-panel .trd-footer {
  color: #666666;
  font-size: 12px;
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

/* Botões de ação do orçamento */
.tecsistore-repair-details-panel .trd-button {
    background-color: #F28C38;
    color: #FFFFFF !important;
    padding: 12px 22px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.tecsistore-repair-details-panel .trd-button:hover {
    background-color: #D87C32;
    color: #FFFFFF !important;
}

.tecsistore-repair-details-panel .trd-quote-actions {
    margin-top: 15px;
    border-top: 1px dashed #777;
    padding-top: 15px;
}

.tecsistore-repair-details-panel .trd-button.approve-quote {
    background-color: #2ecc71;
}
.tecsistore-repair-details-panel .trd-button.approve-quote:hover {
    background-color: #27ae60;
}

.tecsistore-repair-details-panel .trd-button.refuse-quote {
    background-color: #e74c3c;
}
.tecsistore-repair-details-panel .trd-button.refuse-quote:hover {
    background-color: #c0392b;
}

/* Ajustes para o formulário e dashboard de reparo */
.tecsistore-form, #tecsistore-repair-dashboard {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#tecsistore-repair-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

#tecsistore-repair-dashboard th, #tecsistore-repair-dashboard td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

#tecsistore-repair-dashboard th {
    background-color: #f2f2f2;
}

#tecsistore-repair-dashboard a {
    color: #F28C38;
    text-decoration: none;
}

#tecsistore-repair-dashboard a:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Estilos da Tabela do Dashboard de Reparos
--------------------------------------------------------------*/
.tecsistore-dashboard-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tecsistore-dashboard-wrap h2 {
    color: #3A3A3A;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tecsistore-table-responsive {
    overflow-x: auto;
}

.tecsistore-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tecsistore-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #555;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.tecsistore-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.tecsistore-table tbody tr:last-child td {
    border-bottom: none;
}

.tecsistore-table tbody tr:hover {
    background-color: #f9f9f9;
}

.tecsistore-table .button {
    background-color: #FA991C;
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.tecsistore-table .button:hover {
    background-color: #E88E1A;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Crachás de Status */
.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.status-requested { background-color: #3498db; } /* Azul */
.status-diagnosed { background-color: #9b59b6; } /* Roxo */
.status-quoted { background-color: #f1c40f; color: #333; } /* Amarelo */
.status-approved { background-color: #2ecc71; } /* Verde */
.status-refused { background-color: #e74c3c; } /* Vermelho */
.status-in_progress { background-color: #5bc0de; } /* Azul Claro */
.status-completed { background-color: #5cb85c; } /* Verde Sucesso */
.status-delivered { background-color: #777; } /* Cinza */
.status-na { background-color: #aaa; } /* Cinza Claro */
.status-awaiting_shipment { background-color: #17a2b8; } /* Azul Informação */
.status-in_transit { background-color: #0073aa; } /* Azul Transporte */
.status-received { background-color: #28a745; } /* Verde Recebido */
.status-in_diagnosis { background-color: #7c3aed; } /* Roxo Diagnóstico */
.status-final_quote { background-color: #ffc107; color: #333; } /* Amarelo Orçamento Final */
.status-final_approved { background-color: #28a745; } /* Verde Aprovado Final */
.status-final_refused { background-color: #dc3545; } /* Vermelho Recusado Final */
.status-shipped_back { background-color: #0073aa; } /* Azul Enviado de Volta */


/*--------------------------------------------------------------
# Responsividade Mobile Melhorada
--------------------------------------------------------------*/
@media screen and (max-width: 782px) {
    .tecsistore-table-responsive {
        overflow-x: visible;
        margin: 0 -10px;
    }
    
    .tecsistore-table thead {
        display: none;
    }

    .tecsistore-table, 
    .tecsistore-table tbody, 
    .tecsistore-table tr, 
    .tecsistore-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .tecsistore-table tr {
        margin: 0 10px 20px 10px;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 20px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        position: relative;
    }

    .tecsistore-table td {
        text-align: left !important;
        padding: 12px 0 !important;
        position: relative;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .tecsistore-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-top: 10px;
        justify-content: center;
    }

    .tecsistore-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #495057;
        margin-right: 15px;
        min-width: 100px;
        flex-shrink: 0;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Estilos específicos para elementos dentro das células */
    .tecsistore-table td .status-badge {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .tecsistore-table td .button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 5px;
    }
    
    .tecsistore-table td .anonymous-badge {
        margin-left: 10px;
        flex-shrink: 0;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Remover o label do botão de ação */
    .tecsistore-table td:last-child::before {
        display: none;
    }
    
    /* Melhorar o espaçamento do conteúdo das células */
    .tecsistore-table td > * {
        max-width: 100%;
        word-wrap: break-word;
    }
}

.tecsistore-notice {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    color: #555;
}

.trd-button.view-pdf {
    background-color: #FA991C;
    border-color: #FA991C;
}
.trd-button.view-pdf:hover {
    background-color: #E88E1A;
    border-color: #E88E1A;
}

.trd-button.button-approve {
    background-color: #28a745;
    border-color: #28a745;
}
.trd-button.button-approve:hover {
    background-color: #218838;
    border-color: #218838;
}

.trd-button.button-refuse {
    background-color: #dc3545;
    border-color: #dc3545;
}
.trd-button.button-refuse:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/*--------------------------------------------------------------
# Galeria de Mídia (Imagens e Vídeos)
--------------------------------------------------------------*/
.trd-media-gallery {
    margin: 20px 0;
}

.trd-media-gallery h3 {
    color: #3A3A3A;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.trd-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.trd-media-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trd-media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.trd-media-item img,
.trd-media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.trd-media-item .pdf-thumbnail,
.trd-media-item .file-thumbnail {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

.trd-media-item .media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.trd-media-item:hover .media-overlay {
    opacity: 1;
}

.trd-media-item .media-overlay .play-icon {
    color: #fff;
    font-size: 48px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.trd-media-item .media-info {
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.trd-media-item .media-info .media-name {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trd-media-item .media-info .media-size {
    font-size: 11px;
    color: #999;
    margin: 2px 0 0 0;
}

/* Modal para visualização de mídia */
.trd-media-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.trd-media-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
}

.trd-media-modal img,
.trd-media-modal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.trd-media-modal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: none;
    line-height: 1;
}

.trd-media-modal .close:hover {
    color: #fff;
    background: rgba(250, 153, 28, 0.9);
    transform: scale(1.1);
}

/* Upload adicional de mídia */
.trd-additional-upload {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    color: #333;
}

.trd-additional-upload h4 {
    color: #3A3A3A;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.trd-additional-upload p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.trd-additional-upload.dragover {
    border-color: #FA991C;
    background: #fff5e6;
}

.trd-additional-upload input[type="file"] {
    display: none;
}

.trd-additional-upload .upload-button {
    background-color: #FA991C;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

.trd-additional-upload .upload-button:hover {
    background-color: #E88E1A;
}

.trd-additional-upload .upload-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.trd-additional-upload .upload-info small {
    color: #666;
    line-height: 1.4;
}

/* Responsividade da galeria */
@media screen and (max-width: 768px) {
    .trd-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .trd-media-item img,
    .trd-media-item video {
        height: 120px;
    }
    
    .trd-media-modal-content {
        width: 95%;
        padding: 10px;
    }

    .trd-media-modal .close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .trd-additional-upload {
        padding: 15px;
    }

    .trd-additional-upload h4 {
        font-size: 14px;
    }

    .trd-additional-upload p {
        font-size: 13px;
    }
    
    /* Responsividade para as novas seções de status */
    .trd-status-card {
        padding: 15px !important;
    }
    
    .status-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .status-icon {
        margin-bottom: 8px !important;
        margin-right: 0 !important;
    }
    
    .trd-status {
        font-size: 16px !important;
    }
    
    .status-description {
        font-size: 14px !important;
    }
}

/* Estilos específicos para garantir legibilidade do status */
.trd-status-card {
    position: relative;
    overflow: hidden;
}

.trd-status-card .status-name {
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.trd-status-card .status-description {
    text-shadow: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Garantir contraste em temas escuros */
@media (prefers-color-scheme: dark) {
    .trd-status-card .status-name {
        background: rgba(255,255,255,0.95) !important;
        color: #333 !important;
    }
    
    .trd-status-card .status-description {
        background: rgba(255,255,255,0.9) !important;
        color: #333 !important;
    }
}

/* -----------------------------------------
   Formulário Interativo de Múltiplas Etapas
----------------------------------------- */
.multistep-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: #e0e0e0;
    height: 6px;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FA991C 0%, #E88E1A 100%);
    transition: width 0.4s ease;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.multistep-form {
    padding: 30px;
}

.multistep-form .form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    text-align: center;
    min-height: 300px;
    flex-direction: column;
    justify-content: center;
}

.multistep-form .form-step.active {
    display: flex;
}

.step-header {
    margin-bottom: 30px;
}

.step-header .step-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.step-header h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.multistep-form label {
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
    color: #333;
    line-height: 1.4;
}

.multistep-form .required {
    color: #FA991C;
    font-weight: bold;
}

.multistep-form .optional {
    color: #666;
    font-weight: normal;
    font-style: italic;
}

.multistep-form input,
.multistep-form select,
.multistep-form textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.multistep-form input:focus,
.multistep-form select:focus,
.multistep-form textarea:focus {
    outline: none;
    border-color: #FA991C;
    box-shadow: 0 0 0 3px rgba(250, 153, 28, 0.1);
    transform: translateY(-2px);
}

.multistep-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

.multistep-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: block;
    line-height: 1.4;
}

.next-btn, .submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FA991C 0%, #E88E1A 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.next-btn::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.next-btn:hover::before, .submit-btn:hover::before {
    left: 100%;
}

.next-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 153, 28, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-size: 18px;
    padding: 18px 40px;
}

.submit-btn:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.final-message {
    margin-bottom: 30px;
}

.final-message p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
    line-height: 1.5;
}

/* Navegação do formulário */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Estilos do botão Voltar removidos */

/* Ajustes para quando há apenas um botão */
.form-navigation .next-btn:only-child,
.form-navigation .submit-btn:only-child {
    margin-left: auto;
}

.form-feedback {
    margin: 20px 30px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: block;
    min-height: 20px;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feedback-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: feedbackSlideIn 0.5s ease-out;
}

@keyframes feedbackSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Animação para mensagem de login detectado */
.tecsistore-login-detected {
    animation: loginDetected 0.8s ease-out;
}

@keyframes loginDetected {
    0% { 
        opacity: 0; 
        transform: scale(0.9) translateY(10px);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .multistep-container {
        margin: 20px auto;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .multistep-form {
        padding: 20px;
    }
    
    .multistep-form .form-step {
        min-height: 250px;
    }
    
    .step-header .step-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .step-header h3 {
        font-size: 20px;
    }
    
    .multistep-form label {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .multistep-form input,
    .multistep-form select,
    .multistep-form textarea {
        padding: 12px 16px;
        font-size: 16px; /* Previne zoom no iOS */
        margin-bottom: 16px;
    }
    
    .next-btn, .submit-btn {
        padding: 14px 25px;
        font-size: 15px;
        min-width: 120px;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 16px 30px;
    }
    
    .form-navigation {
        gap: 10px;
    }
    
    .hint {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .final-message p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .multistep-container {
        margin: 10px;
        border-radius: 6px;
    }
    
    .multistep-form {
        padding: 15px;
    }
    
    .progress-bar {
        margin-bottom: 20px;
    }
    
    .step-header .step-icon {
        font-size: 36px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    .multistep-form label {
        font-size: 15px;
        line-height: 1.3;
    }
}

/* Estilos para campos com erro */
.form-input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Melhorias nos botões de navegação */
.form-navigation {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin: 0 -40px -40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-navigation .nav-button {
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

.nav-button:active {
    transform: translateY(1px) scale(0.98);
}

/* Animações de entrada para as etapas */
.form-step.entering {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efeitos de hover nos selects */
.form-select:hover {
    border-color: rgba(250, 153, 28, 0.6);
    transform: translateY(-1px);
}

/* Efeitos especiais para upload de arquivos */
.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(250, 153, 28, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-area:hover::before {
    opacity: 1;
}

/* Melhor feedback visual */
.form-feedback {
    border-left: 4px solid;
    position: relative;
}

.form-feedback.success {
    border-left-color: #28a745;
}

.form-feedback.error {
    border-left-color: #dc3545;
}

.form-feedback::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 100%;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .tecsistore-dynamic-form {
        margin: 20px;
        border-radius: 16px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        margin: 0 -20px -20px;
    }
    
    .nav-button {
        width: 100%;
    }
}

/* Estilos para vinculação de reparos anônimos */
.unlinked-repairs-notice {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#link-repairs-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

#link-repairs-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.anonymous-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos para o Portal do Cliente com formulários nativos do WooCommerce */
.tecsistore-client-portal-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.portal-intro-header {
    background: linear-gradient(135deg, #fa991c 0%, #ff7a00 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
}

.portal-intro-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: 600;
}

.portal-intro-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Melhorias nos formulários do WooCommerce */
.tecsistore-client-portal-wrapper .woocommerce {
    padding: 30px 25px;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login,
.tecsistore-client-portal-wrapper .woocommerce-form-register {
    background: #ffffff;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login h2,
.tecsistore-client-portal-wrapper .woocommerce-form-register h2 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fa991c;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login .form-row,
.tecsistore-client-portal-wrapper .woocommerce-form-register .form-row {
    margin-bottom: 15px;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login label,
.tecsistore-client-portal-wrapper .woocommerce-form-register label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login input[type="text"],
.tecsistore-client-portal-wrapper .woocommerce-form-login input[type="email"],
.tecsistore-client-portal-wrapper .woocommerce-form-login input[type="password"],
.tecsistore-client-portal-wrapper .woocommerce-form-register input[type="text"],
.tecsistore-client-portal-wrapper .woocommerce-form-register input[type="email"],
.tecsistore-client-portal-wrapper .woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Correção para campos de senha com botão de toggle */
.tecsistore-client-portal-wrapper .woocommerce-form-login input[type="password"],
.tecsistore-client-portal-wrapper .woocommerce-form-register input[type="password"] {
    padding-right: 45px; /* Espaço para o botão de toggle */
}

/* Estilos para o botão de mostrar/ocultar senha */
.tecsistore-client-portal-wrapper .show-password-input,
.tecsistore-client-portal-wrapper .hide-password-input {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #666 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: auto !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tecsistore-client-portal-wrapper .show-password-input:hover,
.tecsistore-client-portal-wrapper .hide-password-input:hover {
    color: #fa991c !important;
    background: transparent !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: none !important;
}

/* Container relativo para posicionamento correto */
.tecsistore-client-portal-wrapper .form-row {
    position: relative;
}

/* Garantir que o campo de senha tenha posicionamento relativo */
.tecsistore-client-portal-wrapper .form-row:has(input[type="password"]) {
    position: relative;
}

/* Alternativa para navegadores que não suportam :has() */
.tecsistore-client-portal-wrapper .form-row.form-row-wide {
    position: relative;
}

/* Estilos adicionais para compatibilidade */
.tecsistore-client-portal-wrapper .woocommerce-password-input {
    position: relative;
}

.tecsistore-client-portal-wrapper .woocommerce-password-hint {
    display: none; /* Ocultar dicas de senha se existirem */
}

/* Remover qualquer conteúdo customizado dos botões - deixar ícone nativo do WooCommerce */
.tecsistore-client-portal-wrapper .show-password-input::before,
.tecsistore-client-portal-wrapper .hide-password-input::before {
    content: none !important;
}

.tecsistore-client-portal-wrapper .show-password-input,
.tecsistore-client-portal-wrapper .hide-password-input {
    background-image: none !important;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login input:focus,
.tecsistore-client-portal-wrapper .woocommerce-form-register input:focus {
    border-color: #fa991c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(250, 153, 28, 0.1);
}

.tecsistore-client-portal-wrapper .woocommerce-form-login button:not(.show-password-input):not(.hide-password-input),
.tecsistore-client-portal-wrapper .woocommerce-form-register button:not(.show-password-input):not(.hide-password-input) {
    background: linear-gradient(135deg, #fa991c 0%, #ff7a00 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    min-width: 150px;
}

.tecsistore-client-portal-wrapper .woocommerce-form-login button:not(.show-password-input):not(.hide-password-input):hover,
.tecsistore-client-portal-wrapper .woocommerce-form-register button:not(.show-password-input):not(.hide-password-input):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(250, 153, 28, 0.3);
}

/* Melhorar a aparência das mensagens do WooCommerce */
.tecsistore-client-portal-wrapper .woocommerce-message,
.tecsistore-client-portal-wrapper .woocommerce-error,
.tecsistore-client-portal-wrapper .woocommerce-info {
    margin: 20px 0 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
}

/* Estilos para os benefícios */
.portal-benefits {
    background: #f8f9fa;
    padding: 25px;
    border-top: 1px solid #e9ecef;
}

.portal-benefits h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1em;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #495057;
}

.benefit-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Responsividade para o Portal do Cliente */
@media (max-width: 768px) {
    .tecsistore-client-portal-wrapper {
        margin: 10px;
        border-radius: 6px;
    }
    
    .portal-intro-header {
        padding: 20px 15px;
    }
    
    .portal-intro-header h2 {
        font-size: 1.4em;
    }
    
    .tecsistore-client-portal-wrapper .woocommerce {
        padding: 20px 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .portal-benefits {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .portal-intro-header h2 {
        font-size: 1.2em;
    }
    
    .portal-intro-header p {
        font-size: 0.9em;
    }
    
    .tecsistore-client-portal-wrapper .woocommerce-form-login button:not(.show-password-input):not(.hide-password-input),
    .tecsistore-client-portal-wrapper .woocommerce-form-register button:not(.show-password-input):not(.hide-password-input) {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Ajustes para o botão de toggle em mobile */
    .tecsistore-client-portal-wrapper .show-password-input,
    .tecsistore-client-portal-wrapper .hide-password-input {
        right: 10px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
    }
    
    /* Melhorias específicas para a tabela do dashboard em telas muito pequenas */
    .tecsistore-table-responsive {
        margin: 0 -5px;
    }
    
    .tecsistore-table tr {
        margin: 0 5px 15px 5px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .tecsistore-table td {
        padding: 10px 0 !important;
        min-height: 40px;
    }
    
    .tecsistore-table td::before {
        min-width: 80px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .tecsistore-table td .status-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .tecsistore-table td .button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .tecsistore-dashboard-wrap h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
}

/* Estado de envio do formulário */
.multistep-form[data-submitting="true"] {
    position: relative;
}

.multistep-form[data-submitting="true"]::after {
    content: "🚀 Enviando solicitação...";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #FA991C;
    z-index: 1000;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

/* Prevenção de duplicatas - feedback visual */
.form-feedback.duplicate-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.form-feedback.duplicate-warning::before {
    content: "⚠️ ";
    font-size: 18px;
} 