/* Canal de Denúncias - Frontend Styles */

.academy-whistleblower-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.academy-whistleblower-form h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.academy-whistleblower-form .form-intro {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.academy-whistleblower-form .form-group {
    margin-bottom: 20px;
}

.academy-whistleblower-form .hw-contact-phone {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    height: 0;
    margin: 0;
    padding: 0;
}

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

.academy-whistleblower-form label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.academy-whistleblower-form input[type="text"],
.academy-whistleblower-form input[type="email"],
.academy-whistleblower-form input[type="date"],
.academy-whistleblower-form select,
.academy-whistleblower-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.academy-whistleblower-form textarea {
    resize: vertical;
    min-height: 120px;
}

.academy-whistleblower-form input[type="text"]:focus,
.academy-whistleblower-form input[type="email"]:focus,
.academy-whistleblower-form input[type="date"]:focus,
.academy-whistleblower-form select:focus,
.academy-whistleblower-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.academy-whistleblower-form .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.academy-whistleblower-form .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.academy-whistleblower-form .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.academy-whistleblower-form .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.academy-whistleblower-form .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.academy-whistleblower-form input:checked+.toggle-slider {
    background-color: #27ae60;
}

.academy-whistleblower-form input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.academy-whistleblower-form .identification-fields {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #3498db;
}

.academy-whistleblower-form .identification-fields.active {
    display: block;
}

.academy-whistleblower-form .file-upload-group {
    margin-bottom: 20px;
}

.academy-whistleblower-form .file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.academy-whistleblower-form .file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
}

.academy-whistleblower-form .file-input-label {
    display: block;
    padding: 12px;
    background: #ecf0f1;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #555;
}

.academy-whistleblower-form .file-input-label:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.academy-whistleblower-form .file-list {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
}

.academy-whistleblower-form .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.academy-whistleblower-form .file-item .remove-file {
    cursor: pointer;
    color: #e74c3c;
    font-weight: bold;
    padding: 2px 6px;
}

.academy-whistleblower-form .file-item .remove-file:hover {
    color: #c0392b;
}

.academy-whistleblower-form .checkbox-group {
    margin-bottom: 20px;
}

.academy-whistleblower-form .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.academy-whistleblower-form .checkbox-group label {
    display: inline;
    margin: 0;
    font-weight: normal;
}

.academy-whistleblower-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.academy-whistleblower-form button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.academy-whistleblower-form .btn-submit {
    background: #27ae60;
    color: white;
}

.academy-whistleblower-form .btn-submit:hover {
    background: #229954;
}

.academy-whistleblower-form .btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.academy-whistleblower-form .btn-reset {
    background: #95a5a6;
    color: white;
}

.academy-whistleblower-form .btn-reset:hover {
    background: #7f8c8d;
}

/* Loading State */
.academy-whistleblower-form .loading {
    display: none;
    text-align: center;
    margin: 10px 0;
}

.academy-whistleblower-form .loading.active {
    display: block;
}

.academy-whistleblower-form .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.academy-whistleblower-form .message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.academy-whistleblower-form .message.active {
    display: block;
}

.academy-whistleblower-form .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.academy-whistleblower-form .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.academy-whistleblower-form .protocol-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.academy-whistleblower-form .protocol-box .protocol-label {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.academy-whistleblower-form .protocol-box .protocol-number {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .academy-whistleblower-form {
        padding: 20px;
    }

    .academy-whistleblower-form h2 {
        font-size: 20px;
    }

    .academy-whistleblower-form .form-actions {
        flex-direction: column;
    }
}