/* CSS para tela de suporte técnico seguindo identidade visual do sistema */

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: white;
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Background pattern igual ao login */
#background-image {
    z-index: 1;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
}

/* Container principal */
main {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

/* Card principal seguindo o padrão do login */
#main-content {
    z-index: 9999;
    padding: 40px 50px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    min-height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(17, 38, 56, 0.08);
    position: relative;
    margin: 20px 0;
}

/* Header do card seguindo padrão do login */
#main-content header {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

#main-content header h1 {
    color: #112638;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

#main-content header hr {
    height: 40px;
    border: 2px solid #FAA701;
    margin: 0;
}

#main-content header img {
    max-width: 160px;
    width: 100%;
    height: auto;
}

/* Subtitle */
#main-content .subtitle {
    color: #5F5F5F;
    font-size: 16px;
    text-align: center;
    margin: -10px 0 5px 0;
    font-weight: 400;
}

/* Formulário */
#main-content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 5px;
    padding-bottom: 10px;
}

/* Info box */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #FAA701;
    padding: 16px 20px;
    margin: 5px 0 15px 0;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(250, 167, 1, 0.1);
}

.info-box p {
    color: #495057;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.info-box i {
    color: #FAA701;
    margin-right: 8px;
    font-weight: 600;
}

/* Campos de entrada seguindo o padrão do sistema */
.inputs-with-label {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 5px;
}

.inputs-with-label label {
    font-weight: 600;
    color: #112638;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.inputs-with-label label i {
    color: #FAA701;
    width: 16px;
    text-align: center;
}

.required {
    color: #fa0101;
    font-weight: 700;
}

.inputs {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    min-height: 48px;
}

.inputs:focus-within {
    border-color: #FAA701;
    box-shadow: 0 0 0 3px rgba(250, 167, 1, 0.15);
    transform: translateY(-1px);
}

.inputs:hover {
    border-color: #d1d7db;
}

.inputs label {
    padding: 12px 10px 12px 15px;
    color: #FAA701;
}

.inputs label, .inputs input, .inputs textarea {
    font-size: 14px;
}

.inputs input, .inputs textarea {
    padding: 12px 15px 12px 5px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #112638;
    font-weight: 500;
}

.inputs input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Textarea específico */
.textarea-inputs {
    width: 100%;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    min-height: 120px;
}

.textarea-inputs:focus-within {
    border-color: #FAA701;
    box-shadow: 0 0 0 3px rgba(250, 167, 1, 0.15);
    transform: translateY(-1px);
}

.textarea-inputs:hover {
    border-color: #d1d7db;
}

.textarea-inputs textarea {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    color: #112638;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.textarea-inputs textarea::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Botão seguindo padrão do sistema */
#main-content form button {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 50px;
    width: 100%;
    justify-content: center;
    min-height: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #112638 0%, #1a3d5c 100%);
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(17, 38, 56, 0.2);
    margin-top: 10px;
    margin-bottom: 5px;
    visibility: visible !important;
    opacity: 1 !important;
}

#main-content form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 38, 56, 0.3);
}

#main-content form button:active {
    transform: translateY(0);
}

/* Navegação */
#form-navegacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.form-navegacao-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    gap: 12px;
}

#form-navegacao a {
    color: #5F5F5F;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
}

#form-navegacao a:hover {
    color: #112638;
    text-decoration: underline;
    opacity: 0.8;
}

/* Mensagens de erro nos campos */
.error-message {
    color: #fa0101;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Mensagens de flash seguindo padrão do sistema */
.flashes {
    width: 100%;
}

.danger, .error {
    text-align: center;
    padding: 12px;
    border: 1px solid #fa0101;
    background: #fa01011d;
    border-radius: 4px;
    color: #fa0101;
    margin-bottom: 15px;
}

.success {
    text-align: center;
    padding: 12px;
    border: 1px solid #009c1e;
    background: #01fa371d;
    border-radius: 4px;
    color: #009c1e;
    margin-bottom: 15px;
}

.message, .info {
    text-align: center;
    padding: 12px;
    border: 1px solid #c09c00;
    background: #facb011a;
    border-radius: 4px;
    color: #c09c00;
    margin-bottom: 15px;
}

/* Loading overlay */
.loading-support {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    #main-content {
        width: 95%;
        padding: 30px 25px;
        margin: 10px;
        border-radius: 10px;
    }
    
    #main-content header h1 {
        font-size: 24px;
    }
    
    #main-content header img {
        max-width: 140px;
    }
    
    #main-content header hr {
        height: 35px;
    }
    
    .inputs, .textarea-inputs {
        border-width: 1.5px;
    }
    
    .inputs input, .textarea-inputs textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media screen and (max-width: 565px) {
    #main-content {
        width: 90%;
        padding: 20px;
    }
    
    .form-navegacao-content {
        flex-direction: column;
        gap: 4px;
    }
    
    #main-content form button {
        font-size: 14px;
        padding: 12px 30px;
        min-height: 46px;
    }
}

@media screen and (max-width: 425px) {
    #main-content header {
        flex-direction: column-reverse;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    #main-content header hr {
        width: 80%;
        height: 2px;
    }
    
    #main-content header h1 {
        font-size: 22px;
        text-align: center;
    }
    
    .info-box {
        padding: 12px 16px;
    }
    
    .info-box p {
        font-size: 13px;
    }
}

/* Animações suaves */
.inputs, .textarea-inputs {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inputs.error, .textarea-inputs.error {
    border-color: #fa0101;
    box-shadow: 0 0 0 3px rgba(250, 1, 1, 0.15);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Efeito de loading melhorado */
.loading-support {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 38, 56, 0.8) 0%, rgba(26, 61, 92, 0.8) 100%);
    justify-content: center;
    align-items: center;
}

.loading-support img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

/* Ícones nos labels */
.inputs-with-label label i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Melhorias no focus e hover states */
.inputs input:focus, .textarea-inputs textarea:focus {
    color: #112638;
}

/* Estilo para placeholder */
::placeholder {
    font-style: italic;
    opacity: 0.7;
}

/* Pequena animação para os campos quando válidos */
.inputs.valid, .textarea-inputs.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* CSS adicional para garantir visibilidade do botão */
button[type="submit"], #btn-submit {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Melhorar o contraste do botão disabled */
#main-content form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
